use of com.thoughtworks.gauge.language.psi.SpecStaticArg in project Intellij-Plugin by getgauge.
the class StaticArgCompletionProvider method getArgsFromSteps.
private Set<String> getArgsFromSteps(List<SpecStep> steps) {
Set<String> staticArgs = new HashSet<>();
for (SpecStep step : steps) {
List<SpecStaticArg> args = step.getStaticArgList();
args.stream().filter(arg -> arg.getText() != null).forEach((arg) -> staticArgs.add(arg.getText()));
}
return staticArgs;
}
Aggregations