MCPcopy Create free account
hub / github.com/cel-expr/cel-go / QualId

Method QualId

repl/parser/commands_parser.go:3210–3296  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3208}
3209
3210func (p *CommandsParser) QualId() (localctx IQualIdContext) {
3211 localctx = NewQualIdContext(p, p.GetParserRuleContext(), p.GetState())
3212 p.EnterRule(localctx, 28, CommandsParserRULE_qualId)
3213 var _la int
3214
3215 p.EnterOuterAlt(localctx, 1)
3216 p.SetState(168)
3217 p.GetErrorHandler().Sync(p)
3218 if p.HasError() {
3219 goto errorExit
3220 }
3221 _la = p.GetTokenStream().LA(1)
3222
3223 if _la == CommandsParserDOT {
3224 {
3225 p.SetState(167)
3226
3227 var _m = p.Match(CommandsParserDOT)
3228
3229 localctx.(*QualIdContext).leadingDot = _m
3230 if p.HasError() {
3231 // Recognition error - abort rule
3232 goto errorExit
3233 }
3234 }
3235
3236 }
3237 {
3238 p.SetState(170)
3239
3240 var _m = p.Match(CommandsParserIDENTIFIER)
3241
3242 localctx.(*QualIdContext).rid = _m
3243 if p.HasError() {
3244 // Recognition error - abort rule
3245 goto errorExit
3246 }
3247 }
3248 p.SetState(175)
3249 p.GetErrorHandler().Sync(p)
3250 if p.HasError() {
3251 goto errorExit
3252 }
3253 _la = p.GetTokenStream().LA(1)
3254
3255 for _la == CommandsParserDOT {
3256 {
3257 p.SetState(171)
3258 p.Match(CommandsParserDOT)
3259 if p.HasError() {
3260 // Recognition error - abort rule
3261 goto errorExit
3262 }
3263 }
3264 {
3265 p.SetState(172)
3266
3267 var _m = p.Match(CommandsParserIDENTIFIER)

Callers 2

VarDeclMethod · 0.95
FnDeclMethod · 0.95

Calls 8

NewQualIdContextFunction · 0.85
LAMethod · 0.80
ReportErrorMethod · 0.80
RecoverMethod · 0.80
GetStateMethod · 0.65
MatchMethod · 0.65
EnterRuleMethod · 0.45
ExitRuleMethod · 0.45

Tested by

no test coverage detected