variableIndices property

Iterable<int> variableIndices

The variable indices occupied by this generation context.

SQL variables are 1-indexed, so a context with three variables would cover the variables 1, 2 and 3 by default.

Implementation

Iterable<int> get variableIndices {
  final start = explicitVariableIndex ?? 1;
  return Iterable.generate(amountOfVariables, (i) => start + i);
}