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

Function PopulateMacroCalls

parser/options.go:117–122  ·  view source on GitHub ↗

PopulateMacroCalls ensures that the original call signatures replaced by expanded macros are preserved in the `SourceInfo` of parse result.

(populateMacroCalls bool)

Source from the content-addressed store, hash-verified

115// PopulateMacroCalls ensures that the original call signatures replaced by expanded macros
116// are preserved in the `SourceInfo` of parse result.
117func PopulateMacroCalls(populateMacroCalls bool) Option {
118 return func(opts *options) error {
119 opts.populateMacroCalls = populateMacroCalls
120 return nil
121 }
122}
123
124// EnableOptionalSyntax enables syntax for optional field and index selection.
125func EnableOptionalSyntax(optionalSyntax bool) Option {

Callers 10

TestPruneFunction · 0.92
configureMethod · 0.92
TestConvertExprFunction · 0.92
TestSourceInfoToProtoFunction · 0.92
mustTypeCheckFunction · 0.92
BenchmarkParseFunction · 0.85
BenchmarkParseParallelFunction · 0.85
newTestParserFunction · 0.85
TestExprHelperCopyFunction · 0.85
TestUnparseFunction · 0.85

Calls

no outgoing calls

Tested by 9

TestPruneFunction · 0.74
TestConvertExprFunction · 0.74
TestSourceInfoToProtoFunction · 0.74
mustTypeCheckFunction · 0.74
BenchmarkParseFunction · 0.68
BenchmarkParseParallelFunction · 0.68
newTestParserFunction · 0.68
TestExprHelperCopyFunction · 0.68
TestUnparseFunction · 0.68