OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 /// Command line tool to run the checker on a Dart program. | 5 /// Command line tool to run the checker on a Dart program. |
6 library ddc.devc; | 6 library dev_compiler.devc; |
7 | 7 |
8 import 'dart:async'; | 8 import 'dart:async'; |
9 import 'dart:convert'; | 9 import 'dart:convert'; |
10 import 'dart:io'; | 10 import 'dart:io'; |
11 | 11 |
12 import 'package:logging/logging.dart' show Level, Logger, LogRecord; | 12 import 'package:logging/logging.dart' show Level, Logger, LogRecord; |
13 import 'package:path/path.dart' as path; | 13 import 'package:path/path.dart' as path; |
14 import 'package:html5lib/parser.dart' show parse; | 14 import 'package:html5lib/parser.dart' show parse; |
15 | 15 |
16 import 'src/checker/resolver.dart'; | 16 import 'src/checker/resolver.dart'; |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 if (options.dumpInfo && reporter is SummaryReporter) { | 162 if (options.dumpInfo && reporter is SummaryReporter) { |
163 print(summaryToString(reporter.result)); | 163 print(summaryToString(reporter.result)); |
164 if (options.dumpInfoFile != null) { | 164 if (options.dumpInfoFile != null) { |
165 new File(options.dumpInfoFile) | 165 new File(options.dumpInfoFile) |
166 .writeAsStringSync(JSON.encode(reporter.result.toJsonMap())); | 166 .writeAsStringSync(JSON.encode(reporter.result.toJsonMap())); |
167 } | 167 } |
168 } | 168 } |
169 return new CheckerResults(libraries, rules, failure || options.forceCompile); | 169 return new CheckerResults(libraries, rules, failure || options.forceCompile); |
170 } | 170 } |
171 | 171 |
172 final _log = new Logger('ddc'); | 172 final _log = new Logger('dev_compiler'); |
173 final _earlyErrorResult = new CheckerResults(const [], null, true); | 173 final _earlyErrorResult = new CheckerResults(const [], null, true); |
OLD | NEW |