Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(730)

Unified Diff: pkg/analyzer/lib/src/summary/link.dart

Issue 2531333006: Avoid a crash during summary linking when there are inheritance errors. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/analyzer/lib/src/summary/link.dart
diff --git a/pkg/analyzer/lib/src/summary/link.dart b/pkg/analyzer/lib/src/summary/link.dart
index 7bfbed1de4168e81c39c01b1e95a1538e8de67d5..cfee0e2d7d1d24e5948e6c110b05f8e6ed84fb6e 100644
--- a/pkg/analyzer/lib/src/summary/link.dart
+++ b/pkg/analyzer/lib/src/summary/link.dart
@@ -3529,7 +3529,7 @@ class LibraryElementInBuildUnit
* Get the inheritance manager for this library (creating it if necessary).
*/
InheritanceManager get inheritanceManager =>
- _inheritanceManager ??= new InheritanceManager(this);
+ _inheritanceManager ??= new InheritanceManager(this, ignoreErrors: true);
@override
LibraryCycleForLink get libraryCycleForLink {

Powered by Google App Engine
This is Rietveld 408576698