use of org.eclipse.xtext.xbase.typesystem.computation.ITypeAssigner 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;
}
};
}
use of org.eclipse.xtext.xbase.typesystem.computation.ITypeAssigner 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;
}
};
}
use of org.eclipse.xtext.xbase.typesystem.computation.ITypeAssigner 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;
}
};
}
Aggregations