SheetXL - v0.8.0-beta.9+sites.210.e2d420901
    Preparing search index...

    Interface FormulaTokenContext

    What a token sits INSIDE — the enclosing call and, for a token that is one, which argument.

    Stamped on every token within an argument list, including the delimiters that opened and closed it (they carry argIndex: -1). It is what turns a flat token list into a tree: B2 at argument 0 of SUM, rather than just B2.

    interface FormulaTokenContext {
        argIndex: number;
        bound?: readonly BoundName[];
        name: string;
        type: FormulaTokenContextType;
    }
    Index
    argIndex: number

    Which argument of name this token belongs to, zero-based.

    -1 when the token is not in an argument at all — the delimiters themselves ((, ), [, ]). A separator belongs to the argument BEFORE it.

    bound?: readonly BoundName[]

    The LET / LAMBDA names in scope here, outermost first.

    In scope as the binder decides: a LAMBDA parameter in every later argument, a LET name from the argument after its value on. An inner declaration spelled the same (case-insensitively) replaces the outer one, with the inner spelling. Absent when no name is in scope.

    name: string

    The display name of the enclosing function (SUM) or table (Sales).

    Always a DISPLAY name, never the stable id the AST carries — resolved alongside the token's own value/text, and localized the same way (see FormulaToken.value). An unknown function keeps the name as typed.

    Whether name is a function (SUM(), a table (Sales[), or a scope-opening LET( / LAMBDA(.