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

Side by Side Diff: pkg/compiler/lib/src/enqueue.dart

Issue 2439573003: Experiment with new function-type syntax.
Patch Set: Change a few more typedefs. Created 4 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library dart2js.enqueue; 5 library dart2js.enqueue;
6 6
7 import 'dart:collection' show Queue; 7 import 'dart:collection' show Queue;
8 8
9 import 'common/names.dart' show Identifiers; 9 import 'common/names.dart' show Identifiers;
10 import 'common/resolution.dart' show Resolution; 10 import 'common/resolution.dart' show Resolution;
(...skipping 896 matching lines...) Expand 10 before | Expand all | Expand 10 after
907 void visitStaticUse(StaticUse staticUse) { 907 void visitStaticUse(StaticUse staticUse) {
908 enqueuer.registerStaticUse(staticUse); 908 enqueuer.registerStaticUse(staticUse);
909 } 909 }
910 910
911 @override 911 @override
912 void visitTypeUse(TypeUse typeUse) { 912 void visitTypeUse(TypeUse typeUse) {
913 enqueuer.registerTypeUse(typeUse); 913 enqueuer.registerTypeUse(typeUse);
914 } 914 }
915 } 915 }
916 916
917 typedef void _DeferredActionFunction();
918
919 class _DeferredAction { 917 class _DeferredAction {
920 final Element element; 918 final Element element;
921 final _DeferredActionFunction action; 919 final ()->void action;
922 920
923 _DeferredAction(this.element, this.action); 921 _DeferredAction(this.element, this.action);
924 } 922 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698