Member Junction
    Preparing search index...

    One token, covering its exact range of the input.

    interface SqlToken {
        ContainsTemplate: boolean;
        Depth: number;
        Enclosing: Span | null;
        Kind: SqlTokenKind;
        Span: Span;
        Template: TemplateTagInfo | null;
        Text: string;
    }
    Index

    Properties

    ContainsTemplate: boolean

    Whether this token is part of a SQL string literal, quoted identifier or comment that a template tag interrupts. Such a literal is split into pieces around each tag; every piece carries true, and Enclosing gives the literal's full extent.

    Depth: number

    Parenthesis depth the token sits at. A ( carries the depth outside it and a ) the depth outside the parenthesis it closes, so both match the text around them.

    Enclosing: Span | null

    The full extent of the literal, identifier or comment this piece belongs to; null when not split.

    Span: Span
    Template: TemplateTagInfo | null

    The tag's parts, for the three template kinds; null for SQL tokens.

    Text: string

    The token's text exactly as it appears in the input.