@Override public void visitPropertyDeclaration(PropertyDeclarationTree tree) { if (tree.property().isVendorPrefixed()) { String standardPropertyName = tree.property().standardProperty().getName(); Vendor vendor = tree.property().vendor(); if (properties.containsKey(standardPropertyName)) { properties.get(standardPropertyName).add(vendor); } else { properties.put(standardPropertyName, Sets.newHashSet(vendor)); } } super.visitPropertyDeclaration(tree); }
@Override public void visitPropertyDeclaration(PropertyDeclarationTree tree) { if (tree.property().isVendorPrefixed()) { String standardPropertyName = tree.property().standardProperty().getName(); Vendor vendor = tree.property().vendor(); if (properties.containsKey(standardPropertyName)) { properties.get(standardPropertyName).add(vendor); } else { properties.put(standardPropertyName, Sets.newHashSet(vendor)); } } super.visitPropertyDeclaration(tree); }
@Override public void visitStatementBlock(StatementBlockTree tree) { List<PropertyDeclarationTree> declarations = tree.propertyDeclarations(); for (int i = 0; i < declarations.size(); i++) { PropertyTree currentProperty = declarations.get(i).property(); PropertyDeclarationTree nextDeclaration = i + 1 < declarations.size() ? declarations.get(i + 1) : null; if (!(currentProperty.standardProperty() instanceof UnknownProperty) && currentProperty.isVendorPrefixed() && !isNextPropertyValid(nextDeclaration, currentProperty)) { addPreciseIssue(currentProperty, "Define the standard property right after this vendor-prefixed property."); } } super.visitStatementBlock(tree); }
@Override public void visitStatementBlock(StatementBlockTree tree) { List<PropertyDeclarationTree> declarations = tree.propertyDeclarations(); for (int i = 0; i < declarations.size(); i++) { PropertyTree currentProperty = declarations.get(i).property(); PropertyDeclarationTree nextDeclaration = i + 1 < declarations.size() ? declarations.get(i + 1) : null; if (!(currentProperty.standardProperty() instanceof UnknownProperty) && currentProperty.isVendorPrefixed() && !isNextPropertyValid(nextDeclaration, currentProperty)) { addPreciseIssue(currentProperty, "Define the standard property right after this vendor-prefixed property."); } } super.visitStatementBlock(tree); }
if (current.property().isVendorPrefixed()) { continue; && !next.property().isVendorPrefixed()) { if (current.value().treeValue().equalsIgnoreCase(next.value().treeValue()) || !nextSameProperty) { duplicates.add(next);
if (current.property().isVendorPrefixed()) { continue; && !next.property().isVendorPrefixed()) { if (current.value().treeValue().equalsIgnoreCase(next.value().treeValue()) || !nextSameProperty) { duplicates.add(next);
@Override public void visitProperty(PropertyTree tree) { if (!tree.isScssNamespace() && !tree.standardProperty().getName().matches(propertiesToExclude) && (tree.isVendorPrefixed() || tree.standardProperty().isExperimental())) { addPreciseIssue( tree, "Remove this usage of the experimental \"" + tree.standardProperty().getName() + "\" property."); } super.visitProperty(tree); }
@Override public void visitProperty(PropertyTree tree) { if (!tree.isScssNamespace() && (tree.isVendorPrefixed() || tree.standardProperty().isExperimental())) { addPreciseIssue( tree, "Remove this usage of the experimental \"" + tree.standardProperty().getName() + "\" property."); } super.visitProperty(tree); }
@Override public void visitPropertyDeclaration(PropertyDeclarationTree tree) { if (!tree.property().isVendorPrefixed() && !tree.isValid(this.getContext().getLanguage())) { addPreciseIssue( tree, MessageFormat.format( "Update the invalid value of property \"{0}\". Expected format: {1}", tree.property().standardProperty().getName(), tree.property().standardProperty().getValidatorFormat())); } super.visitPropertyDeclaration(tree); }
@Override public void visitPropertyDeclaration(PropertyDeclarationTree tree) { if (!tree.property().isVendorPrefixed() && !tree.isValid(this.getContext().getLanguage())) { addPreciseIssue( tree, MessageFormat.format( "Update the invalid value of property \"{0}\". Expected format: {1}", tree.property().standardProperty().getName(), tree.property().standardProperty().getValidatorFormat())); } super.visitPropertyDeclaration(tree); }