PhrasePathStyleApplicator

Utility for applying PhrasePathRecord's information to token ranges in a StyledDocument.

Types

Link copied to clipboard

An object to use as a key in an AttributeSet, where the value is a DefinitionAndUsesInDocument. This is applied to the StyledDocument for the span of a token that is a declaration of some local. The DefinitionAndUsesInDocument contains navigation information for both this definition and all uses.

Link copied to clipboard

An object to use as a key in an AttributeSet, where the value is a DefinitionAndUsesInDocument. This is applied to the StyledDocument for the span of a token that is a use of some local. The DefinitionAndUsesInDocument contains navigation information for both the definition and all such uses.

Link copied to clipboard

An object to use as a key in an AttributeSet, where the value is a PhraseNode. This is applied to the StyledDocument for the span of each token that is part of that PhraseNode.

Link copied to clipboard
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.