@cruglobal/js-hcl2 - v0.1.1
    Preparing search index...

    Interface Token

    One lexical token. The lex-rejoin invariant on a token stream ts is:

    ts.map(t => t.leadingTrivia + t.lexeme + t.trailingTrivia).join("")
    === source
    
    interface Token {
        error?: string;
        kind: TokenKind;
        leadingTrivia: string;
        lexeme: string;
        range: Range;
        trailingTrivia: string;
    }
    Index

    Properties

    error?: string

    Only set on INVALID tokens. Human-readable explanation of what went wrong at range.start. Other token kinds leave this undefined.

    kind: TokenKind
    leadingTrivia: string

    Whitespace / comments / suppressed newlines preceding the lexeme.

    lexeme: string

    Verbatim source slice for the token itself (without trivia).

    range: Range

    Span of the lexeme itself in the source file. Does not include trivia.

    trailingTrivia: string

    Same-line whitespace / comment trailing the lexeme, up to (but not including) the next newline or non-trivia character.