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

Unified Diff: lib/src/checker/resolver.dart

Issue 1023543002: Enable inference in the core libs (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « no previous file | test/codegen/expect/dart/_interceptors.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/checker/resolver.dart
diff --git a/lib/src/checker/resolver.dart b/lib/src/checker/resolver.dart
index 596de962cbdc1bb72c5e4afe10aaceddede3d9ff..5df1c3387b9d1106b406216ce7ba380667bdd483 100644
--- a/lib/src/checker/resolver.dart
+++ b/lib/src/checker/resolver.dart
@@ -123,13 +123,6 @@ class LibraryResolverWithInference extends LibraryResolver {
void resolveReferencesAndTypes() {
_resolveVariableReferences();
- // Skip inference in the core libraries (note: resolvedLibraries are the
- // libraries in the current strongly connected component).
- if (resolvedLibraries.any((l) => l.librarySource.isInSystemLibrary)) {
- _resolveReferencesAndTypes(false);
- return;
- }
-
// Run resolution in two stages, skipping method bodies first, so we can run
// type-inference before we fully analyze methods.
_resolveReferencesAndTypes(true);
« no previous file with comments | « no previous file | test/codegen/expect/dart/_interceptors.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698