Library
core
src
parser
std
virtualLine
Readme

Lawtext core referencesDocs


Lawtext core references / core/src/parser/std/virtualLine

core/src/parser/std/virtualLine

Index

Interfaces

Enumerations

VirtualOnlyLineType

The type identifiers of VirtualLine that are not included in LineType.

Enumeration Members

CAP

CAP: "CAP"

Defined in

core/src/parser/std/virtualLine.ts:20 (opens in a new tab)


DED

DED: "DED"

Defined in

core/src/parser/std/virtualLine.ts:17 (opens in a new tab)


IND

IND: "IND"

Defined in

core/src/parser/std/virtualLine.ts:16 (opens in a new tab)


TAG

TAG: "TAG"

Defined in

core/src/parser/std/virtualLine.ts:18 (opens in a new tab)


TSP

TSP: "TSP"

Defined in

core/src/parser/std/virtualLine.ts:19 (opens in a new tab)

Type Aliases

PhysicalLine

PhysicalLine: object | object | object | object | object | object | object | object | object | object

Defined in

core/src/parser/std/virtualLine.ts:28 (opens in a new tab)


VirtualLine

VirtualLine: PhysicalLine | Indent | Dedent

The extension of CST with the structure of indent blocks.

A VirtualLine represents either a physical line or indent/dedent in the lawtext. The VirtualLine object has a property named type with the type of VirtualLineType, and the different types of VirtualLine are distinguished by that property.

Defined in

core/src/parser/std/virtualLine.ts:10 (opens in a new tab)


VirtualLineType

VirtualLineType: LineType | VirtualOnlyLineType

The identifiers that distinguish the different types of VirtualLine.

Defined in

core/src/parser/std/virtualLine.ts:26 (opens in a new tab)

Functions

isVirtualLine()

isVirtualLine(line): line is VirtualLine

Parameters

line: VirtualLine | Line

Returns

line is VirtualLine

Defined in

core/src/parser/std/virtualLine.ts:100 (opens in a new tab)


toVirtualLines()

toVirtualLines(lines): VirtualLine[]

The parsing logic that converts a sequence of Lines to VirtualLines.

Parameters

lines: Line[]

Returns

VirtualLine[]

Defined in

core/src/parser/std/virtualLine.ts:111 (opens in a new tab)