Logo Xantham

Ast.SpanMapSegment Type

One mapping between a virtual file and the original it was extracted from.

Record fields

Record Field Description

Features

Full Usage: Features

Field type: SpanMapFeature voption

Absent when the compiler wrote a five-element segment.

Absent is not "no features": the reference client reads a segment with no sixth element as SpanMapFeature.All (`dist/api/node/node.js`, `get spanMap`). The wire fact is kept as it is rather than defaulted, so that a caller can tell the two forms apart - but a caller asking what the segment supports should read ValueNone as everything.

Field type: SpanMapFeature voption

Kind

Full Usage: Kind

Field type: SpanMapKind
Field type: SpanMapKind

OriginalLength

Full Usage: OriginalLength

Field type: int
Field type: int

OriginalStart

Full Usage: OriginalStart

Field type: int
Field type: int

VirtualLength

Full Usage: VirtualLength

Field type: int
Field type: int

VirtualStart

Full Usage: VirtualStart

Field type: int
Field type: int

Type something to start searching.