use of org.elixir_lang.structure_view.element.CallDefinition in project intellij-elixir by KronicDeth.
the class TreeElementList method addClausesToCallDefinition.
public void addClausesToCallDefinition(@NotNull Call call, @NotNull String name, @NotNull IntRange arityRange) {
for (int arity = arityRange.getMinimumInteger(); arity <= arityRange.getMaximumInteger(); arity++) {
Pair<String, Integer> nameArity = pair(name, arity);
CallDefinition callDefinition = putNew(nameArity);
callDefinition.clause(call);
}
}
Aggregations