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

Method ParseFromModelTokensWithPositions

pkg/sql/parser/parser.go:339–341  ·  view source on GitHub ↗

ParseFromModelTokensWithPositions is identical to ParseFromModelTokens. Position information is embedded in every models.TokenWithSpan. Deprecated: Use ParseFromModelTokens directly.

(tokens []models.TokenWithSpan)

Source from the content-addressed store, hash-verified

337//
338// Deprecated: Use ParseFromModelTokens directly.
339func (p *Parser) ParseFromModelTokensWithPositions(tokens []models.TokenWithSpan) (*ast.AST, error) {
340 return p.ParseFromModelTokens(tokens)
341}
342
343// ParseContextFromModelTokens parses tokenizer output with context support for cancellation.
344func (p *Parser) ParseContextFromModelTokens(ctx context.Context, tokens []models.TokenWithSpan) (*ast.AST, error) {

Callers 8

FuzzParseFunction · 0.95
BenchmarkFullPipelineFunction · 0.95
BenchmarkParseErrorFunction · 0.95
TestParser_LateralBasicFunction · 0.80

Calls 1

ParseFromModelTokensMethod · 0.95

Tested by 8

FuzzParseFunction · 0.76
BenchmarkFullPipelineFunction · 0.76
BenchmarkParseErrorFunction · 0.76
TestParser_LateralBasicFunction · 0.64