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

Method Conflict_clause

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

Source from the content-addressed store, hash-verified

8069}
8070
8071func (p *SQLiteParser) Conflict_clause() (localctx IConflict_clauseContext) {
8072 localctx = NewConflict_clauseContext(p, p.GetParserRuleContext(), p.GetState())
8073 p.EnterRule(localctx, 42, SQLiteParserRULE_conflict_clause)
8074 var _la int
8075
8076 p.EnterOuterAlt(localctx, 1)
8077 {
8078 p.SetState(644)
8079 p.Match(SQLiteParserON_)
8080 if p.HasError() {
8081 // Recognition error - abort rule
8082 goto errorExit
8083 }
8084 }
8085 {
8086 p.SetState(645)
8087 p.Match(SQLiteParserCONFLICT_)
8088 if p.HasError() {
8089 // Recognition error - abort rule
8090 goto errorExit
8091 }
8092 }
8093 {
8094 p.SetState(646)
8095 _la = p.GetTokenStream().LA(1)
8096
8097 if !(_la == SQLiteParserABORT_ || ((int64((_la-74)) & ^0x3f) == 0 && ((int64(1)<<(_la-74))&19140298416325121) != 0)) {
8098 p.GetErrorHandler().RecoverInline(p)
8099 } else {
8100 p.GetErrorHandler().ReportMatch(p)
8101 p.Consume()
8102 }
8103 }
8104
8105errorExit:
8106 if p.HasError() {
8107 v := p.GetError()
8108 localctx.SetException(v)
8109 p.GetErrorHandler().ReportError(p, v)
8110 p.GetErrorHandler().Recover(p, v)
8111 p.SetError(nil)
8112 }
8113 p.ExitRule()
8114 return localctx
8115 goto errorExit // Trick to prevent compiler error if the label is not used
8116}
8117
8118// ICreate_trigger_stmtContext is an interface to support dynamic dispatch.
8119type ICreate_trigger_stmtContext interface {

Callers 2

Column_constraintMethod · 0.95
Table_constraintMethod · 0.95

Calls 3

EnterRuleMethod · 0.45
ExitRuleMethod · 0.45

Tested by

no test coverage detected