MCPcopy Index your code
hub / github.com/sqlc-dev/sqlc / Join_operator

Method Join_operator

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

Source from the content-addressed store, hash-verified

20651}
20652
20653func (p *SQLiteParser) Join_operator() (localctx IJoin_operatorContext) {
20654 localctx = NewJoin_operatorContext(p, p.GetParserRuleContext(), p.GetState())
20655 p.EnterRule(localctx, 100, SQLiteParserRULE_join_operator)
20656 var _la int
20657
20658 p.SetState(1607)
20659 p.GetErrorHandler().Sync(p)
20660 if p.HasError() {
20661 goto errorExit
20662 }
20663
20664 switch p.GetTokenStream().LA(1) {
20665 case SQLiteParserCOMMA:
20666 p.EnterOuterAlt(localctx, 1)
20667 {
20668 p.SetState(1593)
20669 p.Match(SQLiteParserCOMMA)
20670 if p.HasError() {
20671 // Recognition error - abort rule
20672 goto errorExit
20673 }
20674 }
20675
20676 case SQLiteParserFULL_, SQLiteParserINNER_, SQLiteParserJOIN_, SQLiteParserLEFT_, SQLiteParserNATURAL_, SQLiteParserRIGHT_:
20677 p.EnterOuterAlt(localctx, 2)
20678 p.SetState(1595)
20679 p.GetErrorHandler().Sync(p)
20680 if p.HasError() {
20681 goto errorExit
20682 }
20683 _la = p.GetTokenStream().LA(1)
20684
20685 if _la == SQLiteParserNATURAL_ {
20686 {
20687 p.SetState(1594)
20688 p.Match(SQLiteParserNATURAL_)
20689 if p.HasError() {
20690 // Recognition error - abort rule
20691 goto errorExit
20692 }
20693 }
20694
20695 }
20696 p.SetState(1602)
20697 p.GetErrorHandler().Sync(p)
20698 if p.HasError() {
20699 goto errorExit
20700 }
20701 switch p.GetTokenStream().LA(1) {
20702 case SQLiteParserFULL_, SQLiteParserLEFT_, SQLiteParserRIGHT_:
20703 {
20704 p.SetState(1597)
20705 _la = p.GetTokenStream().LA(1)
20706
20707 if !((int64((_la-78)) & ^0x3f) == 0 && ((int64(1)<<(_la-78))&562949954469889) != 0) {
20708 p.GetErrorHandler().RecoverInline(p)
20709 } else {
20710 p.GetErrorHandler().ReportMatch(p)

Callers 1

Join_clauseMethod · 0.95

Calls 3

NewJoin_operatorContextFunction · 0.85
EnterRuleMethod · 0.45
ExitRuleMethod · 0.45

Tested by

no test coverage detected