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

Method ConditionalOr

repl/parser/commands_parser.go:4484–4502  ·  view source on GitHub ↗
(i int)

Source from the content-addressed store, hash-verified

4482}
4483
4484func (s *ExprContext) ConditionalOr(i int) IConditionalOrContext {
4485 var t antlr.RuleContext
4486 j := 0
4487 for _, ctx := range s.GetChildren() {
4488 if _, ok := ctx.(IConditionalOrContext); ok {
4489 if j == i {
4490 t = ctx.(antlr.RuleContext)
4491 break
4492 }
4493 j++
4494 }
4495 }
4496
4497 if t == nil {
4498 return nil
4499 }
4500
4501 return t.(IConditionalOrContext)
4502}
4503
4504func (s *ExprContext) COLON() antlr.TerminalNode {
4505 return s.GetToken(CommandsParserCOLON, 0)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected