use of org.eclipse.xtend.lib.macro.declaration.TypeParameterDeclarator in project xtext-xtend by eclipse.
the class TypeReferenceProviderImpl method newSelfTypeReference.
@Override
public TypeReference newSelfTypeReference(final Type typeDeclaration) {
TypeReference _xifexpression = null;
if ((typeDeclaration instanceof TypeParameterDeclarator)) {
final Function1<TypeParameterDeclaration, TypeReference> _function = (TypeParameterDeclaration it) -> {
return this.newTypeReference(it);
};
_xifexpression = this.newTypeReference(typeDeclaration, ((TypeReference[]) Conversions.unwrapArray(IterableExtensions.map(((TypeParameterDeclarator) typeDeclaration).getTypeParameters(), _function), TypeReference.class)));
} else {
_xifexpression = this.newTypeReference(typeDeclaration);
}
return _xifexpression;
}
Aggregations