OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 kernel.transformations.closure_conversion; | 5 library kernel.transformations.closure_conversion; |
6 | 6 |
7 import '../ast.dart' show Class, Program, Library; | 7 import '../ast.dart' show Program, Library; |
8 | 8 |
9 import '../core_types.dart' show CoreTypes; | 9 import '../core_types.dart' show CoreTypes; |
10 | 10 |
11 import 'closure/converter.dart' show ClosureConverter; | 11 import 'closure/converter.dart' show ClosureConverter; |
12 | 12 |
13 import 'closure/info.dart' show ClosureInfo; | 13 import 'closure/info.dart' show ClosureInfo; |
14 | 14 |
15 import 'closure/invalidate_closures.dart'; | 15 import 'closure/invalidate_closures.dart'; |
16 | 16 |
17 Program transformProgram(CoreTypes coreTypes, Program program) { | 17 Program transformProgram(CoreTypes coreTypes, Program program) { |
(...skipping 13 matching lines...) Expand all Loading... |
31 | 31 |
32 var convert = new ClosureConverter(coreTypes, info); | 32 var convert = new ClosureConverter(coreTypes, info); |
33 for (int i = 0; i < libraries.length; i++) { | 33 for (int i = 0; i < libraries.length; i++) { |
34 libraries[i] = convert.visitLibrary(libraries[i]); | 34 libraries[i] = convert.visitLibrary(libraries[i]); |
35 } | 35 } |
36 var invalidator = new InvalidateClosures(); | 36 var invalidator = new InvalidateClosures(); |
37 for (int i = 0; i < libraries.length; i++) { | 37 for (int i = 0; i < libraries.length; i++) { |
38 invalidator.visitLibrary(libraries[i]); | 38 invalidator.visitLibrary(libraries[i]); |
39 } | 39 } |
40 } | 40 } |
OLD | NEW |