in shardingsphere-operator/pkg/distsql/visitor_parser/sharding/rdlstatement_parser.go [996:1069]
func (p *RDLStatementParser) DropShardingTableRule() (localctx IDropShardingTableRuleContext) {
localctx = NewDropShardingTableRuleContext(p, p.GetParserRuleContext(), p.GetState())
p.EnterRule(localctx, 4, RDLStatementParserRULE_dropShardingTableRule)
var _la int
defer func() {
p.ExitRule()
}()
defer func() {
if err := recover(); err != nil {
if v, ok := err.(antlr.RecognitionException); ok {
localctx.SetException(v)
p.GetErrorHandler().ReportError(p, v)
p.GetErrorHandler().Recover(p, v)
} else {
panic(err)
}
}
}()
p.EnterOuterAlt(localctx, 1)
{
p.SetState(137)
p.Match(RDLStatementParserDROP)
}
{
p.SetState(138)
p.Match(RDLStatementParserSHARDING)
}
{
p.SetState(139)
p.Match(RDLStatementParserTABLE)
}
{
p.SetState(140)
p.Match(RDLStatementParserRULE)
}
p.SetState(142)
p.GetErrorHandler().Sync(p)
_la = p.GetTokenStream().LA(1)
if _la == RDLStatementParserIF {
{
p.SetState(141)
p.IfExists()
}
}
{
p.SetState(144)
p.TableName()
}
p.SetState(149)
p.GetErrorHandler().Sync(p)
_la = p.GetTokenStream().LA(1)
for _la == RDLStatementParserCOMMA_ {
{
p.SetState(145)
p.Match(RDLStatementParserCOMMA_)
}
{
p.SetState(146)
p.TableName()
}
p.SetState(151)
p.GetErrorHandler().Sync(p)
_la = p.GetTokenStream().LA(1)
}
return localctx
}