func()

in shardingsphere-operator/pkg/distsql/visitor_parser/shadow/rdlstatement_parser.go [1554:1644]


func (p *RDLStatementParser) ShadowRuleDefinition() (localctx IShadowRuleDefinitionContext) {
	localctx = NewShadowRuleDefinitionContext(p, p.GetParserRuleContext(), p.GetState())
	p.EnterRule(localctx, 14, RDLStatementParserRULE_shadowRuleDefinition)
	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.RuleName()
	}
	{
		p.SetState(122)
		p.Match(RDLStatementParserLP_)
	}
	{
		p.SetState(123)
		p.Match(RDLStatementParserSOURCE)
	}
	{
		p.SetState(124)
		p.Match(RDLStatementParserEQ_)
	}
	{
		p.SetState(125)
		p.Source()
	}
	{
		p.SetState(126)
		p.Match(RDLStatementParserCOMMA_)
	}
	{
		p.SetState(127)
		p.Match(RDLStatementParserSHADOW)
	}
	{
		p.SetState(128)
		p.Match(RDLStatementParserEQ_)
	}
	{
		p.SetState(129)
		p.Shadow()
	}
	{
		p.SetState(130)
		p.Match(RDLStatementParserCOMMA_)
	}
	{
		p.SetState(131)
		p.ShadowTableRule()
	}
	p.SetState(136)
	p.GetErrorHandler().Sync(p)
	_la = p.GetTokenStream().LA(1)

	for _la == RDLStatementParserCOMMA_ {
		{
			p.SetState(132)
			p.Match(RDLStatementParserCOMMA_)
		}
		{
			p.SetState(133)
			p.ShadowTableRule()
		}

		p.SetState(138)
		p.GetErrorHandler().Sync(p)
		_la = p.GetTokenStream().LA(1)
	}
	{
		p.SetState(139)
		p.Match(RDLStatementParserRP_)
	}

	return localctx
}