Skip to main content
Module

x/apex_core/ast.ts>ValuedDefinition

JavaScript / Node.js support for the Apex language
Latest
class ValuedDefinition
implements Annotated
extends AbstractNode
Abstract
import { ValuedDefinition } from "https://deno.land/x/apex_core@v0.1.5/ast.ts";

Constructors

new
ValuedDefinition(
kind: Kind,
loc: Location | undefined,
name: Name,
desc: StringValue | undefined,
type: Type,
defaultVal: Value | undefined,
annotations: Annotation[],
)

Properties

annotations: Annotation[]
optional
default: Value
optional
description: StringValue
name: Name
type: Type

Methods

annotation(name: string, callback?: (annotation: Annotation) => void): Annotation | undefined

Constructors

new
ValuedDefinition(
kind: Kind,
loc: Location | undefined,
name: Name,
desc: StringValue | undefined,
type: Type,
defaultVal: Value | undefined,
annotations: Annotation[],
)

Properties

annotations: Annotation[]
optional
default: Value
optional
description: StringValue
name: Name
type: Type

Methods

annotation(name: string, callback?: (annotation: Annotation) => void): Annotation | undefined