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

Unified Diff: dart/sdk/lib/_internal/lib/js_mirrors.dart

Issue 22859004: Improve type literals in minified mode. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Added a test, and changed how names are unmangled. Created 7 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 | « dart/sdk/lib/_internal/lib/js_helper.dart ('k') | dart/sdk/lib/_internal/lib/js_names.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/sdk/lib/_internal/lib/js_mirrors.dart
diff --git a/dart/sdk/lib/_internal/lib/js_mirrors.dart b/dart/sdk/lib/_internal/lib/js_mirrors.dart
index 25ca338013bc55ae1f739a0cf0dca130b6874d38..7211182f7b6a61af720c7d33848c2ade7ed1f276 100644
--- a/dart/sdk/lib/_internal/lib/js_mirrors.dart
+++ b/dart/sdk/lib/_internal/lib/js_mirrors.dart
@@ -24,6 +24,7 @@ import 'dart:_js_helper' show
RuntimeError,
createRuntimeType,
createUnmangledInvocationMirror,
+ getMangledTypeName,
runtimeTypeToString;
import 'dart:_interceptors' show
Interceptor,
@@ -392,7 +393,7 @@ InstanceMirror reflect(Object reflectee) {
}
ClassMirror reflectType(Type key) {
- return reflectClassByMangledName('$key'.split('<')[0]);
+ return reflectClassByMangledName(getMangledTypeName(key).split('<')[0]);
}
ClassMirror reflectClassByMangledName(String mangledName) {
« no previous file with comments | « dart/sdk/lib/_internal/lib/js_helper.dart ('k') | dart/sdk/lib/_internal/lib/js_names.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698