TokenData
constructor(text: String, position: IntRange, groups: Sequence<String> = emptySequence(), namedGroups: Map<String, String> = emptyMap(), walkerResult: WalkerParsingResult<*>? = null)
Parameters
text
the substring extracted from the source code, also known as lexeme.
position
location of the token within the source code
groups
capture groups values for this token
namedGroups
capture groups that hold a name. groups does not contain groups from namedGroups