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

Method With_clause

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

Source from the content-addressed store, hash-verified

9990}
9991
9992func (p *SQLiteParser) With_clause() (localctx IWith_clauseContext) {
9993 localctx = NewWith_clauseContext(p, p.GetParserRuleContext(), p.GetState())
9994 p.EnterRule(localctx, 50, SQLiteParserRULE_with_clause)
9995 var _la int
9996
9997 p.EnterOuterAlt(localctx, 1)
9998 {
9999 p.SetState(773)
10000 p.Match(SQLiteParserWITH_)
10001 if p.HasError() {
10002 // Recognition error - abort rule
10003 goto errorExit
10004 }
10005 }
10006 p.SetState(775)
10007 p.GetErrorHandler().Sync(p)
10008
10009 if p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 91, p.GetParserRuleContext()) == 1 {
10010 {
10011 p.SetState(774)
10012 p.Match(SQLiteParserRECURSIVE_)
10013 if p.HasError() {
10014 // Recognition error - abort rule
10015 goto errorExit
10016 }
10017 }
10018
10019 } else if p.HasError() { // JIM
10020 goto errorExit
10021 }
10022 {
10023 p.SetState(777)
10024 p.Cte_table_name()
10025 }
10026 {
10027 p.SetState(778)
10028 p.Match(SQLiteParserAS_)
10029 if p.HasError() {
10030 // Recognition error - abort rule
10031 goto errorExit
10032 }
10033 }
10034 {
10035 p.SetState(779)
10036 p.Match(SQLiteParserOPEN_PAR)
10037 if p.HasError() {
10038 // Recognition error - abort rule
10039 goto errorExit
10040 }
10041 }
10042 {
10043 p.SetState(780)
10044 p.Select_stmt()
10045 }
10046 {
10047 p.SetState(781)
10048 p.Match(SQLiteParserCLOSE_PAR)
10049 if p.HasError() {

Callers 5

Delete_stmtMethod · 0.95
Delete_stmt_limitedMethod · 0.95
Insert_stmtMethod · 0.95
Update_stmtMethod · 0.95
Update_stmt_limitedMethod · 0.95

Calls 5

Cte_table_nameMethod · 0.95
Select_stmtMethod · 0.95
NewWith_clauseContextFunction · 0.85
EnterRuleMethod · 0.45
ExitRuleMethod · 0.45

Tested by

no test coverage detected