Library
core
src
analyzer
detectVariableReferences
Readme

Lawtext core references


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

SentenceEnvsStruct

declarations

Declarations

lawRefByDeclarationID

Map<string, ____LawRef>

pointerEnvsStruct

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

StdEL | __EL

sentenceEnv

SentenceEnv

declarations

Declarations

lawRefByDeclarationID

Map<string, ____LawRef>

pointerEnvsStruct

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

__Text

sentenceEnv

SentenceEnv

declarations

Declarations

Returns

null | WithErrorValue<{ newItems: SentenceChildEL[]; varRefs: ____VarRef[]; }>

References

default

Renames and re-exports detectVariableReferences