示例#1
0
 public void ambiguousDefaultSet(MixinReference reference, List<ASTCssNode> possibleMixins) {
   addError(
       reference,
       "Ambiguous use of `default()` found when matching reference "
           + reference.getFinalName()
           + ". Matched mixins using default are located at "
           + printer.toNodesPositions(possibleMixins));
 }
示例#2
0
 public void wrongDetachedRulesetReference(DetachedRulesetReference reference, Expression value) {
   addError(
       reference,
       "Detached ruleset reference \""
           + reference.getVariable().getName()
           + "\"  does not evaluate to detached ruleset. It resolved to expression defined at "
           + printer.toPosition(value));
 }
示例#3
0
 public void stringInterpolationNotSupported(HiddenTokenAwareTree errorNode, Expression value) {
   addError(
       errorNode,
       "String interpolation does not requeted expression type. Requested expression was defined at "
           + printer.toPosition(value));
 }
示例#4
0
 private CompilationError createUndefinedNamespace(MixinReference reference) {
   return createUndefinedNamespace(printer.toString(reference), reference);
 }
示例#5
0
 public void mixinsCycle(List<MixinReference> cycle) {
   addError(
       cycle.get(0), "Cyclic references among mixins: " + printer.toMixinReferencesString(cycle));
 }
示例#6
0
 public void variablesCycle(List<Variable> cycle) {
   addError(
       cycle.get(0), "Cyclic references among variables: " + printer.toVariablesString(cycle));
 }