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

Side by Side Diff: bin/devc.dart

Issue 967933005: rename ddc -> dev_compiler, fixes #84 (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 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 | « no previous file | bin/edit_files.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 #!/usr/bin/env dart 1 #!/usr/bin/env dart
2 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 2 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
3 // for details. All rights reserved. Use of this source code is governed by a 3 // for details. All rights reserved. Use of this source code is governed by a
4 // BSD-style license that can be found in the LICENSE file. 4 // BSD-style license that can be found in the LICENSE file.
5 5
6 /// Command line tool to run the checker on a Dart program. 6 /// Command line tool to run the checker on a Dart program.
7 library ddc.bin.checker; 7 library dev_compiler.bin.checker;
8 8
9 import 'dart:io'; 9 import 'dart:io';
10 10
11 import 'package:dev_compiler/devc.dart'; 11 import 'package:dev_compiler/devc.dart';
12 import 'package:dev_compiler/src/checker/dart_sdk.dart' show mockSdkSources; 12 import 'package:dev_compiler/src/checker/dart_sdk.dart' show mockSdkSources;
13 import 'package:dev_compiler/src/checker/resolver.dart' show TypeResolver; 13 import 'package:dev_compiler/src/checker/resolver.dart' show TypeResolver;
14 import 'package:dev_compiler/src/options.dart'; 14 import 'package:dev_compiler/src/options.dart';
15 15
16 void _showUsageAndExit() { 16 void _showUsageAndExit() {
17 print('usage: dartdevc [<options>] <file.dart>\n'); 17 print('usage: dartdevc [<options>] <file.dart>\n');
(...skipping 19 matching lines...) Expand all
37 } 37 }
38 38
39 if (!options.dumpInfo) setupLogger(options.logLevel, print); 39 if (!options.dumpInfo) setupLogger(options.logLevel, print);
40 40
41 var typeResolver = options.useMockSdk 41 var typeResolver = options.useMockSdk
42 ? new TypeResolver.fromMock(mockSdkSources, options) 42 ? new TypeResolver.fromMock(mockSdkSources, options)
43 : new TypeResolver.fromDir(options.dartSdkPath, options); 43 : new TypeResolver.fromDir(options.dartSdkPath, options);
44 var result = compile(options.entryPointFile, typeResolver, options); 44 var result = compile(options.entryPointFile, typeResolver, options);
45 exit(result.failure ? 1 : 0); 45 exit(result.failure ? 1 : 0);
46 } 46 }
OLDNEW
« no previous file with comments | « no previous file | bin/edit_files.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698