MCPcopy Index your code
hub / github.com/sqlc-dev/sqlc / Raise_function

Method Raise_function

internal/engine/sqlite/parser/sqlite_parser.go:15039–15127  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15037}
15038
15039func (p *SQLiteParser) Raise_function() (localctx IRaise_functionContext) {
15040 localctx = NewRaise_functionContext(p, p.GetParserRuleContext(), p.GetState())
15041 p.EnterRule(localctx, 70, SQLiteParserRULE_raise_function)
15042 var _la int
15043
15044 p.EnterOuterAlt(localctx, 1)
15045 {
15046 p.SetState(1129)
15047 p.Match(SQLiteParserRAISE_)
15048 if p.HasError() {
15049 // Recognition error - abort rule
15050 goto errorExit
15051 }
15052 }
15053 {
15054 p.SetState(1130)
15055 p.Match(SQLiteParserOPEN_PAR)
15056 if p.HasError() {
15057 // Recognition error - abort rule
15058 goto errorExit
15059 }
15060 }
15061 p.SetState(1135)
15062 p.GetErrorHandler().Sync(p)
15063 if p.HasError() {
15064 goto errorExit
15065 }
15066
15067 switch p.GetTokenStream().LA(1) {
15068 case SQLiteParserIGNORE_:
15069 {
15070 p.SetState(1131)
15071 p.Match(SQLiteParserIGNORE_)
15072 if p.HasError() {
15073 // Recognition error - abort rule
15074 goto errorExit
15075 }
15076 }
15077
15078 case SQLiteParserABORT_, SQLiteParserFAIL_, SQLiteParserROLLBACK_:
15079 {
15080 p.SetState(1132)
15081 _la = p.GetTokenStream().LA(1)
15082
15083 if !(_la == SQLiteParserABORT_ || _la == SQLiteParserFAIL_ || _la == SQLiteParserROLLBACK_) {
15084 p.GetErrorHandler().RecoverInline(p)
15085 } else {
15086 p.GetErrorHandler().ReportMatch(p)
15087 p.Consume()
15088 }
15089 }
15090 {
15091 p.SetState(1133)
15092 p.Match(SQLiteParserCOMMA)
15093 if p.HasError() {
15094 // Recognition error - abort rule
15095 goto errorExit
15096 }

Callers 1

exprMethod · 0.95

Calls 4

Error_messageMethod · 0.95
NewRaise_functionContextFunction · 0.85
EnterRuleMethod · 0.45
ExitRuleMethod · 0.45

Tested by

no test coverage detected