Search in sources :

Example 1 with ResolvedConstructorImpl

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

the class CompilationUnitImpl method toResolvedConstructor.

public ResolvedConstructor toResolvedConstructor(final IResolvedConstructor delegate) {
    final Function1<IResolvedConstructor, ResolvedConstructorImpl> _function = (IResolvedConstructor it) -> {
        ResolvedConstructorImpl _resolvedConstructorImpl = new ResolvedConstructorImpl();
        final Procedure1<ResolvedConstructorImpl> _function_1 = (ResolvedConstructorImpl it_1) -> {
            it_1.setDelegate(delegate);
            it_1.setCompilationUnit(this);
        };
        return ObjectExtensions.<ResolvedConstructorImpl>operator_doubleArrow(_resolvedConstructorImpl, _function_1);
    };
    return this.<IResolvedConstructor, ResolvedConstructorImpl>getOrCreate(delegate, _function);
}
Also used : Procedure1(org.eclipse.xtext.xbase.lib.Procedures.Procedure1) ResolvedConstructorImpl(org.eclipse.xtend.core.macro.declaration.ResolvedConstructorImpl) IResolvedConstructor(org.eclipse.xtext.xbase.typesystem.override.IResolvedConstructor)

Aggregations

ResolvedConstructorImpl (org.eclipse.xtend.core.macro.declaration.ResolvedConstructorImpl)1 Procedure1 (org.eclipse.xtext.xbase.lib.Procedures.Procedure1)1 IResolvedConstructor (org.eclipse.xtext.xbase.typesystem.override.IResolvedConstructor)1