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

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/js_backend/native_emitter.dart

Issue 19599007: Implement reflection on native classes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Mark test as failing on VM (requires browser) Created 7 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: dart/sdk/lib/_internal/compiler/implementation/js_backend/native_emitter.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/js_backend/native_emitter.dart b/dart/sdk/lib/_internal/compiler/implementation/js_backend/native_emitter.dart
index 6538cf2dfdaa25d8f440173321c8a5055a0d530c..84aa5106c5e068b5dea5b7390fd56cdc6cb92dac 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/js_backend/native_emitter.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/js_backend/native_emitter.dart
@@ -238,8 +238,9 @@ class NativeEmitter {
jsAst.Expression init =
karlklose 2013/07/19 09:29:40 This expression is no longer used, as far as I see
ahe 2013/07/19 10:00:00 Done.
js(emitter.classesCollector)[className].assign(
builder.toObjectInitializer());
- mainBuffer.write(jsAst.prettyPrint(init, compiler));
- mainBuffer.write('$N$n');
+ emitter.emitClassBuilderWithReflectionData(
+ className, classElement, builder,
+ emitter.bufferForElement(classElement, mainBuffer));
emitter.needsDefineClass = true;
}
}

Powered by Google App Engine
This is Rietveld 408576698