Skip to main content

Interface: ParsedText

Defined in: packages/cspell-types/dist/index-B8R3-rR5.d.mts:19

Properties

delegate?

readonly optional delegate: DelegateInfo

Defined in: packages/cspell-types/dist/index-B8R3-rR5.d.mts:48

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


map?

readonly optional map: SourceMap

Defined in: packages/cspell-types/dist/index-B8R3-rR5.d.mts:43

The source map is used to support text transformations.

See: SourceMap


range

readonly range: Range

Defined in: packages/cspell-types/dist/index-B8R3-rR5.d.mts:31

start and end offsets of the text


rawText?

readonly optional rawText: string

Defined in: packages/cspell-types/dist/index-B8R3-rR5.d.mts:27

The raw text before it has been transformed


scope?

readonly optional scope: Scope

Defined in: packages/cspell-types/dist/index-B8R3-rR5.d.mts:37

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: packages/cspell-types/dist/index-B8R3-rR5.d.mts:23

The text extracted and possibly transformed