in shardingsphere-operator/pkg/distsql/visitor_parser/sharding/rdlstatement_parser.go [1559:1636]
func (p *RDLStatementParser) DropShardingTableReferenceRule() (localctx IDropShardingTableReferenceRuleContext) {
localctx = NewDropShardingTableReferenceRuleContext(p, p.GetParserRuleContext(), p.GetState())
p.EnterRule(localctx, 10, RDLStatementParserRULE_dropShardingTableReferenceRule)
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(181)
p.Match(RDLStatementParserDROP)
}
{
p.SetState(182)
p.Match(RDLStatementParserSHARDING)
}
{
p.SetState(183)
p.Match(RDLStatementParserTABLE)
}
{
p.SetState(184)
p.Match(RDLStatementParserREFERENCE)
}
{
p.SetState(185)
p.Match(RDLStatementParserRULE)
}
p.SetState(187)
p.GetErrorHandler().Sync(p)
_la = p.GetTokenStream().LA(1)
if _la == RDLStatementParserIF {
{
p.SetState(186)
p.IfExists()
}
}
{
p.SetState(189)
p.RuleName()
}
p.SetState(194)
p.GetErrorHandler().Sync(p)
_la = p.GetTokenStream().LA(1)
for _la == RDLStatementParserCOMMA_ {
{
p.SetState(190)
p.Match(RDLStatementParserCOMMA_)
}
{
p.SetState(191)
p.RuleName()
}
p.SetState(196)
p.GetErrorHandler().Sync(p)
_la = p.GetTokenStream().LA(1)
}
return localctx
}