use of org.eclipse.xtext.xbase.typesystem.util.LocalTypeSubstitutor in project xtext-xtend by eclipse.
the class CreateMemberQuickfixes method getResolvedArgumentTypes.
protected List<LightweightTypeReference> getResolvedArgumentTypes(EObject context, JvmIdentifiableElement logicalContainer, List<XExpression> arguments) {
List<LightweightTypeReference> argumentTypes = newArrayList();
IResolvedTypes resolvedTypes = typeResolver.resolveTypes(context);
for (XExpression argument : arguments) {
LightweightTypeReference resolved = resolvedTypes.getActualType(argument);
if (resolved == null) {
StandardTypeReferenceOwner owner = new StandardTypeReferenceOwner(services, context);
argumentTypes.add(owner.newReferenceToObject());
} else {
LocalTypeSubstitutor substitutor = new LocalTypeSubstitutor(resolved.getOwner(), logicalContainer);
argumentTypes.add(substitutor.withoutLocalTypes(resolved));
}
}
return argumentTypes;
}
Aggregations