class ast.ValuedDefinition
implements Annotated
extends AbstractNode
Abstract
import { ast } from "https://deno.land/x/apex_core@v0.1.5/index.ts";
const { ValuedDefinition } = ast;
Constructors
new
ValuedDefinition(kind: Kind,
loc: Location | undefined,
name: Name,
desc: StringValue | undefined,
type: Type,
defaultVal: Value | undefined,
annotations: Annotation[],
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[],
Methods
annotation(name: string, callback?: (annotation: Annotation) => void): Annotation | undefined