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

Function unescapeIdent

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

Source from the content-addressed store, hash-verified

152}
153
154func unescapeIdent(in string) (string, error) {
155 if len(in) <= 2 {
156 return "", errors.New("invalid escaped identifier: underflow")
157 }
158 return in[1 : len(in)-1], nil
159}
160
161// normalizeIdent returns the interpreted identifier.
162func (p *parser) normalizeIdent(ctx gen.IEscapeIdentContext) (string, error) {

Callers 1

normalizeIdentMethod · 0.85

Calls 1

NewMethod · 0.80

Tested by

no test coverage detected