Interface: ParsedText
Defined in: Parser/parser.ts:24
Extends
Readonly<Mapped>
Properties
delegate?
readonlyoptionaldelegate:DelegateInfo
Defined in: Parser/parser.ts:43
Used to delegate parsing the contents of text to another parser.
map?
readonlyoptionalmap:SourceMap
Defined in: Parser/Mapped.ts:22
(i, j) number pairs where
iis the offset in the source relative to the start of the rangejis 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
readonlyrange:Range
Defined in: Parser/Mapped.ts:7
The absolute start and end offset of the text in the source.
Inherited from
Readonly.range
rawText?
readonlyoptionalrawText:string
Defined in: Parser/parser.ts:32
The raw text before it has been transformed
scope?
readonlyoptionalscope:Scope
Defined in: Parser/parser.ts:38
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.
text
readonlytext:string
Defined in: Parser/parser.ts:28
The text extracted and possibly transformed