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

Function NewStringContext

repl/parser/commands_parser.go:9690–9698  ·  view source on GitHub ↗
(parser antlr.Parser, ctx antlr.ParserRuleContext)

Source from the content-addressed store, hash-verified

9688}
9689
9690func NewStringContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *StringContext {
9691 var p = new(StringContext)
9692
9693 InitEmptyLiteralContext(&p.LiteralContext)
9694 p.parser = parser
9695 p.CopyAll(ctx.(*LiteralContext))
9696
9697 return p
9698}
9699
9700func (s *StringContext) GetTok() antlr.Token { return s.tok }
9701

Callers 1

LiteralMethod · 0.70

Calls 2

InitEmptyLiteralContextFunction · 0.70
CopyAllMethod · 0.45

Tested by

no test coverage detected