Lawtext core references / core/src/analyzer/detectDeclarations
core/src/analyzer/detectDeclarations
Functions
detectDeclarations()
detectDeclarations(
sentenceEnvsStruct
,pointerEnvsStruct
,lawTitleLength
):WithErrorValue
<{declarations
:Declarations
;lawRefByDeclarationID
:Map
<string
,____LawRef
>; }>
Defined in: core/src/analyzer/detectDeclarations/index.ts:138 (opens in a new tab)
Parameters
sentenceEnvsStruct
pointerEnvsStruct
lawTitleLength
(lawNum
) => null
| number
Returns
WithErrorValue
<{ declarations
: Declarations
; lawRefByDeclarationID
: Map
<string
, ____LawRef
>; }>
detectDeclarationsByEL()
detectDeclarationsByEL(
elToBeModified
,sentenceEnv
,sentenceEnvsStruct
,pointerEnvsStruct
,lawTitleLength
):WithErrorValue
<{declarations
:____Declaration
[];lawRefs
:____LawRef
[]; }>
Defined in: core/src/analyzer/detectDeclarations/index.ts:17 (opens in a new tab)
Parameters
elToBeModified
sentenceEnv
sentenceEnvsStruct
pointerEnvsStruct
lawTitleLength
(lawNum
) => null
| number
Returns
WithErrorValue
<{ declarations
: ____Declaration
[]; lawRefs
: ____LawRef
[]; }>
detectDeclarationsBySentence()
detectDeclarationsBySentence(
sentenceEnv
,sentenceEnvsStruct
,pointerEnvsStruct
,lawTitleLength
):WithErrorValue
<{declarations
:____Declaration
[];lawRefs
:____LawRef
[]; }>
Defined in: core/src/analyzer/detectDeclarations/index.ts:92 (opens in a new tab)
Parameters
sentenceEnv
sentenceEnvsStruct
pointerEnvsStruct
lawTitleLength
(lawNum
) => null
| number
Returns
WithErrorValue
<{ declarations
: ____Declaration
[]; lawRefs
: ____LawRef
[]; }>
References
default
Renames and re-exports detectDeclarations