@Override public void traverse() { if (!arglist.isEmpty()) { for (final VariableNode arg : arglist) { if (arg.getExpr() != null) { ScssStylesheet.addVariable(arg); } } } }
@Override public void traverse() { replaceVariables(ScssStylesheet.getVariables()); ScssStylesheet.addVariable(getModifiedList()); getParentNode().removeChild(this); }
public static void traverse(VariableNode node) { VariableNode variable = ScssStylesheet.getVariable(node.getName()); if (!node.isGuarded() || variable == null || variable.getExpr() == null || (variable.getExpr().getLexicalUnitType() == SCSSLexicalUnit.SCSS_NULL && variable .getExpr().getNextLexicalUnit() == null)) { ScssStylesheet.addVariable(node); } node.getParentNode().removeChild(node); } }