Package gw.internal.gosu.ir.transform
Class FunctionBodyTransformationContext
java.lang.Object
gw.internal.gosu.ir.transform.FunctionBodyTransformationContext
- Direct Known Subclasses:
DFSFunctionBodyTransformationContext
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static enum
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected TopLevelTransformationContext
private boolean
private int
static final String
-
Constructor Summary
ConstructorsConstructorDescriptionFunctionBodyTransformationContext
(TopLevelTransformationContext context, boolean isStatic) -
Method Summary
Modifier and TypeMethodDescriptioncreateSymbol
(String name, IRType type) boolean
boolean
boolean
boolean
isStatic()
makeAndIndexTempSymbol
(IRType type) makeAndIndexTempSymbol
(String strNameSuffix, IRType type) void
void
void
popScope()
void
pushScope
(boolean bInitialInstanceMethodScope) void
void
putSymbols
(List<IRSymbol> symbols) void
-
Field Details
-
TEMP_VAR_PREFIX
- See Also:
-
_tempVarCount
private int _tempVarCount -
_scopes
-
_constructorState
-
_context
-
_isStatic
private boolean _isStatic
-
-
Constructor Details
-
FunctionBodyTransformationContext
-
-
Method Details
-
updateSuperInvokedAfterLastExpressionCompiles
public void updateSuperInvokedAfterLastExpressionCompiles() -
hasSuperBeenInvoked
public boolean hasSuperBeenInvoked() -
markInvokingSuper
public void markInvokingSuper() -
markSuperInvoked
public void markSuperInvoked() -
makeAndIndexTempSymbol
-
makeAndIndexTempSymbol
-
makeTempSymbolName
-
pushScope
public void pushScope(boolean bInitialInstanceMethodScope) -
popScope
public void popScope() -
getTypeParamIndex
-
getSymbol
-
hasSymbol
-
putSymbols
-
putSymbol
-
createSymbol
-
getScopes
-
isBlockInvoke
public boolean isBlockInvoke() -
getCurrentDFS
-
isStatic
public boolean isStatic()
-