Skip to content

Commit

Permalink
Legacy. Remove LegacyTypeAsserter.
Browse files Browse the repository at this point in the history
Change-Id: I0bdbb9dd6711a73ade461460dd7aa3d77dca4ab9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/346140
Reviewed-by: Samuel Rawlins <[email protected]>
Commit-Queue: Konstantin Shcheglov <[email protected]>
  • Loading branch information
scheglov authored and Commit Queue committed Jan 13, 2024
1 parent 8e5dc2b commit 6ee298d
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 317 deletions.
3 changes: 0 additions & 3 deletions pkg/analyzer/lib/src/dart/analysis/library_analyzer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import 'package:analyzer/src/dart/element/inheritance_manager3.dart';
import 'package:analyzer/src/dart/element/type_provider.dart';
import 'package:analyzer/src/dart/element/type_system.dart';
import 'package:analyzer/src/dart/resolver/flow_analysis_visitor.dart';
import 'package:analyzer/src/dart/resolver/legacy_type_asserter.dart';
import 'package:analyzer/src/dart/resolver/resolution_visitor.dart';
import 'package:analyzer/src/error/best_practices_verifier.dart';
import 'package:analyzer/src/error/codes.dart';
Expand Down Expand Up @@ -317,8 +316,6 @@ class LibraryAnalyzer {
}
}

assert(units.values.every(LegacyTypeAsserter.assertLegacyTypes));

_checkForInconsistentLanguageVersionOverride(units);

// This must happen after all other diagnostics have been computed but
Expand Down
177 changes: 0 additions & 177 deletions pkg/analyzer/lib/src/dart/resolver/legacy_type_asserter.dart

This file was deleted.

135 changes: 0 additions & 135 deletions pkg/analyzer/test/src/dart/resolver/legacy_type_asserter_test.dart

This file was deleted.

2 changes: 0 additions & 2 deletions pkg/analyzer/test/src/dart/resolver/test_all.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@
import 'package:test_reflective_loader/test_reflective_loader.dart';

import 'exit_detector_test.dart' as exit_detector;
import 'legacy_type_asserter_test.dart' as legacy_type_asserter;

main() {
defineReflectiveSuite(() {
exit_detector.main();
legacy_type_asserter.main();
}, name: 'resolver');
}

0 comments on commit 6ee298d

Please sign in to comment.