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

Method Column_alias

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

Source from the content-addressed store, hash-verified

29162}
29163
29164func (p *SQLiteParser) Column_alias() (localctx IColumn_aliasContext) {
29165 localctx = NewColumn_aliasContext(p, p.GetParserRuleContext(), p.GetState())
29166 p.EnterRule(localctx, 172, SQLiteParserRULE_column_alias)
29167 var _la int
29168
29169 p.EnterOuterAlt(localctx, 1)
29170 {
29171 p.SetState(2105)
29172 _la = p.GetTokenStream().LA(1)
29173
29174 if !(_la == SQLiteParserIDENTIFIER || _la == SQLiteParserSTRING_LITERAL) {
29175 p.GetErrorHandler().RecoverInline(p)
29176 } else {
29177 p.GetErrorHandler().ReportMatch(p)
29178 p.Consume()
29179 }
29180 }
29181
29182errorExit:
29183 if p.HasError() {
29184 v := p.GetError()
29185 localctx.SetException(v)
29186 p.GetErrorHandler().ReportError(p, v)
29187 p.GetErrorHandler().Recover(p, v)
29188 p.SetError(nil)
29189 }
29190 p.ExitRule()
29191 return localctx
29192 goto errorExit // Trick to prevent compiler error if the label is not used
29193}
29194
29195// IKeywordContext is an interface to support dynamic dispatch.
29196type IKeywordContext interface {

Callers 2

Returning_clauseMethod · 0.95
Result_columnMethod · 0.95

Calls 3

NewColumn_aliasContextFunction · 0.85
EnterRuleMethod · 0.45
ExitRuleMethod · 0.45

Tested by

no test coverage detected