dart-sdk/tests/language/type_variable
Johnni Winther 5222bfd90c [cfe] Refactor bounds checking
This CL moves the bounds checking into the TypeBuilder instead of
performing it from the outside on the computed DartType node.
This solves several problems:

  1) Errors are now reported on the type in the code instead of the
     declaration which holds the type.
  2) Checking of type aliases (both function and nonfunction type
     aliases) is now handled correctly in all cases. This achieved by
     computed the aliased type (containing TypedefType nodes)
     internally and performing the checking on this type, and only
     convert the type into the unaliased version (without TypedefType
     nodes) after checks have been performed. Previously this handled
     through the FunctionType.typedefType property for function type
     aliases and through and incomplete work-around for nonfunction
     type aliases.
  3) With 2) FunctionType.typedefType is no longer needed and is
     removed.

TEST=general/bounds_*

Change-Id: I7653bca5ccb0ebf4b3553828a298d1ad918ef235
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243722
Reviewed-by: Mayank Patke <fishythefish@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
2022-05-17 14:36:19 +00:00
..
bound_access_runtime_test.dart
bound_access_test.dart Move codes from StaticTypeWarningCode into CompileTimeErrorCode. 2020-07-27 16:44:15 +00:00
bounds2_test.dart
bounds3_runtime_test.dart
bounds3_test.dart [cfe] Refactor bounds checking 2022-05-17 14:36:19 +00:00
bounds4_runtime_test.dart
bounds4_test.dart [cfe] Refactor bounds checking 2022-05-17 14:36:19 +00:00
bounds_test.dart
closure2_test.dart
closure3_test.dart
closure4_test.dart
closure_test.dart
conflict2_runtime_test.dart
conflict2_test.dart [cfe] Add UnresolvedKind for fine grained unresolved reporting 2021-08-25 09:51:54 +00:00
conflict_runtime_test.dart
conflict_test.dart
field_initializer2_test.dart
field_initializer_closure2_test.dart
field_initializer_closure_test.dart
field_initializer_test.dart
function_type_test.dart
identifier_expression_test.dart
initializer_test.dart
nested_test.dart
promotion_issue39752_test.dart
promotion_test.dart
scope2_test.dart
scope3_runtime_test.dart
scope3_test.dart
scope_runtime_test.dart
scope_test.dart [cfe] Refactor detection of instance type variable access in static context 2021-10-05 11:58:04 +00:00
static_context_test.dart
typedef_test.dart