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

Method ParseContextFromModelTokens

pkg/sql/parser/parser.go:344–347  ·  view source on GitHub ↗

ParseContextFromModelTokens parses tokenizer output with context support for cancellation.

(ctx context.Context, tokens []models.TokenWithSpan)

Source from the content-addressed store, hash-verified

342
343// ParseContextFromModelTokens parses tokenizer output with context support for cancellation.
344func (p *Parser) ParseContextFromModelTokens(ctx context.Context, tokens []models.TokenWithSpan) (*ast.AST, error) {
345 preprocessed := preprocessTokens(tokens)
346 return p.parseContextTokens(ctx, preprocessed)
347}
348
349// ParseWithPositions parses tokens with position tracking for enhanced error reporting.
350//

Callers 2

ParseWithContextFunction · 0.80

Calls 2

parseContextTokensMethod · 0.95
preprocessTokensFunction · 0.85

Tested by 1