public class ClosureWithoutExpectationHelper extends AbstractClosureTypeHelper
ClosureWithExpectationHelper| Modifier | Constructor and Description |
|---|---|
protected |
ClosureWithoutExpectationHelper(XClosure closure,
ITypeExpectation expectation,
ITypeComputationState state) |
| Modifier and Type | Method and Description |
|---|---|
protected ITypeComputationState |
assignParameters(ITypeAssigner typeAssigner,
FunctionTypeReference incompleteClosureType) |
protected void |
computeTypes() |
protected ITypeComputationState |
getClosureBodyTypeComputationState(ITypeAssigner typeAssigner,
FunctionTypeReference incompleteClosureType) |
FunctionTypeReference |
getExpectedClosureType()
This method is only public for testing purpose.
|
protected FunctionTypeReference |
getFunctionTypeReference(boolean isProcedure) |
org.eclipse.xtext.common.types.JvmOperation |
getOperation()
This method is only public for testing purpose.
|
java.util.List<org.eclipse.xtext.common.types.JvmFormalParameter> |
getParameters()
Returns the effective list of parameters.
|
protected void |
initClosureType(FunctionTypeReference result,
boolean isProcedure) |
protected FunctionTypeReference |
processExpressionType(FunctionTypeReference incompleteClosureType,
ITypeComputationResult expressionResult) |
applyToModel, deferredBindTypeArgument, getClosure, getExpectation, getServices, getState, validateprotected ClosureWithoutExpectationHelper(XClosure closure, ITypeExpectation expectation, ITypeComputationState state)
protected void computeTypes()
computeTypes in class AbstractClosureTypeHelperpublic FunctionTypeReference getExpectedClosureType()
AbstractClosureTypeHelpergetExpectedClosureType in class AbstractClosureTypeHelperpublic org.eclipse.xtext.common.types.JvmOperation getOperation()
AbstractClosureTypeHelpergetOperation in class AbstractClosureTypeHelperprotected FunctionTypeReference getFunctionTypeReference(boolean isProcedure)
protected void initClosureType(FunctionTypeReference result, boolean isProcedure)
protected ITypeComputationState getClosureBodyTypeComputationState(ITypeAssigner typeAssigner, FunctionTypeReference incompleteClosureType)
public java.util.List<org.eclipse.xtext.common.types.JvmFormalParameter> getParameters()
IClosureCandidategetParameters in interface IClosureCandidategetParameters in class AbstractClosureTypeHelperprotected ITypeComputationState assignParameters(ITypeAssigner typeAssigner, FunctionTypeReference incompleteClosureType)
protected FunctionTypeReference processExpressionType(FunctionTypeReference incompleteClosureType, ITypeComputationResult expressionResult)