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

Method Module_argument

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

Source from the content-addressed store, hash-verified

29046}
29047
29048func (p *SQLiteParser) Module_argument() (localctx IModule_argumentContext) {
29049 localctx = NewModule_argumentContext(p, p.GetParserRuleContext(), p.GetState())
29050 p.EnterRule(localctx, 170, SQLiteParserRULE_module_argument)
29051 p.SetState(2103)
29052 p.GetErrorHandler().Sync(p)
29053 if p.HasError() {
29054 goto errorExit
29055 }
29056
29057 switch p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 310, p.GetParserRuleContext()) {
29058 case 1:
29059 p.EnterOuterAlt(localctx, 1)
29060 {
29061 p.SetState(2101)
29062 p.expr(0)
29063 }
29064
29065 case 2:
29066 p.EnterOuterAlt(localctx, 2)
29067 {
29068 p.SetState(2102)
29069 p.Column_def()
29070 }
29071
29072 case antlr.ATNInvalidAltNumber:
29073 goto errorExit
29074 }
29075
29076errorExit:
29077 if p.HasError() {
29078 v := p.GetError()
29079 localctx.SetException(v)
29080 p.GetErrorHandler().ReportError(p, v)
29081 p.GetErrorHandler().Recover(p, v)
29082 p.SetError(nil)
29083 }
29084 p.ExitRule()
29085 return localctx
29086 goto errorExit // Trick to prevent compiler error if the label is not used
29087}
29088
29089// IColumn_aliasContext is an interface to support dynamic dispatch.
29090type IColumn_aliasContext interface {

Callers 1

Calls 5

exprMethod · 0.95
Column_defMethod · 0.95
EnterRuleMethod · 0.45
ExitRuleMethod · 0.45

Tested by

no test coverage detected