func()

in shardingsphere-operator/pkg/distsql/visitor_parser/sharding/rdlstatement_parser.go [7085:7148]


func (p *RDLStatementParser) AlgorithmDefinition() (localctx IAlgorithmDefinitionContext) {
	localctx = NewAlgorithmDefinitionContext(p, p.GetParserRuleContext(), p.GetState())
	p.EnterRule(localctx, 88, 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(492)
		p.Match(RDLStatementParserTYPE)
	}
	{
		p.SetState(493)
		p.Match(RDLStatementParserLP_)
	}
	{
		p.SetState(494)
		p.Match(RDLStatementParserNAME)
	}
	{
		p.SetState(495)
		p.Match(RDLStatementParserEQ_)
	}
	{
		p.SetState(496)
		p.AlgorithmTypeName()
	}
	p.SetState(499)
	p.GetErrorHandler().Sync(p)
	_la = p.GetTokenStream().LA(1)

	if _la == RDLStatementParserCOMMA_ {
		{
			p.SetState(497)
			p.Match(RDLStatementParserCOMMA_)
		}
		{
			p.SetState(498)
			p.PropertiesDefinition()
		}

	}
	{
		p.SetState(501)
		p.Match(RDLStatementParserRP_)
	}

	return localctx
}