ValidateRegexLiterals ensures that regex patterns are validated after type-check.
()
| 208 | |
| 209 | // ValidateRegexLiterals ensures that regex patterns are validated after type-check. |
| 210 | func ValidateRegexLiterals() ASTValidator { |
| 211 | return newFormatValidator(overloads.Matches, 0, compileRegex) |
| 212 | } |
| 213 | |
| 214 | // ValidateHomogeneousAggregateLiterals checks that all list and map literals entries have the same types, i.e. |
| 215 | // no mixed list element types or mixed map key or map value types. |