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

Method Table_alias

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

Source from the content-addressed store, hash-verified

31855}
31856
31857func (p *SQLiteParser) Table_alias() (localctx ITable_aliasContext) {
31858 localctx = NewTable_aliasContext(p, p.GetParserRuleContext(), p.GetState())
31859 p.EnterRule(localctx, 208, SQLiteParserRULE_table_alias)
31860 var _la int
31861
31862 p.EnterOuterAlt(localctx, 1)
31863 {
31864 p.SetState(2146)
31865 _la = p.GetTokenStream().LA(1)
31866
31867 if !(_la == SQLiteParserIDENTIFIER || _la == SQLiteParserSTRING_LITERAL) {
31868 p.GetErrorHandler().RecoverInline(p)
31869 } else {
31870 p.GetErrorHandler().ReportMatch(p)
31871 p.Consume()
31872 }
31873 }
31874
31875errorExit:
31876 if p.HasError() {
31877 v := p.GetError()
31878 localctx.SetException(v)
31879 p.GetErrorHandler().ReportError(p, v)
31880 p.GetErrorHandler().Recover(p, v)
31881 p.SetError(nil)
31882 }
31883 p.ExitRule()
31884 return localctx
31885 goto errorExit // Trick to prevent compiler error if the label is not used
31886}
31887
31888// ITable_alias_fallbackContext is an interface to support dynamic dispatch.
31889type ITable_alias_fallbackContext interface {

Callers 2

Insert_stmtMethod · 0.95
Table_or_subqueryMethod · 0.95

Calls 3

NewTable_aliasContextFunction · 0.85
EnterRuleMethod · 0.45
ExitRuleMethod · 0.45

Tested by

no test coverage detected