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

Method Expr

parser/gen/cel_parser.go:5379–5393  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5377func (s *OptExprContext) SetE(v IExprContext) { s.e = v }
5378
5379func (s *OptExprContext) Expr() IExprContext {
5380 var t antlr.RuleContext
5381 for _, ctx := range s.GetChildren() {
5382 if _, ok := ctx.(IExprContext); ok {
5383 t = ctx.(antlr.RuleContext)
5384 break
5385 }
5386 }
5387
5388 if t == nil {
5389 return nil
5390 }
5391
5392 return t.(IExprContext)
5393}
5394
5395func (s *OptExprContext) QUESTIONMARK() antlr.TerminalNode {
5396 return s.GetToken(CELParserQUESTIONMARK, 0)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected