| Index: pkg/csslib/lib/visitor.dart
|
| diff --git a/pkg/csslib/lib/visitor.dart b/pkg/csslib/lib/visitor.dart
|
| index d2f24c9b6f9cc231358c7fd102a757fd1af17ef1..bcab6fc4de774dba54f9f2ea2d41bdb932040e77 100644
|
| --- a/pkg/csslib/lib/visitor.dart
|
| +++ b/pkg/csslib/lib/visitor.dart
|
| @@ -16,6 +16,7 @@ abstract class VisitorBase {
|
| void visitCssComment(CssComment node);
|
| void visitCommentDefinition(CommentDefinition node);
|
| void visitStyleSheet(StyleSheet node);
|
| + void visitNoOp(NoOp node);
|
| void visitTopLevelProduction(TopLevelProduction node);
|
| void visitDirective(Directive node);
|
| void visitMediaExpression(MediaExpression node);
|
| @@ -31,12 +32,18 @@ abstract class VisitorBase {
|
| void visitStyletDirective(StyletDirective node);
|
| void visitNamespaceDirective(NamespaceDirective node);
|
| void visitVarDefinitionDirective(VarDefinitionDirective node);
|
| + void visitMixinDefinition(MixinDefinition node);
|
| + void visitMixinRulesetDirective(MixinRulesetDirective node);
|
| + void visitMixinDeclarationDirective(MixinDeclarationDirective node);
|
| + void visitIncludeDirective(IncludeDirective node);
|
| + void visitContentDirective(ContentDirective node);
|
|
|
| void visitRuleSet(RuleSet node);
|
| void visitDeclarationGroup(DeclarationGroup node);
|
| void visitMarginGroup(DeclarationGroup node);
|
| void visitDeclaration(Declaration node);
|
| void visitVarDefinition(VarDefinition node);
|
| + void visitIncludeMixinAtDeclaration(IncludeMixinAtDeclaration node);
|
| void visitSelectorGroup(SelectorGroup node);
|
| void visitSelector(Selector node);
|
| void visitSimpleSelectorSequence(SimpleSelectorSequence node);
|
| @@ -118,6 +125,8 @@ class Visitor implements VisitorBase {
|
| _visitNodeList(ss.topLevels);
|
| }
|
|
|
| + void visitNoOp(NoOp node) { }
|
| +
|
| void visitTopLevelProduction(TopLevelProduction node) { }
|
|
|
| void visitDirective(Directive node) { }
|
| @@ -193,6 +202,22 @@ class Visitor implements VisitorBase {
|
| visitVarDefinition(node.def);
|
| }
|
|
|
| + void visitMixinRulesetDirective(MixinRulesetDirective node) {
|
| + _visitNodeList(node.rulesets);
|
| + }
|
| +
|
| + void visitMixinDefinition(MixinDefinition node) { }
|
| +
|
| + void visitMixinDeclarationDirective(MixinDeclarationDirective node) {
|
| + visitDeclarationGroup(node.declarations);
|
| + }
|
| +
|
| + void visitIncludeDirective(IncludeDirective node) { }
|
| +
|
| + void visitContentDirective(ContentDirective node) {
|
| + // TODO(terry): TBD
|
| + }
|
| +
|
| void visitRuleSet(RuleSet node) {
|
| visitSelectorGroup(node._selectorGroup);
|
| visitDeclarationGroup(node._declarationGroup);
|
| @@ -214,6 +239,10 @@ class Visitor implements VisitorBase {
|
| if (node._expression != null) node._expression.visit(this);
|
| }
|
|
|
| + void visitIncludeMixinAtDeclaration(IncludeMixinAtDeclaration node) {
|
| + visitIncludeDirective(node.include);
|
| + }
|
| +
|
| void visitSelectorGroup(SelectorGroup node) {
|
| _visitNodeList(node.selectors);
|
| }
|
|
|