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

Function EnableIdentEscapeSyntax

parser/options.go:149–154  ·  view source on GitHub ↗

EnableIdentEscapeSyntax enables backtick (`) escaped field identifiers. This supports extended types of characters in identifiers, e.g. foo.`baz-bar`.

(enableIdentEscapeSyntax bool)

Source from the content-addressed store, hash-verified

147// EnableIdentEscapeSyntax enables backtick (`) escaped field identifiers. This
148// supports extended types of characters in identifiers, e.g. foo.`baz-bar`.
149func EnableIdentEscapeSyntax(enableIdentEscapeSyntax bool) Option {
150 return func(opts *options) error {
151 opts.enableIdentEscapeSyntax = enableIdentEscapeSyntax
152 return nil
153 }
154}
155
156// EnableHiddenAccumulatorName uses an accumulator variable name that is not a
157// normally accessible identifier in source for comprehension macros. Compatibility notes:

Callers 6

configureMethod · 0.92
parser_test.goFile · 0.85
TestUnparseFunction · 0.85
TestUnparseEscapedCallsFunction · 0.85

Calls

no outgoing calls

Tested by 3

TestUnparseFunction · 0.68
TestUnparseEscapedCallsFunction · 0.68