Class ShouldRegisterVariableInScope
java.lang.Object
org.ek9lang.compiler.phase7.support.ShouldRegisterVariableInScope
Determine if a variable should be registered in scope for cleanup.
While we will be targeting JVM, so memory management is not needed
we may also want to target LLVM-C++ where we will need to reference count objects.
Variables that should NOT be registered: - Parameters (caller-managed): _param_1, _param_2, etc. - Return variables (transferred to caller): _return_1, _return_2, etc.
Variables that SHOULD be registered: - Local variables (function-managed): _scope_1, _scope_2, etc.-
Constructor Details
-
ShouldRegisterVariableInScope
public ShouldRegisterVariableInScope()
-
-
Method Details
-
test
-