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

Function PopulateMacroCalls

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

128// PopulateMacroCalls ensures that the original call signatures replaced by expanded macros
129// are preserved in the `SourceInfo` of parse result.
130func PopulateMacroCalls(populateMacroCalls bool) Option {
131 return func(opts *options) error {
132 opts.populateMacroCalls = populateMacroCalls
133 return nil
134 }
135}
136
137// EnableOptionalSyntax enables syntax for optional field and index selection.
138func 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