SqlSourceStructure

Dialect-aware source structure for conservative SQL source scanners.

The structure keeps source tokens together with statement, parenthesis, CASE nesting, and source-pattern matches. It is intentionally lighter than a parser grammar; SQLDelight remains responsible for validating SQL.

Constructors

Link copied to clipboard
constructor(tokens: List<SqlSourceTokenContext>, blocks: List<SqlSourceBlock>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Returns blocks whose direct parent is block.

Link copied to clipboard

Returns the token context that covers offset, if any.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard

Returns the smallest block that contains token.

Link copied to clipboard

Returns the tokens contained by block.

Link copied to clipboard

Returns tokens that belong to the statement with statementIndex.

Link copied to clipboard
open override fun toString(): String