Skip to main content
Version: v1

StableRange Interface

Specifies the range of nodes from start to end within a trait. Valid iff start and end are valid and are within the same trait and the start does not occur after the end in the trait.

See StablePlace for what it means for a place to be "after" another place.

StableRange objects can be conveniently constructed with the helper methods exported on a constant of the same name.

Signature

export interface StableRange

Example

StableRange.from(StablePlace.before(startNode)).to(StablePlace.after(endNode))

Properties

Property Type Description
end StablePlace
start StablePlace

Property Details

end

Signature

readonly end: StablePlace;

Type: StablePlace

start

Signature

readonly start: StablePlace;

Type: StablePlace