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

Function ValidateHomogeneousAggregateLiterals

cel/validator.go:235–237  ·  view source on GitHub ↗

ValidateHomogeneousAggregateLiterals checks that all list and map literals entries have the same types, i.e. no mixed list element types or mixed map key or map value types. Note: the string format call relies on a mixed element type list for ease of use, so this check skips all literals which occu

()

Source from the content-addressed store, hash-verified

233// Note: the string format call relies on a mixed element type list for ease of use, so this check skips all
234// literals which occur within string format calls.
235func ValidateHomogeneousAggregateLiterals() ASTValidator {
236 return homogeneousAggregateLiteralValidator{}
237}
238
239// ValidateComprehensionNestingLimit ensures that comprehension nesting does not exceed the specified limit.
240//

Calls

no outgoing calls