TokenStyle

data class TokenStyle(val phraseNode: PhrasePathRecord.PhraseNode, val tokenIndexInName: Int)

A TokenStyle contains information about which PhraseNode is applicable for a span of source having this invisible style (under the PhraseNodeAttributeKey), as well as which of the phrase's atom's MessageSplitter parts occurred in this span of the source.

Constructors

Link copied to clipboard
constructor(phraseNode: PhrasePathRecord.PhraseNode, tokenIndexInName: Int)

Properties

Link copied to clipboard

The PhraseNode that this invisible style represents.

Link copied to clipboard

The one-based index of a message part within the split message name being sent. When this style is applied to a span of source code, this field indicates the corresponding static token of the message name.