dart-sdk/tests/web_2/regress
Mayank Patke c559cf04c3 [dart2js] Some DartTypeVisitor cleanup.
This CL deletes BaseDartTypeVisitor and makes all of the visit* methods
in DartTypeVisitor abstract. This forces subclasses of DartTypeVisitor
to provide definitions for all of these methods rather than relying on
some default.

The old code led to a series of bugs with the same root cause: when a
new kind of DartType was added (and a corresponding visit* method added
to DartTypeVisitor), not all concrete implementations of the visitor
were updated to handle the new DartType. This didn't produce static
errors because DartTypeVisitor provided default no-op implementations
for visit* methods. In some cases, this was the desired behavior anyway,
but in practice, any time a new DartType is added, we want our tools to
yell at us until we've validated that it's properly handled everywhere
(even if the proper handling turns out to be "do nothing").

This CL also updates Namer.getTypeRepresentationForConstant to use a
visitor pattern.

Fixes: https://github.com/dart-lang/sdk/issues/46589
Change-Id: I451b592ae1ce4afff40de913535798a62e17b8b6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/206943
Reviewed-by: Joshua Litt <joshualitt@google.com>
Commit-Queue: Mayank Patke <fishythefish@google.com>
2021-07-15 19:04:25 +00:00
..
4434_lib.dart
4434_test.dart
4492_test.dart
4515_1_test.dart
4515_2_test.dart
4515_3_test.dart
4639_test.dart
41781_test.dart Add language versions to _2 test libraries 2021-04-26 17:58:57 +00:00
43520_safari_test.dart [testing] Rely on language versions in the analyzer tests 2021-06-02 07:47:46 +00:00
44818_test.dart Add language versions to _2 test libraries 2021-04-26 17:58:57 +00:00
45943_test.dart [testing] Rely on language versions in the analyzer tests 2021-06-02 07:47:46 +00:00
46417_test.dart [dart2js] Fix spurious ! in ConstantMap. 2021-06-23 18:30:11 +00:00
46589_test.dart [dart2js] Some DartTypeVisitor cleanup. 2021-07-15 19:04:25 +00:00
183227419_test.dart [dart2js] Fix variable allocator live-range bug 2021-03-23 15:38:36 +00:00
if_method_call_test.dart Add language versions to _2 test libraries 2021-04-26 17:58:57 +00:00
regression_type_variables_is_test.dart
scope_info_field_loop_test.dart
unused_generator_type_parameter_test.dart