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

Function PopulateMacroCalls

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

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

Callers 12

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

Calls

no outgoing calls

Tested by 10

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