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

Method Expr

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

Source from the content-addressed store, hash-verified

9335func (s *OptExprContext) SetE(v IExprContext) { s.e = v }
9336
9337func (s *OptExprContext) Expr() IExprContext {
9338 var t antlr.RuleContext
9339 for _, ctx := range s.GetChildren() {
9340 if _, ok := ctx.(IExprContext); ok {
9341 t = ctx.(antlr.RuleContext)
9342 break
9343 }
9344 }
9345
9346 if t == nil {
9347 return nil
9348 }
9349
9350 return t.(IExprContext)
9351}
9352
9353func (s *OptExprContext) QUESTIONMARK() antlr.TerminalNode {
9354 return s.GetToken(CommandsParserQUESTIONMARK, 0)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected