Library
core
src
parser
std
env
interfaces
Env

Lawtext core referencesDocs


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

Interface: Env

Extends

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, matchContext) => void

Parameters

matchFail: MatchFail

matchContext: MatchContext

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

maxOffsetMatchContext

maxOffsetMatchContext: null | MatchContext

maxOffsetMatchFail

maxOffsetMatchFail: null | MatchFail

Defined in

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

Methods

offsetToPos()

offsetToPos(target, rawOffset): BasePos

Parameters

target: VirtualLine[]

rawOffset: number

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

rawStart: number

rawEnd: number

target: VirtualLine[]

Returns

void

Inherited from

BaseEnv.registerCurrentRangeTarget

Defined in

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