Lawtext core references • Docs
Lawtext core references / core/src/parser/cst/rules/makeRangesRule
core/src/parser/cst/rules/makeRangesRule
References
default
Renames and re-exports makeRangesRule
Type Aliases
RangeMaker()<TPointer, TRange>
RangeMaker<
TPointer
,TRange
>: (from
,midText
,to
,trailingText
,modifierParentheses
,range
) =>TRange
Type Parameters
• TPointer
• TRange
Parameters
• from: TPointer
• midText: object
| null
• to: TPointer
| null
• trailingText: object
| null
• modifierParentheses: __Parentheses
| null
• range: [number
, number
]
Returns
TRange
Defined in
core/src/parser/cst/rules/makeRangesRule.ts:7 (opens in a new tab)
RangesMaker()<TRange, TRanges>
RangesMaker<
TRange
,TRanges
>: (first
,midText
,rest
,range
) =>WithErrorValue
<TRanges
>
Type Parameters
• TRange
• TRanges
Parameters
• first: WithErrorValue
<TRange
>
• midText: object
| null
• rest: WithErrorValue
<TRanges
> | null
• range: [number
, number
]
Returns
WithErrorValue
<TRanges
>
Defined in
core/src/parser/cst/rules/makeRangesRule.ts:25 (opens in a new tab)
Variables
ptnRangesConnectors
const
ptnRangesConnectors:string
[]
Defined in
core/src/parser/cst/rules/makeRangesRule.ts:44 (opens in a new tab)
Functions
makeRangesRule()
makeRangesRule<
TPointer
,TRange
,TRanges
>(lazyPointerRule
,rangeMaker
,rangesMaker
):object
Type Parameters
• TPointer
• TRange = [TPointer
, TPointer
]
• TRanges = [TPointer
, TPointer
][]
Parameters
• lazyPointerRule
• rangeMaker: RangeMaker
<TPointer
, TRange
> = ...
• rangesMaker: RangesMaker
<TRange
, TRanges
> = ...
Returns
object
$range
$range:
WithErrorRule
<TRange
>
$ranges
$ranges:
WithErrorRule
<TRanges
>
Defined in
core/src/parser/cst/rules/makeRangesRule.ts:48 (opens in a new tab)