ValidateRegexLiterals ensures that regex patterns are validated after type-check.
()
| 235 | |
| 236 | // ValidateRegexLiterals ensures that regex patterns are validated after type-check. |
| 237 | func ValidateRegexLiterals() ASTValidator { |
| 238 | return newFormatValidator(overloads.Matches, 0, compileRegex) |
| 239 | } |
| 240 | |
| 241 | // ValidateHomogeneousAggregateLiterals checks that all list and map literals entries have the same types, i.e. |
| 242 | // no mixed list element types or mixed map key or map value types. |