use of com.intellij.codeInsight.template.impl.VariableNode in project intellij-community by JetBrains.
the class ForeachPostfixTemplate method setVariables.
@Override
public void setVariables(@NotNull Template template, @NotNull PsiElement element) {
MacroCallNode type = new MacroCallNode(new IterableComponentTypeMacro());
MacroCallNode name = new MacroCallNode(new SuggestVariableNameMacro());
type.addParameter(new VariableNode("expr", null));
template.addVariable("type", type, type, false);
template.addVariable("name", name, name, true);
}
Aggregations