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

Unified Diff: sdk/lib/_internal/compiler/implementation/js_emitter/metadata_emitter.dart

Issue 416643002: Support typedefs in function signatures. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update mirrors used test. Created 6 years, 3 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: sdk/lib/_internal/compiler/implementation/js_emitter/metadata_emitter.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js_emitter/metadata_emitter.dart b/sdk/lib/_internal/compiler/implementation/js_emitter/metadata_emitter.dart
index 92b5f552bf72b92f83134e35709e5d669a0bd5dd..e1149fbca223a4b68c293d089d12b49d68e44fe2 100644
--- a/sdk/lib/_internal/compiler/implementation/js_emitter/metadata_emitter.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_emitter/metadata_emitter.dart
@@ -69,10 +69,15 @@ class MetadataEmitter extends CodeEmitterHelper {
int reifyType(DartType type) {
jsAst.Expression representation =
- backend.rti.getTypeRepresentation(type, (variable) {
- return js.number(
- task.typeVariableHandler.reifyTypeVariable(variable.element));
- });
+ backend.rti.getTypeRepresentation(
+ type,
+ (variable) {
+ return js.number(
+ task.typeVariableHandler.reifyTypeVariable(variable.element));
+ },
+ (TypedefType typedef) {
+ return backend.isAccessibleByReflection(typedef.element);
+ });
return addGlobalMetadata(
jsAst.prettyPrint(representation, compiler).getText());
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/js_emitter/js_emitter.dart ('k') | sdk/lib/_internal/lib/js_mirrors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698