accept method

  1. @override
void accept(
  1. covariant VisitorBase visitor
)
override

Implementation

@override
void accept(covariant VisitorBase visitor) {
  if (elements != null) elements = visitor.visitArray(elements);
  if (extendList != null) extendList = visitor.visitArray(extendList);
  if (condition != null) condition = visitor.visit(condition);

//2.3.1
//  Selector.prototype.accept = function (visitor) {
//      if (this.elements) {
//          this.elements = visitor.visitArray(this.elements);
//      }
//      if (this.extendList) {
//          this.extendList = visitor.visitArray(this.extendList);
//      }
//      if (this.condition) {
//          this.condition = visitor.visit(this.condition);
//      }
//  };
}