class ValuedDefinition
implements Annotated
extends AbstractNode
Abstract
import { ValuedDefinition } from "https://deno.land/x/apex_core@v0.1.4/ast/mod.ts";
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