Skip to main content

Interface: VariableMapperCtx

Defined in: packages/core/src/visitors/variable-mapper.ts:18

Mutable context threaded through VariableMapper during a single mapVariables pass over a plan tree.

Properties

calcIntermediates?

optional calcIntermediates?: boolean

Defined in: packages/core/src/visitors/variable-mapper.ts:36

Include calculation intermediate operators


currentIndex

currentIndex: number

Defined in: packages/core/src/visitors/variable-mapper.ts:34

The next free numeric index to assign to a new variable.


scopeStack

scopeStack: VariableMap[]

Defined in: packages/core/src/visitors/variable-mapper.ts:20

Stack of lexical scopes; each entry covers one relational operator's output.


translations

translations: Map<PlanOperator, { external: VariableMap; scope: VariableMap; }>

Defined in: packages/core/src/visitors/variable-mapper.ts:22

Per-operator snapshot of the scope stack at the point the operator was visited.


variableNames

variableNames: ASTIdentifier[]

Defined in: packages/core/src/visitors/variable-mapper.ts:32

Maps each numeric index back to its original human-readable ASTIdentifier.