StylingRecord

Styling information that was collected during compilation of a module.

Constructors

Link copied to clipboard
constructor(styleRuns: List<StyleRun>, variableUses: List<Pair<IntRange, IntRange>>)

Construct a new StylingRecord from its parts.

Properties

Link copied to clipboard

An ascending sequence of non-overlapping, non-empty IntRanges, with the style name to apply to that range.

Link copied to clipboard

Information about variable uses and definitions. The pairs go from use to definition. The IntRanges are all one-based.

Functions

Link copied to clipboard

Using the variableUses, collate the use/definition pairs into definition/all-uses pairs. The result is a List of such entries ordered by the definitions' positions. Each entry is a Pair consisting of an IntRange for the definition and an inner List of IntRanges for each use, also ordered by position. All ranges are one-based.

Link copied to clipboard
open override fun toString(): String