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

Unified Diff: pkg/front_end/lib/src/fasta/source/diet_listener.dart

Issue 2706243011: Add LibraryIndex class for finding classes and members by name. (Closed)
Patch Set: Update fasta, and add methods for tolerating missing libaries Created 3 years, 10 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 | « pkg/front_end/lib/src/fasta/kernel/builder_accessors.dart ('k') | pkg/kernel/lib/core_types.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/src/fasta/source/diet_listener.dart
diff --git a/pkg/front_end/lib/src/fasta/source/diet_listener.dart b/pkg/front_end/lib/src/fasta/source/diet_listener.dart
index e8029aa91db1749ae57949200bc678bc54359afd..62b002134564a657ee80421b229f1720995a51ce 100644
--- a/pkg/front_end/lib/src/fasta/source/diet_listener.dart
+++ b/pkg/front_end/lib/src/fasta/source/diet_listener.dart
@@ -560,7 +560,7 @@ class DietListener extends StackListener {
bool get isTargetingDartVm {
// TODO(ahe): Find a more reliable way to check if this is the Dart VM.
- return coreTypes.getCoreLibrary("dart:_js_helper") == null;
+ return !coreTypes.containsLibrary("dart:_js_helper");
}
@override
« no previous file with comments | « pkg/front_end/lib/src/fasta/kernel/builder_accessors.dart ('k') | pkg/kernel/lib/core_types.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698