ValidateRegexLiterals ensures that regex patterns are validated after type-check.
()
| 224 | |
| 225 | // ValidateRegexLiterals ensures that regex patterns are validated after type-check. |
| 226 | func ValidateRegexLiterals() ASTValidator { |
| 227 | return newFormatValidator(overloads.Matches, 0, compileRegex) |
| 228 | } |
| 229 | |
| 230 | // ValidateHomogeneousAggregateLiterals checks that all list and map literals entries have the same types, i.e. |
| 231 | // no mixed list element types or mixed map key or map value types. |