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

Method AllParam

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

Source from the content-addressed store, hash-verified

1700}
1701
1702func (s *FnDeclContext) AllParam() []IParamContext {
1703 children := s.GetChildren()
1704 len := 0
1705 for _, ctx := range children {
1706 if _, ok := ctx.(IParamContext); ok {
1707 len++
1708 }
1709 }
1710
1711 tst := make([]IParamContext, len)
1712 i := 0
1713 for _, ctx := range children {
1714 if t, ok := ctx.(IParamContext); ok {
1715 tst[i] = t.(IParamContext)
1716 i++
1717 }
1718 }
1719
1720 return tst
1721}
1722
1723func (s *FnDeclContext) Param(i int) IParamContext {
1724 var t antlr.RuleContext

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected