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

Side by Side Diff: pkg/compiler/bin/resolver.dart

Issue 2221893003: pkg/compiler: fix imports (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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 | « no previous file | pkg/compiler/lib/compiler.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) 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 import 'dart:io'; 5 import 'dart:io';
6 6
7 import 'package:args/args.dart'; 7 import 'package:args/args.dart';
8 import 'package:compiler/src/apiimpl.dart'; 8 import 'package:compiler/src/apiimpl.dart';
9 import 'package:compiler/src/dart2js.dart';
10 import 'package:compiler/src/filenames.dart'; 9 import 'package:compiler/src/filenames.dart';
11 import 'package:compiler/src/null_compiler_output.dart'; 10 import 'package:compiler/src/null_compiler_output.dart';
12 import 'package:compiler/src/source_file_provider.dart';
13 import 'package:compiler/src/options.dart'; 11 import 'package:compiler/src/options.dart';
14 import 'package:compiler/src/serialization/json_serializer.dart'; 12 import 'package:compiler/src/serialization/json_serializer.dart';
13 import 'package:compiler/src/source_file_provider.dart';
15 import 'package:package_config/discovery.dart'; 14 import 'package:package_config/discovery.dart';
16 15
17 main(var argv) async { 16 main(var argv) async {
18 var parser = new ArgParser(); 17 var parser = new ArgParser();
19 parser.addOption('deps', abbr: 'd', allowMultiple: true); 18 parser.addOption('deps', abbr: 'd', allowMultiple: true);
20 parser.addOption('out', abbr: 'o'); 19 parser.addOption('out', abbr: 'o');
21 parser.addOption('library-root', abbr: 'l'); 20 parser.addOption('library-root', abbr: 'l');
22 var args = parser.parse(argv); 21 var args = parser.parse(argv);
23 22
24 var resolutionInputs = args['deps'] 23 var resolutionInputs = args['deps']
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 inputs.map((lib) => compiler.libraryLoader.lookupLibrary(lib)).toList(); 61 inputs.map((lib) => compiler.libraryLoader.lookupLibrary(lib)).toList();
63 62
64 var serializer = 63 var serializer =
65 compiler.serialization.createSerializer(librariesToSerialize); 64 compiler.serialization.createSerializer(librariesToSerialize);
66 var text = serializer.toText(const JsonSerializationEncoder()); 65 var text = serializer.toText(const JsonSerializationEncoder());
67 66
68 var outFile = args['out'] ?? 'out.data'; 67 var outFile = args['out'] ?? 'out.data';
69 68
70 await new File(outFile).writeAsString(text); 69 await new File(outFile).writeAsString(text);
71 } 70 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698