| 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 universe; | 5 library universe; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 | 8 |
| 9 import '../common/resolution.dart' show | 9 import '../common.dart'; |
| 10 Resolution; | |
| 11 import '../compiler.dart' show | 10 import '../compiler.dart' show |
| 12 Compiler; | 11 Compiler; |
| 13 import '../diagnostics/invariant.dart' show | |
| 14 invariant; | |
| 15 import '../elements/elements.dart'; | 12 import '../elements/elements.dart'; |
| 16 import '../dart_types.dart'; | 13 import '../dart_types.dart'; |
| 17 import '../util/util.dart'; | 14 import '../util/util.dart'; |
| 18 import '../world.dart' show | 15 import '../world.dart' show |
| 19 ClassWorld, | 16 ClassWorld, |
| 20 World; | 17 World; |
| 21 | 18 |
| 22 import 'selector.dart' show | 19 import 'selector.dart' show |
| 23 Selector; | 20 Selector; |
| 24 | 21 |
| (...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 420 // TODO(ahe): Replace this method with something that is O(1), for example, | 417 // TODO(ahe): Replace this method with something that is O(1), for example, |
| 421 // by using a map. | 418 // by using a map. |
| 422 List<LocalFunctionElement> slowDirectlyNestedClosures(Element element) { | 419 List<LocalFunctionElement> slowDirectlyNestedClosures(Element element) { |
| 423 // Return new list to guard against concurrent modifications. | 420 // Return new list to guard against concurrent modifications. |
| 424 return new List<LocalFunctionElement>.from( | 421 return new List<LocalFunctionElement>.from( |
| 425 allClosures.where((LocalFunctionElement closure) { | 422 allClosures.where((LocalFunctionElement closure) { |
| 426 return closure.executableContext == element; | 423 return closure.executableContext == element; |
| 427 })); | 424 })); |
| 428 } | 425 } |
| 429 } | 426 } |
| OLD | NEW |