| 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.info; | 5 library kernel.transformations.closure.info; |
| 6 | 6 |
| 7 import '../../ast.dart' | 7 import '../../ast.dart' |
| 8 show | 8 show |
| 9 Class, | 9 Class, |
| 10 Constructor, | 10 Constructor, |
| 11 Field, | 11 Field, |
| 12 FieldInitializer, | |
| 13 FunctionDeclaration, | 12 FunctionDeclaration, |
| 14 FunctionNode, | 13 FunctionNode, |
| 15 LocalInitializer, | |
| 16 Member, | 14 Member, |
| 17 Name, | 15 Name, |
| 18 Procedure, | 16 Procedure, |
| 19 ProcedureKind, | 17 ProcedureKind, |
| 20 PropertyGet, | 18 PropertyGet, |
| 21 RedirectingInitializer, | |
| 22 SuperInitializer, | |
| 23 ThisExpression, | 19 ThisExpression, |
| 24 TypeParameter, | 20 TypeParameter, |
| 25 TypeParameterType, | 21 TypeParameterType, |
| 26 VariableDeclaration, | 22 VariableDeclaration, |
| 27 VariableGet, | 23 VariableGet, |
| 28 VariableSet; | 24 VariableSet; |
| 29 | 25 |
| 30 import '../../visitor.dart' show RecursiveVisitor; | 26 import '../../visitor.dart' show RecursiveVisitor; |
| 31 | 27 |
| 32 class ClosureInfo extends RecursiveVisitor { | 28 class ClosureInfo extends RecursiveVisitor { |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 | 236 |
| 241 saveCurrentFunction(void f()) { | 237 saveCurrentFunction(void f()) { |
| 242 var saved = currentFunction; | 238 var saved = currentFunction; |
| 243 try { | 239 try { |
| 244 f(); | 240 f(); |
| 245 } finally { | 241 } finally { |
| 246 currentFunction = saved; | 242 currentFunction = saved; |
| 247 } | 243 } |
| 248 } | 244 } |
| 249 } | 245 } |
| OLD | NEW |