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

Function NewSimpleContext

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

Source from the content-addressed store, hash-verified

2305func (*SimpleContext) IsSimpleContext() {}
2306
2307func NewSimpleContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *SimpleContext {
2308 var p = new(SimpleContext)
2309
2310 antlr.InitBaseParserRuleContext(&p.BaseParserRuleContext, parent, invokingState)
2311
2312 p.parser = parser
2313 p.RuleIndex = CommandsParserRULE_simple
2314
2315 return p
2316}
2317
2318func (s *SimpleContext) GetParser() antlr.Parser { return s.parser }
2319

Callers 1

SimpleMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected