Skip to content
# Function: collectSupportedOptionalConditionBranchSpans()

collectSupportedOptionalConditionBranchSpans(sql): SupportedOptionalConditionBranchSpan[]

Defined in: packages/core/src/transformers/PruneOptionalConditionBranches.ts:412

Collects supported optional condition branches with source-text ranges.

The AST collector remains the authority for whether a branch is supported. The range metadata is derived from tokenizer positions so development tools can generate runtime metadata without reparsing SQL in production.

Parameters ​

sql ​

string

Returns ​

SupportedOptionalConditionBranchSpan[]

Released under the MIT License.