private Combinations isWidthOrHeight(PropertyTree tree) { String propertyName = tree.property().text(); if ("height".equalsIgnoreCase(propertyName)) { return Combinations.HEIGHT_FOUND; } else if ("width".equalsIgnoreCase(propertyName)) { return Combinations.WIDTH_FOUND; } return null; }
private Combinations isWidthOrHeight(PropertyTree tree) { String propertyName = tree.property().text(); if ("height".equalsIgnoreCase(propertyName)) { return Combinations.HEIGHT_FOUND; } else if ("width".equalsIgnoreCase(propertyName)) { return Combinations.WIDTH_FOUND; } return null; }
private boolean isBoxSizing(PropertyTree tree) { return "box-sizing".equalsIgnoreCase(tree.property().text()); }
private boolean isBoxSizing(PropertyTree tree) { return "box-sizing".equalsIgnoreCase(tree.property().text()); }
@Nullable private PropertyTree firstUnsortedProperty(List<PropertyTree> propertyTrees) { for (int i = 0; i < propertyTrees.size() - 1; i++) { if (!propertyTrees.get(i).property().isInterpolated() && !propertyTrees.get(i + 1).property().isInterpolated() && propertyTrees.get(i).standardProperty().getName().compareTo(propertyTrees.get(i + 1).standardProperty().getName()) > 0) { return propertyTrees.get(i + 1); } } return null; }
@Nullable private PropertyTree firstUnsortedProperty(List<PropertyTree> propertyTrees) { for (int i = 0; i < propertyTrees.size() - 1; i++) { if (!propertyTrees.get(i).property().isInterpolated() && !propertyTrees.get(i + 1).property().isInterpolated() && propertyTrees.get(i).standardProperty().getName().compareTo(propertyTrees.get(i + 1).standardProperty().getName()) > 0) { return propertyTrees.get(i + 1); } } return null; }
@Override public void visitProperty(PropertyTree tree) { if (tree.standardProperty() instanceof UnknownProperty && tree.property().isValidable() && !tree.isScssNamespace()) { addPreciseIssue(tree, "Remove this usage of the unknown \"" + tree.standardProperty().getName() + "\" property."); } super.visitProperty(tree); }
tokens.add(((PropertyTree) tree).property().value()); code = TypeOfText.CONSTANT;
@Override public void visitProperty(PropertyTree tree) { if (tree.standardProperty() instanceof UnknownProperty && tree.property().isValidable() && !tree.isScssNamespace()) { addPreciseIssue(tree, "Remove this usage of the unknown \"" + tree.standardProperty().getName() + "\" property."); } super.visitProperty(tree); }
tokens.add(((PropertyTree) tree).property().value()); code = TypeOfText.CONSTANT;