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

Method Drop_stmt

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

Source from the content-addressed store, hash-verified

12042}
12043
12044func (p *SQLiteParser) Drop_stmt() (localctx IDrop_stmtContext) {
12045 localctx = NewDrop_stmtContext(p, p.GetParserRuleContext(), p.GetState())
12046 p.EnterRule(localctx, 66, SQLiteParserRULE_drop_stmt)
12047 var _la int
12048
12049 p.EnterOuterAlt(localctx, 1)
12050 {
12051 p.SetState(903)
12052 p.Match(SQLiteParserDROP_)
12053 if p.HasError() {
12054 // Recognition error - abort rule
12055 goto errorExit
12056 }
12057 }
12058 {
12059 p.SetState(904)
12060
12061 var _lt = p.GetTokenStream().LT(1)
12062
12063 localctx.(*Drop_stmtContext).object = _lt
12064
12065 _la = p.GetTokenStream().LA(1)
12066
12067 if !((int64((_la-86)) & ^0x3f) == 0 && ((int64(1)<<(_la-86))&4648277765399773185) != 0) {
12068 var _ri = p.GetErrorHandler().RecoverInline(p)
12069
12070 localctx.(*Drop_stmtContext).object = _ri
12071 } else {
12072 p.GetErrorHandler().ReportMatch(p)
12073 p.Consume()
12074 }
12075 }
12076 p.SetState(907)
12077 p.GetErrorHandler().Sync(p)
12078
12079 if p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 114, p.GetParserRuleContext()) == 1 {
12080 {
12081 p.SetState(905)
12082 p.Match(SQLiteParserIF_)
12083 if p.HasError() {
12084 // Recognition error - abort rule
12085 goto errorExit
12086 }
12087 }
12088 {
12089 p.SetState(906)
12090 p.Match(SQLiteParserEXISTS_)
12091 if p.HasError() {
12092 // Recognition error - abort rule
12093 goto errorExit
12094 }
12095 }
12096
12097 } else if p.HasError() { // JIM
12098 goto errorExit
12099 }
12100 p.SetState(912)
12101 p.GetErrorHandler().Sync(p)

Callers 1

Sql_stmtMethod · 0.95

Calls 6

Schema_nameMethod · 0.95
Any_nameMethod · 0.95
NewDrop_stmtContextFunction · 0.85
LTMethod · 0.80
EnterRuleMethod · 0.45
ExitRuleMethod · 0.45

Tested by

no test coverage detected