// Examine the property signatures and extract a list of keywords
for (CssPropertyInfo pi : properties.values()) {
pi.sig.acceptPreOrder(new Visitor() {
public boolean visit(AncestorChain<?> ancestors) {
ParseTreeNode n = ancestors.node;
if (n instanceof CssPropertySignature.LiteralSignature) {
String kw = ((CssPropertySignature.LiteralSignature) n).value;
keywords.add(Name.css(kw));
}
return true;
}
}, null);
}
for (SymbolInfo si : symbols.values()) {
si.sig.acceptPreOrder(new Visitor() {
public boolean visit(AncestorChain<?> ancestors) {
ParseTreeNode n = ancestors.node;
if (n instanceof CssPropertySignature.LiteralSignature) {
String kw = ((CssPropertySignature.LiteralSignature) n).value;
keywords.add(Name.css(kw));
}
return true;