Search in sources :

Example 1 with ResolvedMethodImpl

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

the class CompilationUnitImpl method toResolvedMethod.

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

Aggregations

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