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

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

Issue 10830355: Move AbstractFieldElement check into shouldOutput. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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 | no next file » | 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 fbce8ce29018e7446d7d7eccfc1da7abaaebf6ed..5fb537de5128adecfaea71b4f1eb2d6a6b051b98 100644
--- a/lib/compiler/implementation/dart_backend/backend.dart
+++ b/lib/compiler/implementation/dart_backend/backend.dart
@@ -42,7 +42,8 @@ class DartBackend extends Backend {
bool shouldOutput(Element element) =>
element.kind !== ElementKind.VOID &&
LIBS_TO_IGNORE.indexOf(element.getLibrary()) == -1 &&
- !isDartCoreLib(compiler, element.getLibrary());
+ !isDartCoreLib(compiler, element.getLibrary()) &&
+ element is !AbstractFieldElement;
// TODO(smok): Refactor this traverse/collect mess.
Set<TypedefElement> typedefs = new Set<TypedefElement>();
@@ -70,7 +71,6 @@ class DartBackend extends Backend {
});
resolvedElements.forEach((element, treeElements) {
if (!shouldOutput(element)) return;
- if (element is AbstractFieldElement) return;
collector.collect(element, treeElements);
new ReferencedElementCollector(
compiler, element, treeElements, typedefs, classes)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698