Skip to main content
Module

x/apex_core/mod.ts>ast.ValuedDefinition

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

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