newCommentToken

fun newCommentToken(string: A_String?, start: Int, lineNumber: Int, generatingLexer: A_Lexer): A_Token

Create and initialize a new comment token.

Return

The new comment token.

Parameters

string

The token text.

start

The token's starting character position in the file.

lineNumber

The line number on which the token occurred.

generatingLexer

The A_Lexer responsible for creating this token, or nil if the token was not constructed by a lexer.