private boolean appendSupportsLogicalOperator(SupportsLogicalOperator node) { if (node.getOperator() == null) { cssOnly.append(ERROR); } cssOnly.append(node.getOperator().getSymbol()); return true; }
public void warnInconsistentSupportsLogicalConditionOperators( SupportsLogicalOperator faulty, SupportsLogicalOperator masterOperator) { String faultySymbol = faulty.getOperator().getSymbol(); String masterSymbol = masterOperator.getOperator().getSymbol(); addWarning( faulty, "CSS specification does not allow mixing of 'and', 'or', and 'not' operators without a layer of parentheses. Operators '" + faultySymbol + "' at " + PrintUtils.toLocation(faulty) + "' and '" + masterSymbol + "' at " + PrintUtils.toLocation(masterOperator) + " are in the same layer of parentheses."); }