DefinitionAndUsesInDocument

data class DefinitionAndUsesInDocument(val definitionSpanInDocument: Pair<Position, Position>, val useSpansInDocument: List<Pair<Position, Position>>)

A class that maintains the position of the declaration of a local variable and its uses within the same StyledDocument. Within the document, this value is stored as an invisible style under the key LocalDefinitionAttributeKey for the span corresponding to the definition, and the same object is stored under LocalUseAttributeKey for the spans that are uses of the local.

Constructors

Link copied to clipboard
constructor(definitionSpanInDocument: Pair<Position, Position>, useSpansInDocument: List<Pair<Position, Position>>)

Properties