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

Method Signed_number

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

Source from the content-addressed store, hash-verified

6782}
6783
6784func (p *SQLiteParser) Signed_number() (localctx ISigned_numberContext) {
6785 localctx = NewSigned_numberContext(p, p.GetParserRuleContext(), p.GetState())
6786 p.EnterRule(localctx, 36, SQLiteParserRULE_signed_number)
6787 var _la int
6788
6789 p.EnterOuterAlt(localctx, 1)
6790 p.SetState(555)
6791 p.GetErrorHandler().Sync(p)
6792 if p.HasError() {
6793 goto errorExit
6794 }
6795 _la = p.GetTokenStream().LA(1)
6796
6797 if _la == SQLiteParserPLUS || _la == SQLiteParserMINUS {
6798 {
6799 p.SetState(554)
6800 _la = p.GetTokenStream().LA(1)
6801
6802 if !(_la == SQLiteParserPLUS || _la == SQLiteParserMINUS) {
6803 p.GetErrorHandler().RecoverInline(p)
6804 } else {
6805 p.GetErrorHandler().ReportMatch(p)
6806 p.Consume()
6807 }
6808 }
6809
6810 }
6811 {
6812 p.SetState(557)
6813 p.Match(SQLiteParserNUMERIC_LITERAL)
6814 if p.HasError() {
6815 // Recognition error - abort rule
6816 goto errorExit
6817 }
6818 }
6819
6820errorExit:
6821 if p.HasError() {
6822 v := p.GetError()
6823 localctx.SetException(v)
6824 p.GetErrorHandler().ReportError(p, v)
6825 p.GetErrorHandler().Recover(p, v)
6826 p.SetError(nil)
6827 }
6828 p.ExitRule()
6829 return localctx
6830 goto errorExit // Trick to prevent compiler error if the label is not used
6831}
6832
6833// ITable_constraintContext is an interface to support dynamic dispatch.
6834type ITable_constraintContext interface {

Callers 6

Type_nameMethod · 0.95
Column_constraintMethod · 0.95
Pragma_valueMethod · 0.95
Window_functionMethod · 0.95
Of_OF_fsetMethod · 0.95

Calls 3

NewSigned_numberContextFunction · 0.85
EnterRuleMethod · 0.45
ExitRuleMethod · 0.45

Tested by

no test coverage detected