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

Function EnableIdentEscapeSyntax

parser/options.go:147–152  ·  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

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

Callers 3

configureMethod · 0.92
parser_test.goFile · 0.85
TestUnparseFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestUnparseFunction · 0.68