Search in sources :

Example 1 with UnknownClosureTypeHelper

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

the class ExtensionAwareClosureTypeComputer method createUnknownClosureTypeHelper.

@Override
protected UnknownClosureTypeHelper createUnknownClosureTypeHelper() {
    return new UnknownClosureTypeHelper(getClosure(), 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) UnknownClosureTypeHelper(org.eclipse.xtext.xbase.typesystem.computation.UnknownClosureTypeHelper)

Aggregations

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