Lawtext core references / core/src/parser/cst/util
core/src/parser/cst/util
Type Aliases
ValueRule
ValueRule<
TValue> =Rule<string,TValue,Env,Empty>
Defined in: core/src/parser/cst/util.ts:8
Type Parameters
TValue
TValue
WithErrorRule
WithErrorRule<
TValue> =Rule<string, {errors:ErrorMessage[];value:TValue; },Env,Empty>
Defined in: core/src/parser/cst/util.ts:10
Type Parameters
TValue
TValue
WithErrorValue
WithErrorValue<
TValue> =object
Defined in: core/src/parser/cst/util.ts:9
Type Parameters
TValue
TValue
Properties
errors
errors:
ErrorMessage[]
Defined in: core/src/parser/cst/util.ts:9
value
value:
TValue
Defined in: core/src/parser/cst/util.ts:9
Functions
assertAllELsHaveRange()
assertAllELsHaveRange(
elOrELs):void
Defined in: core/src/parser/cst/util.ts:21
Parameters
elOrELs
Returns
void
enumAllELs()
enumAllELs(
el):EL[]
Defined in: core/src/parser/cst/util.ts:12
Parameters
el
string | EL
Returns
EL[]
mergeAdjacentTexts()
mergeAdjacentTexts<
T>(inline): (__Text|T)[]
Defined in: core/src/parser/cst/util.ts:43
Type Parameters
T
T extends SentenceChildEL
Parameters
inline
T[]
Returns
(__Text | T)[]
mergeAdjacentTextsWithString()
mergeAdjacentTextsWithString<
T>(inline): (__Text|T)[]
Defined in: core/src/parser/cst/util.ts:47
Type Parameters
T
T extends SentenceChildEL
Parameters
inline
(string | T)[]
Returns
(__Text | T)[]
separateTrailingSpaces()
separateTrailingSpaces<
T>(inline):object
Defined in: core/src/parser/cst/util.ts:76
Type Parameters
T
T extends SentenceChildEL
Parameters
inline
(string | T)[]
Returns
object
inline
inline: (
__Text|T)[]
spaces
spaces:
string