Skip to main content
Module

x/apex_core/index.ts>apex.ast.ImportDefinition

JavaScript / Node.js support for the Apex language
Go to Latest
class apex.ast.ImportDefinition
implements Annotated
extends AbstractNode
Re-export
import { apex } from "https://deno.land/x/apex_core@v0.1.4/index.ts";
const { ImportDefinition } = apex.ast;

Constructors

new
ImportDefinition(
loc: Location | undefined,
description: StringValue | undefined,
all: boolean,
names: ImportName[],
annotations?: Annotation[],
)

Properties

all: boolean
optional
annotations: Annotation[]
optional
description: StringValue
names: ImportName[]

Methods

accept(context: Context, visitor: Visitor): void
annotation(name: string, callback?: (annotation: Annotation) => void): Annotation | undefined

Constructors

new
ImportDefinition(
loc: Location | undefined,
description: StringValue | undefined,
all: boolean,
names: ImportName[],
annotations?: Annotation[],
)

Properties

all: boolean
optional
annotations: Annotation[]
optional
description: StringValue
names: ImportName[]

Methods

accept(context: Context, visitor: Visitor): void
annotation(name: string, callback?: (annotation: Annotation) => void): Annotation | undefined