Back to API Reference
Class

RangeSource

abstract

Base class for serialized and runtime producers of text range entities.

Derived Types(3)

Types that inherit from RangeSource.

public RangeSourceId RuntimeId{ get }

Runtime identity used with source-local RangeId values.

public string Identity{ get }

Stable configuration identity shared by sources that select the same logical input; null means identity by instance only.

public TextSnapshot Snapshot{ get }

The rendered-text snapshot against which this source currently resolves positions. It is invalid until the source has participated in its owner's first parse.

protected virtual void CollectRanges()

Emits this source's immutable range snapshot. Implementations must not retain writer or mutable references used to construct a match.

protected virtual void OnSnapshotChanged()

Updates source-owned anchors after rendered text changes. Snapshot-bound sources may reject or clear old results; tracking sources may remap them through the detected edit.

protected void NotifyChanged()

Publishes one consolidated source-change notification.

protected void NotifyStructureChanged()
public Action Changed

Occurs after this source atomically changes its range set.