NImportStatement

NodeAstNodeloreline.NImportStatement (Class)

Represents an import statement

Instance Members

The relative path of the file to import


script: Script

The 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>): Void

Creates 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

Metadata

Name Parameters
:hxGen -