Lawtext core references / core/src/parser/std/rules/$law
core/src/parser/std/rules/$law
Variables
$enactStatement
const
$enactStatement:WithErrorRule
<EnactStatement
>
Defined in: core/src/parser/std/rules/$law.ts:222 (opens in a new tab)
$law
const
$law:WithErrorRule
<Law
>
Defined in: core/src/parser/std/rules/$law.ts:266 (opens in a new tab)
The parser rule for std.Law. Please see the source code for the detailed syntax, and the test code (opens in a new tab) for examples.
$lawTitleLines
const
$lawTitleLines:WithErrorRule
<{lawNameLine
:VirtualLine
&object
;lawNumLine
:VirtualLine
&object
|null
; }>
Defined in: core/src/parser/std/rules/$law.ts:144 (opens in a new tab)
enactStatementControl
const
enactStatementControl:":enact-statement:"
=":enact-statement:"
Defined in: core/src/parser/std/rules/$law.ts:192 (opens in a new tab)
Functions
enactStatementToLines()
enactStatementToLines(
enactStatement
,indentTexts
):Line
[]
Defined in: core/src/parser/std/rules/$law.ts:194 (opens in a new tab)
Parameters
enactStatement
indentTexts
string
[]
Returns
Line
[]
lawToLines()
lawToLines(
law
,indentTexts
):Line
[]
Defined in: core/src/parser/std/rules/$law.ts:26 (opens in a new tab)
The renderer for std.Law. Please see the source code for the detailed syntax, and the test code (opens in a new tab) for examples.
Parameters
law
indentTexts
string
[]
Returns
Line
[]
References
default
Renames and re-exports $law