Skip to main content

Interface: ParsedText

Defined in: cspell-types/dist/Parser/index.d.mts:18

Properties

delegate?

readonly optional delegate: DelegateInfo

Defined in: cspell-types/dist/Parser/index.d.mts:47

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


map?

readonly optional map: SourceMap

Defined in: cspell-types/dist/Parser/index.d.mts:42

The source map is used to support text transformations.

See: SourceMap


range

readonly range: Range

Defined in: cspell-types/dist/Parser/index.d.mts:30

start and end offsets of the text


rawText?

readonly optional rawText: string

Defined in: cspell-types/dist/Parser/index.d.mts:26

The raw text before it has been transformed


scope?

readonly optional scope: Scope

Defined in: cspell-types/dist/Parser/index.d.mts:36

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

readonly text: string

Defined in: cspell-types/dist/Parser/index.d.mts:22

The text extracted and possibly transformed