class ast.ImportDefinition
implements Annotated
extends AbstractNode
Re-export
import { ast } from "https://deno.land/x/apex_core@v0.1.5/index.ts";
const { ImportDefinition } = ast;
Constructors
new
ImportDefinition(loc: Location | undefined,
description: StringValue | undefined,
all: boolean,
names: ImportName[],
from: StringValue,
annotations?: Annotation[],
Properties
optional
annotations: Annotation[]optional
description: StringValuefrom: StringValue
names: ImportName[]
Methods
annotation(name: string, callback?: (annotation: Annotation) => void): Annotation | undefined
Constructors
new
ImportDefinition(loc: Location | undefined,
description: StringValue | undefined,
all: boolean,
names: ImportName[],
from: StringValue,
annotations?: Annotation[],
Properties
optional
annotations: Annotation[]optional
description: StringValuefrom: StringValue
names: ImportName[]
Methods
annotation(name: string, callback?: (annotation: Annotation) => void): Annotation | undefined