Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Side by Side Diff: pkg/front_end/lib/src/fasta/vm.dart

Issue 2742333006: Move patch file generation to fasta. (Closed)
Patch Set: Extract method. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « pkg/front_end/lib/src/fasta/kernel/kernel_target.dart ('k') | tools/patch_sdk.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « pkg/front_end/lib/src/fasta/kernel/kernel_target.dart ('k') | tools/patch_sdk.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698