Class Environment.GlobalLexVarRef
java.lang.Object
com.oracle.truffle.js.parser.env.Environment.VarRef
com.oracle.truffle.js.parser.env.Environment.GlobalLexVarRef
- Enclosing class:
Environment
-
Field Summary
Fields inherited from class Environment.VarRef
name -
Constructor Summary
ConstructorsConstructorDescriptionGlobalLexVarRef(com.oracle.truffle.api.strings.TruffleString name, boolean isConst, GlobalEnvironment globalEnv) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleanisConst()booleanbooleanisGlobal()voidsetHasBeenDeclared(boolean declared) withRequired(boolean required) Methods inherited from class Environment.VarRef
createCompoundAssignNode, getName, isFrameVar, toString
-
Constructor Details
-
GlobalLexVarRef
public GlobalLexVarRef(com.oracle.truffle.api.strings.TruffleString name, boolean isConst, GlobalEnvironment globalEnv)
-
-
Method Details
-
createReadNode
- Specified by:
createReadNodein classEnvironment.VarRef
-
createWriteNode
- Specified by:
createWriteNodein classEnvironment.VarRef
-
isFunctionLocal
public boolean isFunctionLocal()- Overrides:
isFunctionLocalin classEnvironment.VarRef
-
getFrameSlot
- Overrides:
getFrameSlotin classEnvironment.VarRef
-
isGlobal
public boolean isGlobal()- Overrides:
isGlobalin classEnvironment.VarRef
-
isConst
public boolean isConst()- Overrides:
isConstin classEnvironment.VarRef
-
createDeleteNode
- Specified by:
createDeleteNodein classEnvironment.VarRef
-
withRequired
- Overrides:
withRequiredin classEnvironment.VarRef
-
withTDZCheck
- Overrides:
withTDZCheckin classEnvironment.VarRef
-
hasTDZCheck
public boolean hasTDZCheck()- Overrides:
hasTDZCheckin classEnvironment.VarRef
-
hasBeenDeclared
public boolean hasBeenDeclared()- Overrides:
hasBeenDeclaredin classEnvironment.VarRef
-
setHasBeenDeclared
public void setHasBeenDeclared(boolean declared) - Overrides:
setHasBeenDeclaredin classEnvironment.VarRef
-