Skip to main content

Interface: ParsedText

Defined in: Parser/parser.ts:63

Extends​

  • Readonly<Mapped>

Properties​

delegate?​

readonly optional delegate?: DelegateInfo

Defined in: Parser/parser.ts:86

Used to delegate parsing the contents of text to another parser.


map?​

readonly optional map?: SourceMap

Defined in: Parser/Mapped.ts:22

(i, j) number pairs where

  • i is the offset in the source relative to the start of the range
  • j is the offset in the transformed destination

Example:

  • source text = "caf\xe9"
  • mapped text = "café"
  • map = [3, 3, 4, 1]

See: SourceMap

Inherited from​

Readonly.map


range​

readonly range: Range

Defined in: Parser/Mapped.ts:7

The absolute start and end offset of the text in the source.

Inherited from​

Readonly.range


rawText?​

readonly optional rawText?: string

Defined in: Parser/parser.ts:71

The raw text before it has been transformed


scope?​

readonly optional scope?: Scope

Defined in: Parser/parser.ts:77

The Scope annotation for a segment of text. Used by the spell checker to apply spell checking options based upon the value of the scope.


tags?​

readonly optional tags?: Readonly<ParsedTags>

Defined in: Parser/parser.ts:81

The tags associated with this segment of text.


text​

readonly text: string

Defined in: Parser/parser.ts:67

The text extracted and possibly transformed