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

Method Calc

parser/gen/cel_parser.go:1539–1557  ·  view source on GitHub ↗
(i int)

Source from the content-addressed store, hash-verified

1537}
1538
1539func (s *CalcContext) Calc(i int) ICalcContext {
1540 var t antlr.RuleContext
1541 j := 0
1542 for _, ctx := range s.GetChildren() {
1543 if _, ok := ctx.(ICalcContext); ok {
1544 if j == i {
1545 t = ctx.(antlr.RuleContext)
1546 break
1547 }
1548 j++
1549 }
1550 }
1551
1552 if t == nil {
1553 return nil
1554 }
1555
1556 return t.(ICalcContext)
1557}
1558
1559func (s *CalcContext) STAR() antlr.TerminalNode {
1560 return s.GetToken(CELParserSTAR, 0)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected