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

Function EscapeIdentifiers

parser/unparser.go:656–661  ·  view source on GitHub ↗

EscapeIdentifiers enables backtick (`) escaping for non-standard and reserved identifiers, function names, and field names when unparsing.

(escape bool)

Source from the content-addressed store, hash-verified

654// EscapeIdentifiers enables backtick (`) escaping for non-standard and reserved identifiers,
655// function names, and field names when unparsing.
656func EscapeIdentifiers(escape bool) UnparserOption {
657 return func(opt *unparserOption) (*unparserOption, error) {
658 opt.escapeIdentifiers = escape
659 return opt, nil
660 }
661}
662
663// WrapOnColumn wraps the output expression when its string length exceeds a specified limit
664// for operators set by WrapOnOperators function or by default, "&&" and "||" will be wrapped.

Callers 2

FormatEscapeIdentifiersFunction · 0.92
TestUnparseEscapedCallsFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestUnparseEscapedCallsFunction · 0.68