StylingRecord

constructor(styleRuns: List<StyleRun>, variableUses: List<Pair<IntRange, IntRange>>, declarations: List<IntRange>)

Construct a new StylingRecord from its parts.

Parameters

styleRuns

An ascending sequence of non-overlapping, non-empty IntRanges, with the style name to apply to that range. The ranges are start .. pastEnd in zero-based numbering within the UTF-16 Java string.

variableUses

Information about variable uses and definitions. The pairs go from use to definition. The IntRanges are as for styleRuns.

declarations

All local declarations within the file, even if not referenced by any entries in variableUses. Each range is as per styleRuns.