MCPcopy
hub / github.com/sqlc-dev/sqlc / Unary_operator

Method Unary_operator

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

Source from the content-addressed store, hash-verified

28820}
28821
28822func (p *SQLiteParser) Unary_operator() (localctx IUnary_operatorContext) {
28823 localctx = NewUnary_operatorContext(p, p.GetParserRuleContext(), p.GetState())
28824 p.EnterRule(localctx, 166, SQLiteParserRULE_unary_operator)
28825 var _la int
28826
28827 p.EnterOuterAlt(localctx, 1)
28828 {
28829 p.SetState(2097)
28830 _la = p.GetTokenStream().LA(1)
28831
28832 if !(((int64(_la) & ^0x3f) == 0 && ((int64(1)<<_la)&6400) != 0) || _la == SQLiteParserNOT_) {
28833 p.GetErrorHandler().RecoverInline(p)
28834 } else {
28835 p.GetErrorHandler().ReportMatch(p)
28836 p.Consume()
28837 }
28838 }
28839
28840errorExit:
28841 if p.HasError() {
28842 v := p.GetError()
28843 localctx.SetException(v)
28844 p.GetErrorHandler().ReportError(p, v)
28845 p.GetErrorHandler().Recover(p, v)
28846 p.SetError(nil)
28847 }
28848 p.ExitRule()
28849 return localctx
28850 goto errorExit // Trick to prevent compiler error if the label is not used
28851}
28852
28853// IError_messageContext is an interface to support dynamic dispatch.
28854type IError_messageContext interface {

Callers 2

exprMethod · 0.95
convertUnaryExprMethod · 0.45

Calls 3

NewUnary_operatorContextFunction · 0.85
EnterRuleMethod · 0.45
ExitRuleMethod · 0.45

Tested by

no test coverage detected