public final class IdentNode extends Expression implements PropertyKey, FunctionCall
| Type | Property and Description |
|---|---|
boolean |
isMeta
Gets the value of the property metaProperty.
|
| Constructor and Description |
|---|
IdentNode(long token,
int finish,
com.oracle.truffle.api.strings.TruffleString name)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Node |
accept(NodeVisitor<? extends LexicalContext> visitor)
Assist in IR navigation.
|
<R> R |
accept(TranslatorNodeVisitor<? extends LexicalContext,R> visitor)
Provides a means to navigate the IR.
|
String |
getName()
Get the name of the identifier
|
com.oracle.truffle.api.strings.TruffleString |
getNameTS() |
String |
getPropertyName()
Get the property name.
|
com.oracle.truffle.api.strings.TruffleString |
getPropertyNameTS() |
Symbol |
getSymbol()
Return the Symbol the compiler has assigned to this identifier.
|
boolean |
isApplyArguments() |
boolean |
isArguments() |
boolean |
isCatchParameter() |
boolean |
isDeclaredHere()
Is this IdentNode declared here?
|
boolean |
isDirectSuper() |
boolean |
isFunction()
Returns true if the value of this expression will be treated as a function and immediately
invoked.
|
boolean |
isIgnoredParameter() |
boolean |
isImportMeta() |
boolean |
isInitializedHere()
Helper function for local def analysis.
|
boolean |
isInternal()
Is this an internal symbol, i.e.
|
boolean |
isMetaProperty()
Gets the value of the property metaProperty.
|
boolean |
isNewTarget() |
boolean |
isPrivate() |
boolean |
isPrivateInCheck() |
boolean |
isPropertyName()
Check if this IdentNode is a property name
|
boolean |
isRestParameter() |
boolean |
isSuper() |
boolean |
isThis() |
IdentNode |
setIsApplyArguments() |
IdentNode |
setIsArguments() |
IdentNode |
setIsCatchParameter() |
IdentNode |
setIsDeclaredHere()
Flag this IdentNode as being declared here.
|
IdentNode |
setIsDirectSuper() |
IdentNode |
setIsIgnoredParameter() |
IdentNode |
setIsImportMeta() |
IdentNode |
setIsInitializedHere()
Flag IdentNode to be initialized on creation
|
IdentNode |
setIsNewTarget() |
IdentNode |
setIsPrivate() |
IdentNode |
setIsPrivateInCheck() |
IdentNode |
setIsPropertyName()
Flag this IdentNode as a property name
|
IdentNode |
setIsRestParameter() |
IdentNode |
setIsSuper() |
IdentNode |
setIsThis() |
void |
toString(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 value
|
getFinish, getFinishWithoutParens, getStart, getStartWithoutParens, isAlwaysFalse, isAlwaysTrue, isParenthesized, isSelfModifying, makeParenthesizedclone, equals, getSourceOrder, getToken, hashCode, isAssignment, isLoop, isTokenType, tokenType, toString, toStringpublic IdentNode(long token,
int finish,
com.oracle.truffle.api.strings.TruffleString name)
token - tokenfinish - finish positionname - name of identifierpublic Node accept(NodeVisitor<? extends LexicalContext> visitor)
public <R> R accept(TranslatorNodeVisitor<? extends LexicalContext,R> visitor)
Nodepublic void toString(StringBuilder sb, boolean printType)
Nodepublic String getName()
public com.oracle.truffle.api.strings.TruffleString getNameTS()
public String getPropertyName()
PropertyKeygetPropertyName in interface PropertyKeypublic com.oracle.truffle.api.strings.TruffleString getPropertyNameTS()
getPropertyNameTS in interface PropertyKeypublic Symbol getSymbol()
public boolean isPropertyName()
public IdentNode setIsPropertyName()
public boolean isInitializedHere()
public IdentNode setIsInitializedHere()
public boolean isDeclaredHere()
public IdentNode setIsDeclaredHere()
public boolean isFunction()
FunctionCallisFunction in interface FunctionCallpublic boolean isInternal()
public boolean isThis()
public IdentNode setIsThis()
public boolean isSuper()
public IdentNode setIsSuper()
public boolean isDirectSuper()
public IdentNode setIsDirectSuper()
public boolean isRestParameter()
public IdentNode setIsRestParameter()
public boolean isCatchParameter()
public IdentNode setIsCatchParameter()
public boolean isNewTarget()
public IdentNode setIsNewTarget()
public boolean isImportMeta()
public IdentNode setIsImportMeta()
public boolean isMetaProperty()
public IdentNode setIsArguments()
public boolean isArguments()
public IdentNode setIsApplyArguments()
public boolean isApplyArguments()
public IdentNode setIsPrivate()
public boolean isPrivate()
public IdentNode setIsPrivateInCheck()
public boolean isPrivateInCheck()
public IdentNode setIsIgnoredParameter()
public boolean isIgnoredParameter()