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

Method Literal_value

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

Source from the content-addressed store, hash-verified

15237}
15238
15239func (p *SQLiteParser) Literal_value() (localctx ILiteral_valueContext) {
15240 localctx = NewLiteral_valueContext(p, p.GetParserRuleContext(), p.GetState())
15241 p.EnterRule(localctx, 72, SQLiteParserRULE_literal_value)
15242 var _la int
15243
15244 p.EnterOuterAlt(localctx, 1)
15245 {
15246 p.SetState(1139)
15247 _la = p.GetTokenStream().LA(1)
15248
15249 if !(((int64((_la-54)) & ^0x3f) == 0 && ((int64(1)<<(_la-54))&4503599627370503) != 0) || ((int64((_la-175)) & ^0x3f) == 0 && ((int64(1)<<(_la-175))&409603) != 0)) {
15250 p.GetErrorHandler().RecoverInline(p)
15251 } else {
15252 p.GetErrorHandler().ReportMatch(p)
15253 p.Consume()
15254 }
15255 }
15256
15257errorExit:
15258 if p.HasError() {
15259 v := p.GetError()
15260 localctx.SetException(v)
15261 p.GetErrorHandler().ReportError(p, v)
15262 p.GetErrorHandler().Recover(p, v)
15263 p.SetError(nil)
15264 }
15265 p.ExitRule()
15266 return localctx
15267 goto errorExit // Trick to prevent compiler error if the label is not used
15268}
15269
15270// IInsert_stmtContext is an interface to support dynamic dispatch.
15271type IInsert_stmtContext interface {

Callers 2

Column_constraintMethod · 0.95
exprMethod · 0.95

Calls 3

NewLiteral_valueContextFunction · 0.85
EnterRuleMethod · 0.45
ExitRuleMethod · 0.45

Tested by

no test coverage detected