MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / currentLocation

Method currentLocation

pkg/sql/parser/parser.go:127–132  ·  view source on GitHub ↗

currentLocation returns the source location of the current token. Span information is embedded directly in models.TokenWithSpan so no separate position-mapping slice is required.

()

Source from the content-addressed store, hash-verified

125// Span information is embedded directly in models.TokenWithSpan so no
126// separate position-mapping slice is required.
127func (p *Parser) currentLocation() models.Location {
128 if p.currentPos < len(p.tokens) {
129 return p.tokens[p.currentPos].Start
130 }
131 return models.Location{}
132}
133
134// MaxRecursionDepth defines the maximum allowed recursion depth for parsing operations.
135// This prevents stack overflow from deeply nested expressions, CTEs, or other recursive structures.

Callers 15

parseCreateStatementMethod · 0.95
parseCreateTableMethod · 0.95
parseWithRecoveryMethod · 0.95
parsePivotClauseMethod · 0.95
parseUnpivotClauseMethod · 0.95
parseSubqueryMethod · 0.95
parseColumnNameMethod · 0.95
parseColumnDefMethod · 0.95
parseFunctionCallMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected