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

Unified Diff: pkg/analyzer2dart/lib/src/dart_backend.dart

Issue 898303002: Support instance methods in analyzer2dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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
Index: pkg/analyzer2dart/lib/src/dart_backend.dart
diff --git a/pkg/analyzer2dart/lib/src/dart_backend.dart b/pkg/analyzer2dart/lib/src/dart_backend.dart
index 8a932e907193ed873f1f0a48c329bd85f5cb3881..880f9681c5d98a2c2a6e508f784bcdfa34fe4430 100644
--- a/pkg/analyzer2dart/lib/src/dart_backend.dart
+++ b/pkg/analyzer2dart/lib/src/dart_backend.dart
@@ -28,7 +28,7 @@ void compileToDart(Driver driver, ConvertedWorld convertedWorld) {
element,
convertedWorld.getIr(element));
},
- shouldOutput: (_) => true,
+ shouldOutput: (Element element) => !element.isSynthesized,
isSafeToRemoveTypeDeclarations: (_) => false);
}

Powered by Google App Engine
This is Rietveld 408576698