| 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.context; | 5 library kernel.transformations.closure.context; |
| 6 | 6 |
| 7 import '../../ast.dart' | 7 import '../../ast.dart' |
| 8 show | 8 show |
| 9 Class, | |
| 10 Expression, | 9 Expression, |
| 11 NullLiteral, | 10 NullLiteral, |
| 12 StringLiteral, | 11 StringLiteral, |
| 13 Throw, | 12 Throw, |
| 14 TreeNode, | 13 TreeNode, |
| 15 VariableDeclaration, | 14 VariableDeclaration, |
| 16 VariableGet, | 15 VariableGet, |
| 17 VariableSet, | 16 VariableSet, |
| 18 VectorCreation, | 17 VectorCreation, |
| 19 VectorGet, | 18 VectorGet, |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 // Item 0 of a context always points to its parent. | 233 // Item 0 of a context always points to its parent. |
| 235 context = new VectorGet(context, 0); | 234 context = new VectorGet(context, 0); |
| 236 } | 235 } |
| 237 throw 'Unbound NestedContext.lookup($variable)'; | 236 throw 'Unbound NestedContext.lookup($variable)'; |
| 238 } | 237 } |
| 239 | 238 |
| 240 Context toNestedContext([Accessor accessor]) { | 239 Context toNestedContext([Accessor accessor]) { |
| 241 return new NestedContext(converter, accessor ?? this.accessor, variabless); | 240 return new NestedContext(converter, accessor ?? this.accessor, variabless); |
| 242 } | 241 } |
| 243 } | 242 } |
| OLD | NEW |