Lawtext core references • Docs
Lawtext core references / core/src/parser/std/rules/$law
core/src/parser/std/rules/$law
References
default
Renames and re-exports $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
>
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.
Defined in
core/src/parser/std/rules/$law.ts:266 (opens in a new tab)
$lawTitleLines
const
$lawTitleLines:WithErrorRule
<object
>
Type declaration
lawNameLine
lawNameLine:
VirtualLine
&object
Type declaration
type
lawNumLine
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
[]
Parameters
• enactStatement: EnactStatement
• indentTexts: string
[]
Returns
Line
[]
Defined in
core/src/parser/std/rules/$law.ts:194 (opens in a new tab)
lawToLines()
lawToLines(
law
,indentTexts
):Line
[]
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: Law
• indentTexts: string
[]
Returns
Line
[]