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

Function NewStringContext

parser/gen/cel_parser.go:5732–5740  ·  view source on GitHub ↗
(parser antlr.Parser, ctx antlr.ParserRuleContext)

Source from the content-addressed store, hash-verified

5730}
5731
5732func NewStringContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *StringContext {
5733 var p = new(StringContext)
5734
5735 InitEmptyLiteralContext(&p.LiteralContext)
5736 p.parser = parser
5737 p.CopyAll(ctx.(*LiteralContext))
5738
5739 return p
5740}
5741
5742func (s *StringContext) GetTok() antlr.Token { return s.tok }
5743

Callers 1

LiteralMethod · 0.70

Calls 2

InitEmptyLiteralContextFunction · 0.70
CopyAllMethod · 0.45

Tested by

no test coverage detected