NImportStatement
Represents an import statement
Instance Members
path: NStringLiteralThe relative path of the file to import
script: ScriptThe imported AST
each(handleNode: Function): Void| Name | Type |
|---|---|
handleNode |
Function |
type(): String| Returns |
|---|
| String |
toJson(): Dynamic| Returns |
|---|
| Dynamic |
new(id: NodeId, pos: Position, path: NStringLiteral, script: Script, ?leadingComments: Array<Comment>, ?trailingComments: Array<Comment>): VoidCreates a new import statement node.
| Name | Type | Default | Description |
|---|---|---|---|
id |
NodeId | ||
pos |
Position | Position in source where this import appears | |
path |
NStringLiteral | The relative path of the file to import | |
script |
Script | The imported AST | |
leadingComments |
Array<Comment> | (optional) | Optional comments before |
trailingComments |
Array<Comment> | (optional) | Optional comments after the operation |