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

Method Reindex_stmt

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

Source from the content-addressed store, hash-verified

17147}
17148
17149func (p *SQLiteParser) Reindex_stmt() (localctx IReindex_stmtContext) {
17150 localctx = NewReindex_stmtContext(p, p.GetParserRuleContext(), p.GetState())
17151 p.EnterRule(localctx, 82, SQLiteParserRULE_reindex_stmt)
17152 p.EnterOuterAlt(localctx, 1)
17153 {
17154 p.SetState(1281)
17155 p.Match(SQLiteParserREINDEX_)
17156 if p.HasError() {
17157 // Recognition error - abort rule
17158 goto errorExit
17159 }
17160 }
17161 p.SetState(1292)
17162 p.GetErrorHandler().Sync(p)
17163
17164 if p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 172, p.GetParserRuleContext()) == 1 {
17165 {
17166 p.SetState(1282)
17167 p.Collation_name()
17168 }
17169
17170 } else if p.HasError() { // JIM
17171 goto errorExit
17172 } else if p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 172, p.GetParserRuleContext()) == 2 {
17173 p.SetState(1286)
17174 p.GetErrorHandler().Sync(p)
17175
17176 if p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 170, p.GetParserRuleContext()) == 1 {
17177 {
17178 p.SetState(1283)
17179 p.Schema_name()
17180 }
17181 {
17182 p.SetState(1284)
17183 p.Match(SQLiteParserDOT)
17184 if p.HasError() {
17185 // Recognition error - abort rule
17186 goto errorExit
17187 }
17188 }
17189
17190 } else if p.HasError() { // JIM
17191 goto errorExit
17192 }
17193 p.SetState(1290)
17194 p.GetErrorHandler().Sync(p)
17195 if p.HasError() {
17196 goto errorExit
17197 }
17198
17199 switch p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 171, p.GetParserRuleContext()) {
17200 case 1:
17201 {
17202 p.SetState(1288)
17203 p.Table_name()
17204 }
17205
17206 case 2:

Callers 1

Sql_stmtMethod · 0.95

Calls 7

Collation_nameMethod · 0.95
Schema_nameMethod · 0.95
Table_nameMethod · 0.95
Index_nameMethod · 0.95
NewReindex_stmtContextFunction · 0.85
EnterRuleMethod · 0.45
ExitRuleMethod · 0.45

Tested by

no test coverage detected