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

Unified Diff: sdk/lib/_internal/compiler/implementation/js_backend/namer.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
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/js_backend/namer.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/namer.dart b/sdk/lib/_internal/compiler/implementation/js_backend/namer.dart
index eb1fdaea4682927cac22d8f902cbe60d527b69ee..568dfc8cbf978b2bd29f27a66bbf36dad60445c9 100644
--- a/sdk/lib/_internal/compiler/implementation/js_backend/namer.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/namer.dart
@@ -822,6 +822,7 @@ class Namer implements ClosureNamer {
// other elements, such as bound closures also live in [currentIsolate].
!element.isAccessor &&
!element.isClass &&
+ !element.isTypedef &&
!element.isConstructor &&
!element.isFunction &&
!element.isLibrary;
@@ -883,6 +884,8 @@ class Namer implements ClosureNamer {
String operatorSignature() => r'$signature';
+ String typedefTag() => r'typedef';
+
String functionTypeTag() => r'func';
String functionTypeVoidReturnTag() => r'void';
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698