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

Method Cte_table_name

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

Source from the content-addressed store, hash-verified

10267}
10268
10269func (p *SQLiteParser) Cte_table_name() (localctx ICte_table_nameContext) {
10270 localctx = NewCte_table_nameContext(p, p.GetParserRuleContext(), p.GetState())
10271 p.EnterRule(localctx, 52, SQLiteParserRULE_cte_table_name)
10272 var _la int
10273
10274 p.EnterOuterAlt(localctx, 1)
10275 {
10276 p.SetState(794)
10277 p.Table_name()
10278 }
10279 p.SetState(806)
10280 p.GetErrorHandler().Sync(p)
10281 if p.HasError() {
10282 goto errorExit
10283 }
10284 _la = p.GetTokenStream().LA(1)
10285
10286 if _la == SQLiteParserOPEN_PAR {
10287 {
10288 p.SetState(795)
10289 p.Match(SQLiteParserOPEN_PAR)
10290 if p.HasError() {
10291 // Recognition error - abort rule
10292 goto errorExit
10293 }
10294 }
10295 {
10296 p.SetState(796)
10297 p.Column_name()
10298 }
10299 p.SetState(801)
10300 p.GetErrorHandler().Sync(p)
10301 if p.HasError() {
10302 goto errorExit
10303 }
10304 _la = p.GetTokenStream().LA(1)
10305
10306 for _la == SQLiteParserCOMMA {
10307 {
10308 p.SetState(797)
10309 p.Match(SQLiteParserCOMMA)
10310 if p.HasError() {
10311 // Recognition error - abort rule
10312 goto errorExit
10313 }
10314 }
10315 {
10316 p.SetState(798)
10317 p.Column_name()
10318 }
10319
10320 p.SetState(803)
10321 p.GetErrorHandler().Sync(p)
10322 if p.HasError() {
10323 goto errorExit
10324 }
10325 _la = p.GetTokenStream().LA(1)
10326 }

Callers 2

With_clauseMethod · 0.95
Recursive_cteMethod · 0.95

Calls 5

Table_nameMethod · 0.95
Column_nameMethod · 0.95
NewCte_table_nameContextFunction · 0.85
EnterRuleMethod · 0.45
ExitRuleMethod · 0.45

Tested by

no test coverage detected