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

Method ConditionalAnd

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

Source from the content-addressed store, hash-verified

4751}
4752
4753func (s *ConditionalOrContext) ConditionalAnd(i int) IConditionalAndContext {
4754 var t antlr.RuleContext
4755 j := 0
4756 for _, ctx := range s.GetChildren() {
4757 if _, ok := ctx.(IConditionalAndContext); ok {
4758 if j == i {
4759 t = ctx.(antlr.RuleContext)
4760 break
4761 }
4762 j++
4763 }
4764 }
4765
4766 if t == nil {
4767 return nil
4768 }
4769
4770 return t.(IConditionalAndContext)
4771}
4772
4773func (s *ConditionalOrContext) AllLOGICAL_OR() []antlr.TerminalNode {
4774 return s.GetTokens(CommandsParserLOGICAL_OR)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected