TokenStyle

data class TokenStyle(val phraseNode: Repository.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
fun TokenStyle(phraseNode: Repository.PhraseNode, tokenIndexInName: Int)

Properties

Link copied to clipboard
val phraseNode: Repository.PhraseNode

The PhraseNode that this invisible style represents.

Link copied to clipboard
val tokenIndexInName: Int

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.