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

Function NewCalcContext

repl/parser/commands_parser.go:5443–5452  ·  view source on GitHub ↗
(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int)

Source from the content-addressed store, hash-verified

5441func (*CalcContext) IsCalcContext() {}
5442
5443func NewCalcContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *CalcContext {
5444 var p = new(CalcContext)
5445
5446 antlr.InitBaseParserRuleContext(&p.BaseParserRuleContext, parent, invokingState)
5447
5448 p.parser = parser
5449 p.RuleIndex = CommandsParserRULE_calc
5450
5451 return p
5452}
5453
5454func (s *CalcContext) GetParser() antlr.Parser { return s.parser }
5455

Callers 1

calcMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected