Class ImportNode
java.lang.Object
com.oracle.js.parser.ir.Node
com.oracle.js.parser.ir.ImportNode
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionImportNode(long token, int start, int finish, ImportClauseNode importClause, FromNode from) ImportNode(long token, int start, int finish, LiteralNode<com.oracle.truffle.api.strings.TruffleString> moduleSpecifier) -
Method Summary
Modifier and TypeMethodDescriptionaccept(NodeVisitor<? extends LexicalContext> visitor) Provides a means to navigate the IR.<R> Raccept(TranslatorNodeVisitor<? extends LexicalContext, R> visitor) Provides a means to navigate the IR.getFrom()LiteralNode<com.oracle.truffle.api.strings.TruffleString> setImportClause(ImportClauseNode importClause) setModuleSpecifier(LiteralNode<com.oracle.truffle.api.strings.TruffleString> moduleSpecifier) voidtoString(StringBuilder sb, boolean printType) Print logic that decides whether to show the optimistic type or not - for example it should not be printed after just parse, when it hasn't been computed, or has been set to a trivially provable valueMethods inherited from class com.oracle.js.parser.ir.Node
clone, equals, getFinish, getSourceOrder, getStart, getToken, hashCode, isAssignment, isLoop, isTokenType, tokenType, toString, toString
-
Constructor Details
-
ImportNode
public ImportNode(long token, int start, int finish, LiteralNode<com.oracle.truffle.api.strings.TruffleString> moduleSpecifier) -
ImportNode
-
-
Method Details
-
getModuleSpecifier
-
getImportClause
-
getFrom
-
setModuleSpecifier
public ImportNode setModuleSpecifier(LiteralNode<com.oracle.truffle.api.strings.TruffleString> moduleSpecifier) -
setImportClause
-
setFrom
-
accept
Description copied from class:NodeProvides a means to navigate the IR. -
accept
Description copied from class:NodeProvides a means to navigate the IR. -
toString
Description copied from class:NodePrint logic that decides whether to show the optimistic type or not - for example it should not be printed after just parse, when it hasn't been computed, or has been set to a trivially provable value
-