MCPcopy
hub / github.com/sqlc-dev/sqlc / Result_column

Method Result_column

internal/engine/sqlite/parser/sqlite_parser.go:20441–20541  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20439}
20440
20441func (p *SQLiteParser) Result_column() (localctx IResult_columnContext) {
20442 localctx = NewResult_columnContext(p, p.GetParserRuleContext(), p.GetState())
20443 p.EnterRule(localctx, 98, SQLiteParserRULE_result_column)
20444 var _la int
20445
20446 p.SetState(1591)
20447 p.GetErrorHandler().Sync(p)
20448 if p.HasError() {
20449 goto errorExit
20450 }
20451
20452 switch p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 229, p.GetParserRuleContext()) {
20453 case 1:
20454 p.EnterOuterAlt(localctx, 1)
20455 {
20456 p.SetState(1579)
20457 p.Match(SQLiteParserSTAR)
20458 if p.HasError() {
20459 // Recognition error - abort rule
20460 goto errorExit
20461 }
20462 }
20463
20464 case 2:
20465 p.EnterOuterAlt(localctx, 2)
20466 {
20467 p.SetState(1580)
20468 p.Table_name()
20469 }
20470 {
20471 p.SetState(1581)
20472 p.Match(SQLiteParserDOT)
20473 if p.HasError() {
20474 // Recognition error - abort rule
20475 goto errorExit
20476 }
20477 }
20478 {
20479 p.SetState(1582)
20480 p.Match(SQLiteParserSTAR)
20481 if p.HasError() {
20482 // Recognition error - abort rule
20483 goto errorExit
20484 }
20485 }
20486
20487 case 3:
20488 p.EnterOuterAlt(localctx, 3)
20489 {
20490 p.SetState(1584)
20491 p.expr(0)
20492 }
20493 p.SetState(1589)
20494 p.GetErrorHandler().Sync(p)
20495 if p.HasError() {
20496 goto errorExit
20497 }
20498 _la = p.GetTokenStream().LA(1)

Callers 1

Select_coreMethod · 0.95

Calls 6

Table_nameMethod · 0.95
exprMethod · 0.95
Column_aliasMethod · 0.95
NewResult_columnContextFunction · 0.85
EnterRuleMethod · 0.45
ExitRuleMethod · 0.45

Tested by

no test coverage detected