Search in sources :

Example 1 with XtendParameterDeclarationImpl

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

the class CompilationUnitImpl method toXtendParameterDeclaration.

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

Aggregations

XtendParameterDeclarationImpl (org.eclipse.xtend.core.macro.declaration.XtendParameterDeclarationImpl)1 XtendParameter (org.eclipse.xtend.core.xtend.XtendParameter)1 Procedure1 (org.eclipse.xtext.xbase.lib.Procedures.Procedure1)1