Search in sources :

Example 1 with TypeParameterDeclarator

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;
}
Also used : TypeParameterDeclaration(org.eclipse.xtend.lib.macro.declaration.TypeParameterDeclaration) TypeParameterDeclarator(org.eclipse.xtend.lib.macro.declaration.TypeParameterDeclarator) TypeReference(org.eclipse.xtend.lib.macro.declaration.TypeReference) JvmTypeReference(org.eclipse.xtext.common.types.JvmTypeReference) JvmParameterizedTypeReference(org.eclipse.xtext.common.types.JvmParameterizedTypeReference)

Aggregations

TypeParameterDeclaration (org.eclipse.xtend.lib.macro.declaration.TypeParameterDeclaration)1 TypeParameterDeclarator (org.eclipse.xtend.lib.macro.declaration.TypeParameterDeclarator)1 TypeReference (org.eclipse.xtend.lib.macro.declaration.TypeReference)1 JvmParameterizedTypeReference (org.eclipse.xtext.common.types.JvmParameterizedTypeReference)1 JvmTypeReference (org.eclipse.xtext.common.types.JvmTypeReference)1