Package gw.internal.gosu.parser
Class ContextInferenceManager
java.lang.Object
gw.internal.gosu.parser.ContextInferenceManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcancelInferences(Expression assignmentRoot, Expression rhs) voidclear()copy()static ExpressiongetUnwrappedExpression(Expression expression) If the expression is wrapped in ImplicitTypeAsExpressions, this will will unwrap them back down to the original expression.infer(Expression e) voidpopCtx(boolean preserveInference) voidvoidpushCtx()voidvoidvoidvoidvoidstatic IParsedElementunwrapImplicitTypeAs(Expression expression) voidupdateType(Expression expression, IType typeIsType)
-
Constructor Details
-
ContextInferenceManager
public ContextInferenceManager()
-
-
Method Details
-
copy
-
pushCtx
public void pushCtx() -
popCtx
public void popCtx(boolean preserveInference) -
pushLastCtx
public void pushLastCtx() -
restoreLastCtx
public void restoreLastCtx() -
clear
public void clear() -
updateType
-
infer
-
cancelInferences
-
unwrapImplicitTypeAs
-
getUnwrappedExpression
If the expression is wrapped in ImplicitTypeAsExpressions, this will will unwrap them back down to the original expression.- Parameters:
expression-- Returns:
-
pushLoopCompromised
public void pushLoopCompromised() -
popLoopCompromised
public void popLoopCompromised() -
suspendRefCollection
public void suspendRefCollection() -
resumeRefCollection
public void resumeRefCollection()
-