precedingComments property

CommentToken? get precedingComments

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

* the first preceding comment token will have a lexeme of `/* one */` and
 * the next comment token will have a lexeme of `/* two */`.
 */
CommentToken? get precedingComments;