public isComment() as Boolean
Returns true when this token is a comment (COMMENT or DOC_COMMENT).
true
COMMENT
DOC_COMMENT
true if this.kind.isComment().
this.kind.isComment()
import klyn.code tok = Token(TokenKind.COMMENT, "# note") assert tok.isComment()