コード例 #1
0
ファイル: CssPrinter.java プロジェクト: theogimonde/less4j
 private boolean appendSupportsLogicalOperator(SupportsLogicalOperator node) {
   if (node.getOperator() == null) {
     cssOnly.append(ERROR);
   }
   cssOnly.append(node.getOperator().getSymbol());
   return true;
 }
コード例 #2
0
ファイル: ProblemsHandler.java プロジェクト: CptS/less4j
 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.");
 }