throwAwayComments method

  1. @override
void throwAwayComments ()
override

Implementation

@override
void throwAwayComments() {
  value.retainWhere((Node v) => v is! Comment);

//2.3.1
//  Expression.prototype.throwAwayComments = function () {
//      this.value = this.value.filter(function(v) {
//          return !(v instanceof Comment);
//      });
//  };
}