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

Method Join_constraint

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

Source from the content-addressed store, hash-verified

20946}
20947
20948func (p *SQLiteParser) Join_constraint() (localctx IJoin_constraintContext) {
20949 localctx = NewJoin_constraintContext(p, p.GetParserRuleContext(), p.GetState())
20950 p.EnterRule(localctx, 102, SQLiteParserRULE_join_constraint)
20951 var _la int
20952
20953 p.EnterOuterAlt(localctx, 1)
20954 p.SetState(1623)
20955 p.GetErrorHandler().Sync(p)
20956
20957 if p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 235, p.GetParserRuleContext()) == 1 {
20958 {
20959 p.SetState(1609)
20960 p.Match(SQLiteParserON_)
20961 if p.HasError() {
20962 // Recognition error - abort rule
20963 goto errorExit
20964 }
20965 }
20966 {
20967 p.SetState(1610)
20968 p.expr(0)
20969 }
20970
20971 } else if p.HasError() { // JIM
20972 goto errorExit
20973 } else if p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 235, p.GetParserRuleContext()) == 2 {
20974 {
20975 p.SetState(1611)
20976 p.Match(SQLiteParserUSING_)
20977 if p.HasError() {
20978 // Recognition error - abort rule
20979 goto errorExit
20980 }
20981 }
20982 {
20983 p.SetState(1612)
20984 p.Match(SQLiteParserOPEN_PAR)
20985 if p.HasError() {
20986 // Recognition error - abort rule
20987 goto errorExit
20988 }
20989 }
20990 {
20991 p.SetState(1613)
20992 p.Column_name()
20993 }
20994 p.SetState(1618)
20995 p.GetErrorHandler().Sync(p)
20996 if p.HasError() {
20997 goto errorExit
20998 }
20999 _la = p.GetTokenStream().LA(1)
21000
21001 for _la == SQLiteParserCOMMA {
21002 {
21003 p.SetState(1614)
21004 p.Match(SQLiteParserCOMMA)
21005 if p.HasError() {

Callers 1

Join_clauseMethod · 0.95

Calls 5

exprMethod · 0.95
Column_nameMethod · 0.95
EnterRuleMethod · 0.45
ExitRuleMethod · 0.45

Tested by

no test coverage detected