precedingComments property

CommentToken precedingComments
inherited

Return the first comment in the list of comments that precede this token, or null if there are no comments preceding this token. Additional comments can be reached by following the token stream using next until null is returned.

For example, if the original contents were /* one */ /* two */ id, then the first preceding comment token will have a lexeme of /* one */ and the next comment token will have a lexeme of /* two */.

Implementation

@override
CommentToken get precedingComments => _precedingComment;
void precedingComments=(CommentToken comment)
inherited

Implementation

void set precedingComments(CommentToken comment) {
  _precedingComment = comment;
  _setCommentParent(_precedingComment);
}