use of com.google.idea.blaze.base.lang.buildfile.completion.NamedBuildLookupElement in project intellij by bazelbuild.
the class ArgumentReference method getVariants.
@Override
public Object[] getVariants() {
FunctionStatement function = resolveFunction();
if (function == null) {
return EMPTY_ARRAY;
}
List<LookupElement> params = Lists.newArrayList();
for (Parameter param : function.getParameters()) {
params.add(new NamedBuildLookupElement(param, QuoteType.NoQuotes));
}
return params.toArray();
}
Aggregations