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

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

Issue 10692186: Fix factory constructors unparse: (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
Index: lib/compiler/implementation/dart_backend/emitter.dart
diff --git a/lib/compiler/implementation/dart_backend/emitter.dart b/lib/compiler/implementation/dart_backend/emitter.dart
index dd53d78ea110c720b66688a434a8e09b6d9ed5d4..71b670b434150f5e34129413be7915c702d56d38 100644
--- a/lib/compiler/implementation/dart_backend/emitter.dart
+++ b/lib/compiler/implementation/dart_backend/emitter.dart
@@ -18,7 +18,8 @@ class Emitter {
void outputClass(ClassElement classElement, Set<Element> innerElements) {
// TODO(smok): Very soon properly print out correct class declaration with
// extends, implements, etc.
- sb.add('class ');
+ sb.add(classElement.beginToken.slowToString()); // 'class' or 'interface'.
+ sb.add(' ');
sb.add(classElement.name.slowToString());
sb.add('{');
innerElements.forEach((element) {
« no previous file with comments | « no previous file | lib/compiler/implementation/tree/unparser.dart » ('j') | lib/compiler/implementation/tree/unparser.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698