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 part of dart2js; | 5 part of dart2js; |
6 | 6 |
7 typedef ItemCompilationContext ItemCompilationContextCreator(); | 7 typedef ItemCompilationContext ItemCompilationContextCreator(); |
8 | 8 |
9 class EnqueueTask extends CompilerTask { | 9 class EnqueueTask extends CompilerTask { |
10 final ResolutionEnqueuer resolution; | 10 final ResolutionEnqueuer resolution; |
(...skipping 885 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
896 void processWorkItem(void f(WorkItem work), WorkItem work) { | 896 void processWorkItem(void f(WorkItem work), WorkItem work) { |
897 f(work); | 897 f(work); |
898 } | 898 } |
899 } | 899 } |
900 | 900 |
901 void removeFromSet(Map<String, Set<Element>> map, Element element) { | 901 void removeFromSet(Map<String, Set<Element>> map, Element element) { |
902 Set<Element> set = map[element.name]; | 902 Set<Element> set = map[element.name]; |
903 if (set == null) return; | 903 if (set == null) return; |
904 set.remove(element); | 904 set.remove(element); |
905 } | 905 } |
OLD | NEW |