Search in sources :

Example 1 with ClosureWithoutExpectationHelper

use of org.eclipse.xtext.xbase.typesystem.computation.ClosureWithoutExpectationHelper in project xtext-xtend by eclipse.

the class ExtensionAwareClosureTypeComputer method createClosureWithoutExpectationHelper.

@Override
protected ClosureWithoutExpectationHelper createClosureWithoutExpectationHelper() {
    return new ClosureWithoutExpectationHelper(getClosure(), getExpectation(), getState()) {

        @Override
        protected ITypeComputationState assignParameters(ITypeAssigner typeAssigner, FunctionTypeReference incompleteClosureType) {
            ITypeComputationState result = super.assignParameters(typeAssigner, incompleteClosureType);
            addExtensions(result);
            return result;
        }
    };
}
Also used : ITypeAssigner(org.eclipse.xtext.xbase.typesystem.computation.ITypeAssigner) ITypeComputationState(org.eclipse.xtext.xbase.typesystem.computation.ITypeComputationState) FunctionTypeReference(org.eclipse.xtext.xbase.typesystem.references.FunctionTypeReference) ClosureWithoutExpectationHelper(org.eclipse.xtext.xbase.typesystem.computation.ClosureWithoutExpectationHelper)

Aggregations

ClosureWithoutExpectationHelper (org.eclipse.xtext.xbase.typesystem.computation.ClosureWithoutExpectationHelper)1 ITypeAssigner (org.eclipse.xtext.xbase.typesystem.computation.ITypeAssigner)1 ITypeComputationState (org.eclipse.xtext.xbase.typesystem.computation.ITypeComputationState)1 FunctionTypeReference (org.eclipse.xtext.xbase.typesystem.references.FunctionTypeReference)1