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

Method Param

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

Source from the content-addressed store, hash-verified

1721}
1722
1723func (s *FnDeclContext) Param(i int) IParamContext {
1724 var t antlr.RuleContext
1725 j := 0
1726 for _, ctx := range s.GetChildren() {
1727 if _, ok := ctx.(IParamContext); ok {
1728 if j == i {
1729 t = ctx.(antlr.RuleContext)
1730 break
1731 }
1732 j++
1733 }
1734 }
1735
1736 if t == nil {
1737 return nil
1738 }
1739
1740 return t.(IParamContext)
1741}
1742
1743func (s *FnDeclContext) AllCOMMA() []antlr.TerminalNode {
1744 return s.GetTokens(CommandsParserCOMMA)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected