Commentinterfaceinterface CommentA comment of a text.
| Member | Type | What it is |
|---|---|---|
kind | "comment" | |
style | CommentStyle | |
marker | string | What opens it: --, #, //, /*. |
span | Span | From the first character of its marker to the end of its closing marker (or of the line, or of the text). |
text | string | What is between its markers, as written. |
index | number | Its place among the comments of the text, from 0. |
before | number | How many tokens precede it: the token before it is before - 1, and the token after it is before. |
ownLine | boolean | Whether only white space stands between the start of its line and it. |
blankAfter | boolean | Whether a blank line, or the end of the text, follows it. |
terminated | boolean | Whether it is closed: a line comment always is, a block comment that is not closed ends at the end of the text. |