Lawtext core references / core/src/parser/std/env / Env
Interface: Env
Hierarchy
-
BaseEnv
<VirtualLine
[],BasePos
>↳
Env
Table of contents
Properties
Methods
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
: MatchFail
, matchContext
: MatchContext
) => void
Type declaration
▸ (matchFail
, matchContext
): void
Parameters
Name | Type |
---|---|
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
Type declaration
Name | Type |
---|---|
maxOffsetMatchContext | null | MatchContext |
maxOffsetMatchFail | null | MatchFail |
Defined in
core/src/parser/std/env.ts:5 (opens in a new tab)
Methods
offsetToPos
▸ offsetToPos(target
, rawOffset
): BasePos
Parameters
Name | Type |
---|---|
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
Name | Type |
---|---|
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