Search in sources :

Example 1 with XtendTypeParameterDeclarationImpl

use of org.eclipse.xtend.core.macro.declaration.XtendTypeParameterDeclarationImpl in project xtext-xtend by eclipse.

the class CompilationUnitImpl method toXtendTypeParameterDeclaration.

public XtendTypeParameterDeclarationImpl toXtendTypeParameterDeclaration(final JvmTypeParameter delegate) {
    final Function1<JvmTypeParameter, XtendTypeParameterDeclarationImpl> _function = (JvmTypeParameter it) -> {
        XtendTypeParameterDeclarationImpl _xtendTypeParameterDeclarationImpl = new XtendTypeParameterDeclarationImpl();
        final Procedure1<XtendTypeParameterDeclarationImpl> _function_1 = (XtendTypeParameterDeclarationImpl it_1) -> {
            it_1.setDelegate(delegate);
            it_1.setCompilationUnit(this);
        };
        return ObjectExtensions.<XtendTypeParameterDeclarationImpl>operator_doubleArrow(_xtendTypeParameterDeclarationImpl, _function_1);
    };
    return this.<JvmTypeParameter, XtendTypeParameterDeclarationImpl>getOrCreate(delegate, _function);
}
Also used : JvmTypeParameter(org.eclipse.xtext.common.types.JvmTypeParameter) XtendTypeParameterDeclarationImpl(org.eclipse.xtend.core.macro.declaration.XtendTypeParameterDeclarationImpl) Procedure1(org.eclipse.xtext.xbase.lib.Procedures.Procedure1)

Aggregations

XtendTypeParameterDeclarationImpl (org.eclipse.xtend.core.macro.declaration.XtendTypeParameterDeclarationImpl)1 JvmTypeParameter (org.eclipse.xtext.common.types.JvmTypeParameter)1 Procedure1 (org.eclipse.xtext.xbase.lib.Procedures.Procedure1)1