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

Method Keyword

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

Source from the content-addressed store, hash-verified

30043}
30044
30045func (p *SQLiteParser) Keyword() (localctx IKeywordContext) {
30046 localctx = NewKeywordContext(p, p.GetParserRuleContext(), p.GetState())
30047 p.EnterRule(localctx, 174, SQLiteParserRULE_keyword)
30048 var _la int
30049
30050 p.EnterOuterAlt(localctx, 1)
30051 {
30052 p.SetState(2107)
30053 _la = p.GetTokenStream().LA(1)
30054
30055 if !(((int64(_la) & ^0x3f) == 0 && ((int64(1)<<_la)&-134217728) != 0) || ((int64((_la-64)) & ^0x3f) == 0 && ((int64(1)<<(_la-64))&-1) != 0) || ((int64((_la-128)) & ^0x3f) == 0 && ((int64(1)<<(_la-128))&72057594037927935) != 0)) {
30056 p.GetErrorHandler().RecoverInline(p)
30057 } else {
30058 p.GetErrorHandler().ReportMatch(p)
30059 p.Consume()
30060 }
30061 }
30062
30063errorExit:
30064 if p.HasError() {
30065 v := p.GetError()
30066 localctx.SetException(v)
30067 p.GetErrorHandler().ReportError(p, v)
30068 p.GetErrorHandler().Recover(p, v)
30069 p.SetError(nil)
30070 }
30071 p.ExitRule()
30072 return localctx
30073 goto errorExit // Trick to prevent compiler error if the label is not used
30074}
30075
30076// INameContext is an interface to support dynamic dispatch.
30077type INameContext interface {

Callers 1

Any_nameMethod · 0.95

Calls 3

NewKeywordContextFunction · 0.85
EnterRuleMethod · 0.45
ExitRuleMethod · 0.45

Tested by

no test coverage detected