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

Unified Diff: pkg/analyzer/lib/src/task/strong_mode.dart

Issue 1355773002: Make type system changes backwards compatible (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 months 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/task/strong_mode.dart
diff --git a/pkg/analyzer/lib/src/task/strong_mode.dart b/pkg/analyzer/lib/src/task/strong_mode.dart
index b9efb5928f757f083892f6801618233aabbb61a1..2db99146898cde14482ece9d4e9880abd07112df 100644
--- a/pkg/analyzer/lib/src/task/strong_mode.dart
+++ b/pkg/analyzer/lib/src/task/strong_mode.dart
@@ -112,7 +112,8 @@ class InstanceMemberInferrer {
/**
* Initialize a newly create inferrer.
*/
- InstanceMemberInferrer(this.typeProvider, this.typeSystem);
+ InstanceMemberInferrer(this.typeProvider, {TypeSystem typeSystem})
+ : typeSystem = (typeSystem != null) ? typeSystem : new TypeSystemImpl();
/**
* Infer type information for all of the instance members in the given

Powered by Google App Engine
This is Rietveld 408576698