klyn.code.Token.isComment
method
public isComment() as Boolean
Description

Returns true when this token is a comment (COMMENT or DOC_COMMENT).

Returns

true if this.kind.isComment().

Example
import klyn.code

tok = Token(TokenKind.COMMENT, "# note")
assert tok.isComment()