use of org.eclipse.xtend.core.macro.declaration.ResolvedParameterImpl in project xtext-xtend by eclipse.
the class ResolvedExecutableImpl method getResolvedParameters.
@Override
public Iterable<? extends ResolvedParameter> getResolvedParameters() {
Iterable<? extends ResolvedParameter> _xblockexpression = null;
{
if ((this.resolvedParameters == null)) {
int _size = this.getDelegate().getDeclaration().getParameters().size();
final Function1<Integer, ResolvedParameterImpl> _function = (Integer i) -> {
ParameterDeclaration _parameterDeclaration = this.getCompilationUnit().toParameterDeclaration(this.getDelegate().getDeclaration().getParameters().get((i).intValue()));
TypeReference _typeReference = this.getCompilationUnit().toTypeReference(this.getDelegate().getResolvedParameterTypes().get((i).intValue()));
return new ResolvedParameterImpl(_parameterDeclaration, _typeReference);
};
this.resolvedParameters = IterableExtensions.<Integer, ResolvedParameterImpl>map(new ExclusiveRange(0, _size, true), _function);
}
_xblockexpression = this.resolvedParameters;
}
return _xblockexpression;
}
Aggregations