Docsv3.31.0
Back to API Reference
Class

FixedRangeSource

sealed
Inherits:RangeSource

Serialized source for a small authored set of codepoint ranges. Runtime-generated or frequently changing sets belong in MutableRangeSource.

Nested Types

public string Identity{ get }

Uses instance identity because two authored lists are independent sources.

public bool IsWholeText{ get }

Whether this source contains one entry covering the entire text.

[ctor]public FixedRangeSource()

Creates an empty authored source.

[ctor]public FixedRangeSource(int start, int end, string parameter = null)

Creates one fixed codepoint range with an exclusive end.

protected override void CollectRanges(in TextSnapshot currentSnapshot, RangeMatchWriter writer)