Lawtext core references / core/src/analyzer/detectVariableReferences
Module: core/src/analyzer/detectVariableReferences
Table of contents
References
Functions
References
default
Renames and re-exports detectVariableReferences
Functions
detectVariableReferences
▸ detectVariableReferences(sentenceEnvsStruct
, declarations
, lawRefByDeclarationID
, pointerEnvsStruct
): WithErrorValue
<{ varRefs
: ____VarRef
[] }>
Parameters
Name | Type |
---|---|
sentenceEnvsStruct | SentenceEnvsStruct |
declarations | Declarations |
lawRefByDeclarationID | Map <string , ____LawRef > |
pointerEnvsStruct | PointerEnvsStruct |
Returns
WithErrorValue
<{ varRefs
: ____VarRef
[] }>
Defined in
core/src/analyzer/detectVariableReferences/index.ts:239 (opens in a new tab)
detectVariableReferencesOfEL
▸ detectVariableReferencesOfEL(elToBeModified
, sentenceEnv
, declarations
, lawRefByDeclarationID
, pointerEnvsStruct
): WithErrorValue
<{ varRefs
: ____VarRef
[] }>
Parameters
Name | Type |
---|---|
elToBeModified | StdEL | __EL |
sentenceEnv | SentenceEnv |
declarations | Declarations |
lawRefByDeclarationID | Map <string , ____LawRef > |
pointerEnvsStruct | PointerEnvsStruct |
Returns
WithErrorValue
<{ varRefs
: ____VarRef
[] }>
Defined in
core/src/analyzer/detectVariableReferences/index.ts:113 (opens in a new tab)
matchVariableReferences
▸ matchVariableReferences(textEL
, sentenceEnv
, declarations
): null
| WithErrorValue
<{ newItems
: SentenceChildEL
[] ; varRefs
: ____VarRef
[] }>
Parameters
Name | Type |
---|---|
textEL | __Text |
sentenceEnv | SentenceEnv |
declarations | Declarations |
Returns
null
| WithErrorValue
<{ newItems
: SentenceChildEL
[] ; varRefs
: ____VarRef
[] }>
Defined in
core/src/analyzer/detectVariableReferences/index.ts:15 (opens in a new tab)