| 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 file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 /// API for compiling Dart source code to .dill (Kernel IR) files. | 5 /// API for compiling Dart source code to .dill (Kernel IR) files. |
| 6 library front_end.vm; | 6 library front_end.vm; |
| 7 // TODO(ahe): Move this to lib/ once the API has matured. | 7 // TODO(ahe): Convert this file to use the API in `../../kernel_generator.dart` |
| 8 // and `../../compiler_options.dart`. |
| 8 | 9 |
| 9 import 'dart:async' show Future; | 10 import 'dart:async' show Future; |
| 10 | 11 |
| 11 import 'dart:io' show File, Platform; | 12 import 'dart:io' show File, Platform; |
| 12 | 13 |
| 13 import 'dart:typed_data' show Uint8List; | 14 import 'dart:typed_data' show Uint8List; |
| 14 | 15 |
| 15 import 'fasta.dart' as fasta; | 16 import 'fasta.dart' as fasta; |
| 16 | 17 |
| 17 /// Compilation status codes. | 18 /// Compilation status codes. |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 if (await new File.fromUri(packagesFile).exists()) { | 140 if (await new File.fromUri(packagesFile).exists()) { |
| 140 return packagesFile; | 141 return packagesFile; |
| 141 } | 142 } |
| 142 if (dir.parent.path == dir.path) { | 143 if (dir.parent.path == dir.path) { |
| 143 break; | 144 break; |
| 144 } | 145 } |
| 145 dir = dir.parent; | 146 dir = dir.parent; |
| 146 } | 147 } |
| 147 return null; | 148 return null; |
| 148 } | 149 } |
| OLD | NEW |