Lawtext core references / core/src/analyzer/detectVariableReferences
core/src/analyzer/detectVariableReferences
Functions
detectVariableReferences()
detectVariableReferences(
sentenceEnvsStruct
,declarations
,lawRefByDeclarationID
,pointerEnvsStruct
):WithErrorValue
<{varRefs
:____VarRef
[]; }>
Defined in: core/src/analyzer/detectVariableReferences/index.ts:245 (opens in a new tab)
Parameters
sentenceEnvsStruct
declarations
lawRefByDeclarationID
Map
<string
, ____LawRef
>
pointerEnvsStruct
Returns
WithErrorValue
<{ varRefs
: ____VarRef
[]; }>
detectVariableReferencesOfEL()
detectVariableReferencesOfEL(
elToBeModified
,sentenceEnv
,declarations
,lawRefByDeclarationID
,pointerEnvsStruct
):WithErrorValue
<{varRefs
:____VarRef
[]; }>
Defined in: core/src/analyzer/detectVariableReferences/index.ts:140 (opens in a new tab)
Parameters
elToBeModified
sentenceEnv
declarations
lawRefByDeclarationID
Map
<string
, ____LawRef
>
pointerEnvsStruct
Returns
WithErrorValue
<{ varRefs
: ____VarRef
[]; }>
matchVariableReferences()
matchVariableReferences(
textEL
,sentenceEnv
,declarations
):null
|WithErrorValue
<{newItems
:SentenceChildEL
[];varRefs
:____VarRef
[]; }>
Defined in: core/src/analyzer/detectVariableReferences/index.ts:17 (opens in a new tab)
Parameters
textEL
sentenceEnv
declarations
Returns
null
| WithErrorValue
<{ newItems
: SentenceChildEL
[]; varRefs
: ____VarRef
[]; }>
References
default
Renames and re-exports detectVariableReferences