Skip to Content
LibraryCoreSrcParserCstEnvInterfacesInterface: Env

Lawtext core references


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

Interface: Env

Defined in: core/src/parser/cst/env.ts:7 

Extends

  • BaseEnv<string, StringPos>

Properties

baseOffset

baseOffset: number

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

Inherited from

BaseEnv.baseOffset


currentIndentDepth

currentIndentDepth: number

Defined in: core/src/parser/cst/env.ts:8 


onMatchFail()?

optional onMatchFail: (matchFail, matchContext) => void

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

Parameters

matchFail

MatchFail

matchContext

MatchContext

Returns

void

Inherited from

BaseEnv.onMatchFail


options

options: Record<string | number | symbol, unknown> & Partial<{ inlineTokenRule: WithErrorRule<SentenceChildEL>; reOutsideParenthesesTextChars: RegExp; reParenthesesInlineTextChars: RegExp; rePeriodSentenceTextChars: RegExp; }>

Defined in: core/src/parser/cst/env.ts:14 

Overrides

BaseEnv.options


state

state: object

Defined in: core/src/parser/cst/env.ts:9 

maxOffsetMatchContext

maxOffsetMatchContext: MatchContext | null

maxOffsetMatchFail

maxOffsetMatchFail: MatchFail | null

parenthesesDepth

parenthesesDepth: number

Methods

offsetToPos()

offsetToPos(target, rawOffset): StringPos

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

Parameters

target

string

rawOffset

number

Returns

StringPos

Inherited from

BaseEnv.offsetToPos


registerCurrentRangeTarget()

registerCurrentRangeTarget(rawStart, rawEnd, target): void

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

Parameters

rawStart

number

rawEnd

number

target

string

Returns

void

Inherited from

BaseEnv.registerCurrentRangeTarget

© 2017-2026 yamachi