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

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

Issue 18052004: Implement JsMethodMirror.parameters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address review comments. Created 7 years, 6 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/runtime_types.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart b/dart/sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart
index 3adbd635aca1e16a64f64099bddb8779c2070077..0ae4696c703bac3a2df63802ae9081e3c5458e0a 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart
@@ -663,6 +663,11 @@ class TypeRepresentationGenerator extends DartTypeVisitor {
builder.write('null');
}
+ visitVoidType(VoidType type, _) {
+ // TODO(ahe): Reify void type ("null" means "dynamic").
+ builder.write('null');
+ }
+
visitType(DartType type, _) {
compiler.internalError('Unexpected type: $type (${type.kind})');
}

Powered by Google App Engine
This is Rietveld 408576698