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

Method Partition_by

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

Source from the content-addressed store, hash-verified

27920}
27921
27922func (p *SQLiteParser) Partition_by() (localctx IPartition_byContext) {
27923 localctx = NewPartition_byContext(p, p.GetParserRuleContext(), p.GetState())
27924 p.EnterRule(localctx, 154, SQLiteParserRULE_partition_by)
27925 var _alt int
27926
27927 p.EnterOuterAlt(localctx, 1)
27928 {
27929 p.SetState(2061)
27930 p.Match(SQLiteParserPARTITION_)
27931 if p.HasError() {
27932 // Recognition error - abort rule
27933 goto errorExit
27934 }
27935 }
27936 {
27937 p.SetState(2062)
27938 p.Match(SQLiteParserBY_)
27939 if p.HasError() {
27940 // Recognition error - abort rule
27941 goto errorExit
27942 }
27943 }
27944 p.SetState(2064)
27945 p.GetErrorHandler().Sync(p)
27946 if p.HasError() {
27947 goto errorExit
27948 }
27949 _alt = 1
27950 for ok := true; ok; ok = _alt != 2 && _alt != antlr.ATNInvalidAltNumber {
27951 switch _alt {
27952 case 1:
27953 {
27954 p.SetState(2063)
27955 p.expr(0)
27956 }
27957
27958 default:
27959 p.SetError(antlr.NewNoViableAltException(p, nil, nil, nil, nil, nil))
27960 goto errorExit
27961 }
27962
27963 p.SetState(2066)
27964 p.GetErrorHandler().Sync(p)
27965 _alt = p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 305, p.GetParserRuleContext())
27966 if p.HasError() {
27967 goto errorExit
27968 }
27969 }
27970
27971errorExit:
27972 if p.HasError() {
27973 v := p.GetError()
27974 localctx.SetException(v)
27975 p.GetErrorHandler().ReportError(p, v)
27976 p.GetErrorHandler().Recover(p, v)
27977 p.SetError(nil)
27978 }
27979 p.ExitRule()

Callers 1

Window_functionMethod · 0.95

Calls 4

exprMethod · 0.95
NewPartition_byContextFunction · 0.85
EnterRuleMethod · 0.45
ExitRuleMethod · 0.45

Tested by

no test coverage detected