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

Unified Diff: tool/input_sdk/private/ddc_runtime/types.dart

Issue 1989593002: Wrap and unwrap types in dart:mirrors (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 7 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 | « lib/runtime/dart_sdk.js ('k') | tool/input_sdk/private/js_mirrors.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tool/input_sdk/private/ddc_runtime/types.dart
diff --git a/tool/input_sdk/private/ddc_runtime/types.dart b/tool/input_sdk/private/ddc_runtime/types.dart
index 2511b40777e2362c2c6585eb821a0b4ed9b78bc4..aaaa265752c3a617732db3a0dbbf41f033a35208 100644
--- a/tool/input_sdk/private/ddc_runtime/types.dart
+++ b/tool/input_sdk/private/ddc_runtime/types.dart
@@ -73,6 +73,8 @@ class WrappedType extends TypeRep {
final _runtimeType;
WrappedType(this._runtimeType);
toString() => typeName(_runtimeType);
+
+ unwrapped() => _runtimeType;
Bob Nystrom 2016/05/17 21:55:49 I think this should probably be a top level functi
}
final AbstractFunctionType = JS('', '''
@@ -288,7 +290,7 @@ final FunctionType = JS('', '''
for (var i = 0; i < array.length; ++i) {
var arg = array[i];
if (arg instanceof Array) {
- metadata.push(arg[1]);
+ metadata.push(arg.slice(1));
result.push(arg[0]);
} else {
metadata.push([]);
« no previous file with comments | « lib/runtime/dart_sdk.js ('k') | tool/input_sdk/private/js_mirrors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698