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

Unified Diff: lib/compiler/implementation/dart_backend/backend.dart

Issue 10834049: Better filtering of dart:* libs. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 5 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 | utils/tests/pub/pub.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/dart_backend/backend.dart
diff --git a/lib/compiler/implementation/dart_backend/backend.dart b/lib/compiler/implementation/dart_backend/backend.dart
index f997fefb579d076a84a25033dd66f104b9071b48..b3795b1172c19f33ab328577384b12ef686896e3 100644
--- a/lib/compiler/implementation/dart_backend/backend.dart
+++ b/lib/compiler/implementation/dart_backend/backend.dart
@@ -61,11 +61,12 @@ class DartBackend extends Backend {
* Object should not be in the resulting code.
*/
final LIBS_TO_IGNORE = [
- compiler.coreImplLibrary,
compiler.jsHelperLibrary,
compiler.interceptorsLibrary,
- compiler.coreLibrary,
];
+ compiler.libraries.forEach((uri, lib) {
+ if (uri.startsWith('dart:')) LIBS_TO_IGNORE.add(lib);
+ });
bool shouldOutput(Element element) =>
element.kind !== ElementKind.VOID &&
LIBS_TO_IGNORE.indexOf(element.getLibrary()) == -1;
« no previous file with comments | « no previous file | utils/tests/pub/pub.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698