in shardingsphere-operator/pkg/distsql/visitor_parser/mask/rdlstatement_parser.go [1715:1778]
func (p *RDLStatementParser) AlgorithmDefinition() (localctx IAlgorithmDefinitionContext) {
localctx = NewAlgorithmDefinitionContext(p, p.GetParserRuleContext(), p.GetState())
p.EnterRule(localctx, 18, RDLStatementParserRULE_algorithmDefinition)
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(121)
p.Match(RDLStatementParserTYPE)
}
{
p.SetState(122)
p.Match(RDLStatementParserLP_)
}
{
p.SetState(123)
p.Match(RDLStatementParserNAME)
}
{
p.SetState(124)
p.Match(RDLStatementParserEQ_)
}
{
p.SetState(125)
p.AlgorithmTypeName()
}
p.SetState(128)
p.GetErrorHandler().Sync(p)
_la = p.GetTokenStream().LA(1)
if _la == RDLStatementParserCOMMA_ {
{
p.SetState(126)
p.Match(RDLStatementParserCOMMA_)
}
{
p.SetState(127)
p.PropertiesDefinition()
}
}
{
p.SetState(130)
p.Match(RDLStatementParserRP_)
}
return localctx
}