func()

in shardingsphere-operator/pkg/distsql/visitor_parser/sharding/rdlstatement_parser.go [3046:3115]


func (p *RDLStatementParser) DropShardingAuditor() (localctx IDropShardingAuditorContext) {
	localctx = NewDropShardingAuditorContext(p, p.GetParserRuleContext(), p.GetState())
	p.EnterRule(localctx, 26, RDLStatementParserRULE_dropShardingAuditor)
	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(285)
		p.Match(RDLStatementParserDROP)
	}
	{
		p.SetState(286)
		p.Match(RDLStatementParserSHARDING)
	}
	{
		p.SetState(287)
		p.Match(RDLStatementParserAUDITOR)
	}
	p.SetState(289)
	p.GetErrorHandler().Sync(p)
	_la = p.GetTokenStream().LA(1)

	if _la == RDLStatementParserIF {
		{
			p.SetState(288)
			p.IfExists()
		}

	}
	{
		p.SetState(291)
		p.AuditorName()
	}
	p.SetState(296)
	p.GetErrorHandler().Sync(p)
	_la = p.GetTokenStream().LA(1)

	for _la == RDLStatementParserCOMMA_ {
		{
			p.SetState(292)
			p.Match(RDLStatementParserCOMMA_)
		}
		{
			p.SetState(293)
			p.AuditorName()
		}

		p.SetState(298)
		p.GetErrorHandler().Sync(p)
		_la = p.GetTokenStream().LA(1)
	}

	return localctx
}