@tikoci/centrs
    Preparing search index...

    Interface SegmentResult

    The full segmentation of one input string.

    interface SegmentResult {
        comments: { end: number; start: number }[];
        defects: Defect[];
        segments: Segment[];
    }
    Index

    Properties

    comments: { end: number; start: number }[]

    comment spans (analyzed-byte offsets), dropped from the statement stream.

    defects: Defect[]

    Unbalanced delimiters and other structural surprises, each located; never a throw. Includes the two coordinate-pass classes (bom, non-ascii).

    segments: Segment[]