Lawtext core references • Docs
Lawtext core references / core/src/analyzer/detectVariableReferences
core/src/analyzer/detectVariableReferences
References
default
Renames and re-exports detectVariableReferences
Functions
detectVariableReferences()
detectVariableReferences(
sentenceEnvsStruct
,declarations
,lawRefByDeclarationID
,pointerEnvsStruct
):WithErrorValue
<object
>
Parameters
• sentenceEnvsStruct: SentenceEnvsStruct
• declarations: Declarations
• lawRefByDeclarationID: Map
<string
, ____LawRef
>
• pointerEnvsStruct: PointerEnvsStruct
Returns
WithErrorValue
<object
>
varRefs
varRefs:
____VarRef
[]
Defined in
core/src/analyzer/detectVariableReferences/index.ts:245 (opens in a new tab)
detectVariableReferencesOfEL()
detectVariableReferencesOfEL(
elToBeModified
,sentenceEnv
,declarations
,lawRefByDeclarationID
,pointerEnvsStruct
):WithErrorValue
<object
>
Parameters
• elToBeModified: StdEL
| __EL
• sentenceEnv: SentenceEnv
• declarations: Declarations
• lawRefByDeclarationID: Map
<string
, ____LawRef
>
• pointerEnvsStruct: PointerEnvsStruct
Returns
WithErrorValue
<object
>
varRefs
varRefs:
____VarRef
[]
Defined in
core/src/analyzer/detectVariableReferences/index.ts:140 (opens in a new tab)
matchVariableReferences()
matchVariableReferences(
textEL
,sentenceEnv
,declarations
):null
|WithErrorValue
<object
>
Parameters
• textEL: __Text
• sentenceEnv: SentenceEnv
• declarations: Declarations
Returns
null
| WithErrorValue
<object
>
Defined in
core/src/analyzer/detectVariableReferences/index.ts:17 (opens in a new tab)