remove method

void remove()
inherited

Remove this comment token from the list.

This is used when we decide to interpret the comment as syntax.

Implementation

void remove() {
  Token? previous = this.previous;
  if (previous != null) {
    previous.setNextWithoutSettingPrevious(next);
    next?.previous = previous;
  } else {
    assert(parent!.precedingComments == this);
    parent!.precedingComments = next as CommentToken?;
  }
}