| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
| 4 | 4 |
| 5 library test.kernel.reify.suite; | 5 library test.kernel.reify.suite; |
| 6 | 6 |
| 7 import 'dart:async' show Future; | 7 import 'dart:async' show Future; |
| 8 | 8 |
| 9 import 'dart:io' show Directory, File, Platform; | 9 import 'dart:io' show Directory, File, Platform; |
| 10 | 10 |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 | 188 |
| 189 String path = description.file.path; | 189 String path = description.file.path; |
| 190 Uri uri = Uri.base.resolve(path); | 190 Uri uri = Uri.base.resolve(path); |
| 191 loader.loadProgram(uri, target: target); | 191 loader.loadProgram(uri, target: target); |
| 192 var program = loader.program; | 192 var program = loader.program; |
| 193 for (var error in loader.errors) { | 193 for (var error in loader.errors) { |
| 194 return fail(program, "$error"); | 194 return fail(program, "$error"); |
| 195 } | 195 } |
| 196 var coreTypes = new CoreTypes(program); | 196 var coreTypes = new CoreTypes(program); |
| 197 target | 197 target |
| 198 ..performModularTransformations(coreTypes, program) | 198 ..performModularTransformationsOnProgram(coreTypes, program) |
| 199 ..performGlobalTransformations(coreTypes, program); | 199 ..performGlobalTransformations(coreTypes, program); |
| 200 return pass(program); | 200 return pass(program); |
| 201 } catch (e, s) { | 201 } catch (e, s) { |
| 202 return crash(e, s); | 202 return crash(e, s); |
| 203 } | 203 } |
| 204 } | 204 } |
| 205 } | 205 } |
| 206 | 206 |
| 207 class GenericTypesReification extends Step<Program, Program, TestContext> { | 207 class GenericTypesReification extends Step<Program, Program, TestContext> { |
| 208 const GenericTypesReification(); | 208 const GenericTypesReification(); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 233 await StdioProcess.run(context.vm.toFilePath(), [generated.path]); | 233 await StdioProcess.run(context.vm.toFilePath(), [generated.path]); |
| 234 print(process.output); | 234 print(process.output); |
| 235 } finally { | 235 } finally { |
| 236 generated.parent.delete(recursive: true); | 236 generated.parent.delete(recursive: true); |
| 237 } | 237 } |
| 238 return process.toResult(); | 238 return process.toResult(); |
| 239 } | 239 } |
| 240 } | 240 } |
| 241 | 241 |
| 242 main(List<String> arguments) => runMe(arguments, createContext, "testing.json"); | 242 main(List<String> arguments) => runMe(arguments, createContext, "testing.json"); |
| OLD | NEW |