| 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 fasta.compile_platform; | 5 library fasta.compile_platform; |
| 6 | 6 |
| 7 import 'dart:async' show | 7 import 'dart:async' show |
| 8 Future; | 8 Future; |
| 9 | 9 |
| 10 import 'dart:io' show | 10 import 'dart:io' show |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 library.addMember(new Field(exports, isStatic: true, isConst: true, | 129 library.addMember(new Field(exports, isStatic: true, isConst: true, |
| 130 initializer: literal, fileUri: "${new Uri.file(source.fullName)}") | 130 initializer: literal, fileUri: "${new Uri.file(source.fullName)}") |
| 131 ..fileOffset = offset); | 131 ..fileOffset = offset); |
| 132 } | 132 } |
| 133 } | 133 } |
| 134 | 134 |
| 135 IOSink sink = new File.fromUri(output).openWrite(); | 135 IOSink sink = new File.fromUri(output).openWrite(); |
| 136 new BinaryPrinter(sink).writeProgramFile(program); | 136 new BinaryPrinter(sink).writeProgramFile(program); |
| 137 await sink.close(); | 137 await sink.close(); |
| 138 } | 138 } |
| OLD | NEW |