Esempio n. 1
0
 public void deprecatedSyntaxEscapedSelector(EscapedSelector errorNode) {
   addWarning(
       errorNode,
       "Selector fragment (~"
           + errorNode.getQuoteType()
           + errorNode.getValue()
           + errorNode.getQuoteType()
           + ") uses deprecated (~\"escaped-selector\") syntax. Use selector interpolation @{variableName} instead.");
 }
Esempio n. 2
0
 public void warnIE8UnsafeDataUri(
     FunctionExpression errorNode, String filename, int fileSizeInKB, int dataUriMaxKb) {
   addWarning(
       errorNode,
       "Skipped data-uri embedding of "
           + filename
           + " because its size when encoded to string ("
           + fileSizeInKB
           + "dKB) exceeds IE8-safe "
           + dataUriMaxKb
           + "dKB!");
 }
Esempio n. 3
0
 public void wrongMemberInCssBody(ASTCssNode member, Body node) {
   ASTCssNode parent = node.getParent() == null ? node : node.getParent();
   ASTCssNodeType parentType =
       node.getParent() == null ? ASTCssNodeType.STYLE_SHEET : node.getParent().getType();
   addWarning(
       member,
       "Compilation resulted in incorrect CSS. The "
           + PrintUtils.toTypeName(member)
           + " ended up inside a body of "
           + PrintUtils.toTypeName(parentType)
           + " located at "
           + PrintUtils.toLocation(parent)
           + ".");
 }
Esempio n. 4
0
 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.");
 }
Esempio n. 5
0
 public void warnMerginMediaQueryWithMedium(MediaQuery mediaQuery) {
   addWarning(
       mediaQuery,
       "Attempt to merge media query with a medium. Merge removed medium from inner media query, because the result CSS would be invalid otherwise.");
 }
Esempio n. 6
0
 public void warnLessjsIncompatibleSelectorAttributeValue(Expression value) {
   addWarning(
       value,
       "This works, but is incompatible with less.js. Only less.js compatible selector attribute values are string, number and identifier.");
 }
Esempio n. 7
0
 public void warnSourceMapLinkWithoutCssResultLocation(ASTCssNode less) {
   addWarning(
       less,
       "Cannot link source map. Css result location is not know and could not be deduced from input less source.");
 }
Esempio n. 8
0
 public void warnUnknowAtRule(UnknownAtRule unknown) {
   addWarning(
       unknown,
       "Unknown at-rule, resulting css may be incorrect. Unknown at-rules support in less.js is undocumented and may be changed in the future (altrough it is unlikely). If that happen, less4j implementation will change too.");
 }
Esempio n. 9
0
 public void divisionByZero(NumberExpression errorNode) {
   addWarning(errorNode, "Division by zero.");
 }
Esempio n. 10
0
 public void rulesetWithoutSelector(RuleSet errorNode) {
   addWarning(errorNode, "Ruleset without selector encountered.");
 }
Esempio n. 11
0
 public void mathFunctionParameterNotANumberWarn(String functionName, Expression errorNode) {
   addWarning(errorNode, "function '" + functionName + "' requires number as a parameter.");
 }
Esempio n. 12
0
 public void variableAsPseudoclassParameter(PseudoClass errorNode) {
   addWarning(
       errorNode.getParameter(),
       "Variables as pseudo classes parameters have been deprecated. Use selector interpolation @{variableName} instead.");
 }
Esempio n. 13
0
 public void warnExtendInsideExtend(Selector errorNode) {
   addWarning(
       errorNode,
       "Target selector of extend contains nested extend. Nested extend will be ignored. The behaviour of less.js and less4j differ on this type of input.");
 }
Esempio n. 14
0
 public void warnEscapeFunctionArgument(Expression errorNode) {
   addWarning(errorNode, "Escape function argument should be a string.");
 }
Esempio n. 15
0
 public void deprecatedImportMultiple(Import errorNode) {
   addWarning(
       errorNode,
       "`@import-multiple <url>` have been deprecated. Use `@import (multiple) <url>` instead. Input file is less.js incompatible.");
 }
Esempio n. 16
0
 public void warnLessImportNoBaseDirectory(Expression urlExpression) {
   addWarning(
       urlExpression,
       "Attempt to import less file with an unknown compiled file location. Import statement left unchanged.");
 }