Class Import
Package: grammarkdown
Constructors
constructor(atToken, importKeyword, path)
Constructs a new instance of the Import
class
Declaration
constructor(atToken: Token<SyntaxKind.AtToken>, importKeyword: Token<SyntaxKind.ImportKeyword>, path: StringLiteral | undefined);
Parameters
- atToken
- Token<SyntaxKind.AtToken>
- importKeyword
- Token<SyntaxKind.ImportKeyword>
- path
- StringLiteral | undefined
Properties
importKeyword
Declaration
readonly importKeyword: Token<SyntaxKind.ImportKeyword>;
Property Value
lastChild
Declaration
get lastChild(): Node | undefined;
Property Value
Node | undefined
path
Declaration
readonly path: StringLiteral | undefined;
Property Value
StringLiteral | undefined
Methods
children()
Declaration
children(): IterableIterator<Node>;
Returns
IterableIterator<Node>
forEachChild(cbNode)
Declaration
forEachChild<T>(cbNode: (node: Node) => T | undefined): T | undefined;
Type Parameters
- T
Parameters
- cbNode
- (node: Node) => T | undefined
Returns
T | undefined