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

Function unescapeIdent

parser/parser.go:161–166  ·  view source on GitHub ↗
(in string)

Source from the content-addressed store, hash-verified

159}
160
161func unescapeIdent(in string) (string, error) {
162 if len(in) <= 2 {
163 return "", errors.New("invalid escaped identifier: underflow")
164 }
165 return in[1 : len(in)-1], nil
166}
167
168// normalizeIdent returns the interpreted identifier.
169func (p *parser) normalizeIdent(ctx gen.IEscapeIdentContext) (string, error) {

Callers 1

normalizeIdentMethod · 0.85

Calls 1

NewMethod · 0.80

Tested by

no test coverage detected