Search in sources :

Example 1 with ClosureWithExpectationHelper

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

the class ExtensionAwareClosureTypeComputer method createClosureWithExpectationHelper.

@Override
protected ClosureWithExpectationHelper createClosureWithExpectationHelper(JvmOperation operation) {
    return new ClosureWithExpectationHelper(getClosure(), operation, getExpectation(), getState()) {

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

Aggregations

ClosureWithExpectationHelper (org.eclipse.xtext.xbase.typesystem.computation.ClosureWithExpectationHelper)1 ITypeAssigner (org.eclipse.xtext.xbase.typesystem.computation.ITypeAssigner)1 ITypeComputationState (org.eclipse.xtext.xbase.typesystem.computation.ITypeComputationState)1