Library
core
src
analyzer
sentenceChildrenParser
env
interfaces
Env

Lawtext core referencesDocs


Lawtext core references / core/src/analyzer/sentenceChildrenParser/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/analyzer/sentenceChildrenParser/env.ts:5 (opens in a new tab)

Methods

offsetToPos()

offsetToPos(target, rawOffset): BasePos

Parameters

target: SentenceChildEL[]

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: SentenceChildEL[]

Returns

void

Inherited from

BaseEnv.registerCurrentRangeTarget

Defined in

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