| 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.mock; | 5 library kernel.transformations.closure.mock; |
| 6 | 6 |
| 7 import '../../ast.dart' | 7 import '../../ast.dart' |
| 8 show | 8 show |
| 9 Arguments, | 9 Arguments, |
| 10 Block, | 10 Block, |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 name: "Context", | 184 name: "Context", |
| 185 supertype: new Supertype(coreTypes.objectClass, const <DartType>[]), | 185 supertype: new Supertype(coreTypes.objectClass, const <DartType>[]), |
| 186 constructors: [constructor], | 186 constructors: [constructor], |
| 187 fields: fields, | 187 fields: fields, |
| 188 procedures: procedures, | 188 procedures: procedures, |
| 189 fileUri: fileUri); | 189 fileUri: fileUri); |
| 190 Library mock = new Library(Uri.parse(fileUri), | 190 Library mock = new Library(Uri.parse(fileUri), |
| 191 name: "mock", classes: [contextClass])..fileUri = fileUri; | 191 name: "mock", classes: [contextClass])..fileUri = fileUri; |
| 192 program.libraries.add(mock); | 192 program.libraries.add(mock); |
| 193 mock.parent = program; | 193 mock.parent = program; |
| 194 program.uriToSource[mock.fileUri] = new Source(<int>[0], ""); | 194 program.uriToSource[mock.fileUri] = new Source(<int>[0], const <int>[]); |
| 195 return contextClass; | 195 return contextClass; |
| 196 } | 196 } |
| OLD | NEW |