OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |