in shardingsphere-operator/pkg/distsql/visitor_parser/shadow/rdlstatement_parser.go [931:1000]
func (p *RDLStatementParser) DropShadowAlgorithm() (localctx IDropShadowAlgorithmContext) {
localctx = NewDropShadowAlgorithmContext(p, p.GetParserRuleContext(), p.GetState())
p.EnterRule(localctx, 6, RDLStatementParserRULE_dropShadowAlgorithm)
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(85)
p.Match(RDLStatementParserDROP)
}
{
p.SetState(86)
p.Match(RDLStatementParserSHADOW)
}
{
p.SetState(87)
p.Match(RDLStatementParserALGORITHM)
}
p.SetState(89)
p.GetErrorHandler().Sync(p)
_la = p.GetTokenStream().LA(1)
if _la == RDLStatementParserIF {
{
p.SetState(88)
p.IfExists()
}
}
{
p.SetState(91)
p.AlgorithmName()
}
p.SetState(96)
p.GetErrorHandler().Sync(p)
_la = p.GetTokenStream().LA(1)
for _la == RDLStatementParserCOMMA_ {
{
p.SetState(92)
p.Match(RDLStatementParserCOMMA_)
}
{
p.SetState(93)
p.AlgorithmName()
}
p.SetState(98)
p.GetErrorHandler().Sync(p)
_la = p.GetTokenStream().LA(1)
}
return localctx
}