Library
core
src
parser
cst
env
interfaces
Env

Lawtext core references


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

Interface: Env

Defined in: core/src/parser/cst/env.ts:7 (opens in a new tab)

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 (opens in a new tab)


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 (opens in a new tab)

Overrides

BaseEnv.options


state

state: object

Defined in: core/src/parser/cst/env.ts:9 (opens in a new tab)

maxOffsetMatchContext

maxOffsetMatchContext: null | MatchContext

maxOffsetMatchFail

maxOffsetMatchFail: null | MatchFail

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