func()

in shardingsphere-operator/pkg/distsql/visitor_parser/shadow/rdlstatement_parser.go [2616:2679]


func (p *RDLStatementParser) AlgorithmDefinition() (localctx IAlgorithmDefinitionContext) {
	localctx = NewAlgorithmDefinitionContext(p, p.GetParserRuleContext(), p.GetState())
	p.EnterRule(localctx, 32, 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(177)
		p.Match(RDLStatementParserTYPE)
	}
	{
		p.SetState(178)
		p.Match(RDLStatementParserLP_)
	}
	{
		p.SetState(179)
		p.Match(RDLStatementParserNAME)
	}
	{
		p.SetState(180)
		p.Match(RDLStatementParserEQ_)
	}
	{
		p.SetState(181)
		p.AlgorithmTypeName()
	}
	p.SetState(184)
	p.GetErrorHandler().Sync(p)
	_la = p.GetTokenStream().LA(1)

	if _la == RDLStatementParserCOMMA_ {
		{
			p.SetState(182)
			p.Match(RDLStatementParserCOMMA_)
		}
		{
			p.SetState(183)
			p.PropertiesDefinition()
		}

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

	return localctx
}