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 TopLevelTransformationContextprivate booleanprivate intstatic final String -
Constructor Summary
ConstructorsConstructorDescriptionFunctionBodyTransformationContext(TopLevelTransformationContext context, boolean isStatic) -
Method Summary
Modifier and TypeMethodDescriptioncreateSymbol(String name, IRType type) booleanbooleanbooleanbooleanisStatic()makeAndIndexTempSymbol(IRType type) makeAndIndexTempSymbol(String strNameSuffix, IRType type) voidvoidvoidpopScope()voidpushScope(boolean bInitialInstanceMethodScope) voidvoidputSymbols(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()
-