Library
core
interfaces
Core Src Parser Std Env.env

Lawtext core references / core/src/parser/std/env / Env

Interface: Env

core/src/parser/std/env.Env

Hierarchy

Table of contents

Properties

Methods

Properties

baseOffset

baseOffset: number

Inherited from

BaseEnv.baseOffset

Defined in

core/node_modules/generic-parser/lib/core/env.d.ts:20


onMatchFail

Optional onMatchFail: (matchFail: MatchFail, matchContext: MatchContext) => void

Type declaration

▸ (matchFail, matchContext): void

Parameters
NameType
matchFailMatchFail
matchContextMatchContext
Returns

void

Inherited from

BaseEnv.onMatchFail

Defined in

core/node_modules/generic-parser/lib/core/env.d.ts:19


options

options: Record<string | number | symbol, unknown>

Inherited from

BaseEnv.options

Defined in

core/node_modules/generic-parser/lib/core/env.d.ts:16


state

state: Object

Type declaration

NameType
maxOffsetMatchContextnull | MatchContext
maxOffsetMatchFailnull | MatchFail

Defined in

core/src/parser/std/env.ts:5 (opens in a new tab)

Methods

offsetToPos

offsetToPos(target, rawOffset): BasePos

Parameters

NameType
targetVirtualLine[]
rawOffsetnumber

Returns

BasePos

Inherited from

BaseEnv.offsetToPos

Defined in

core/node_modules/generic-parser/lib/core/env.d.ts:18


registerCurrentRangeTarget

registerCurrentRangeTarget(rawStart, rawEnd, target): void

Parameters

NameType
rawStartnumber
rawEndnumber
targetVirtualLine[]

Returns

void

Inherited from

BaseEnv.registerCurrentRangeTarget

Defined in

core/node_modules/generic-parser/lib/core/env.d.ts:17