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

Method Expr

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

Source from the content-addressed store, hash-verified

2752func (s *ParseContext) SetE(v IExprContext) { s.e = v }
2753
2754func (s *ParseContext) Expr() IExprContext {
2755 var t antlr.RuleContext
2756 for _, ctx := range s.GetChildren() {
2757 if _, ok := ctx.(IExprContext); ok {
2758 t = ctx.(antlr.RuleContext)
2759 break
2760 }
2761 }
2762
2763 if t == nil {
2764 return nil
2765 }
2766
2767 return t.(IExprContext)
2768}
2769
2770func (s *ParseContext) GetRuleContext() antlr.RuleContext {
2771 return s

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected