SqlSourceBlock

class SqlSourceBlock(val kind: SqlSourceBlockKind, val startTokenIndex: Int, val endTokenIndex: Int, val startOffset: Int, val endOffset: Int, val statementIndex: Int, val parentBlockIndex: Int?, val sourcePatternMatch: SqlSourcePatternMatch? = null)

A syntactic source block derived from dialect-aware source tokens.

Block ranges use token indices, with endTokenIndex being exclusive. The source offsets cover the same range in the original source text.

Constructors

Link copied to clipboard
constructor(kind: SqlSourceBlockKind, startTokenIndex: Int, endTokenIndex: Int, startOffset: Int, endOffset: Int, statementIndex: Int, parentBlockIndex: Int?, sourcePatternMatch: SqlSourcePatternMatch? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val size: Int

Number of tokens covered by this block.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Returns true when block is fully inside this block.

Returns true when token is inside this block.

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
open override fun toString(): String