Class ScopeInstr
java.lang.Object
org.ek9lang.compiler.ir.instructions.IRInstr
org.ek9lang.compiler.ir.instructions.ScopeInstr
-
Method Summary
Modifier and TypeMethodDescriptionaddOperand
(String operand) Add operand to this instruction.addOperands
(String... operands) Add multiple operands to this instruction.static ScopeInstr
Create scope enter instruction with debug info: SCOPE_ENTER scope_id.static ScopeInstr
Create scope exit instruction with debug info: SCOPE_EXIT scope_id.Get object name for SCOPE_REGISTER instructions.Get scope ID for this scope instruction.static ScopeInstr
static ScopeInstr
register
(String object, BasicDetails basicDetails) Create scope register instruction with debug info: SCOPE_REGISTER object, scope_id.Methods inherited from class org.ek9lang.compiler.ir.instructions.IRInstr
accept, equals, getDebugInfo, getEscapeMetaData, getOpcode, getOperands, getResult, hasEscapeMetaData, hashCode, hasResult, isControlFlow, isLabel, isMemoryManagement, isMethodCall, setEscapeMetaData, toString
-
Method Details
-
enter
Create scope enter instruction with debug info: SCOPE_ENTER scope_id. -
exit
Create scope exit instruction with debug info: SCOPE_EXIT scope_id. -
register
Create scope register instruction with debug info: SCOPE_REGISTER object, scope_id. -
register
-
addOperand
Description copied from class:IRInstr
Add operand to this instruction.- Overrides:
addOperand
in classIRInstr
-
addOperands
Description copied from class:IRInstr
Add multiple operands to this instruction.- Overrides:
addOperands
in classIRInstr
-
getScopeId
Get scope ID for this scope instruction. -
getObject
Get object name for SCOPE_REGISTER instructions.
-