Lawtext core references • Docs
Lawtext core references / core/src/parser/cst/env / Env
Interface: Env
Extends
BaseEnv
<string
,StringPos
>
Properties
baseOffset
baseOffset:
number
Inherited from
BaseEnv.baseOffset
Defined in
core/node_modules/generic-parser/lib/core/env.d.ts:20
currentIndentDepth
currentIndentDepth:
number
Defined in
core/src/parser/cst/env.ts:8 (opens in a new tab)
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
> &Partial
<object
>
Overrides
BaseEnv.options
Defined in
core/src/parser/cst/env.ts:14 (opens in a new tab)
state
state:
object
maxOffsetMatchContext
maxOffsetMatchContext:
null
|MatchContext
maxOffsetMatchFail
maxOffsetMatchFail:
null
|MatchFail
parenthesesDepth
parenthesesDepth:
number
Defined in
core/src/parser/cst/env.ts:9 (opens in a new tab)
Methods
offsetToPos()
offsetToPos(
target
,rawOffset
):StringPos
Parameters
• target: string
• rawOffset: number
Returns
StringPos
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: string
Returns
void
Inherited from
BaseEnv.registerCurrentRangeTarget
Defined in
core/node_modules/generic-parser/lib/core/env.d.ts:17