OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 library analyze_helper; | 5 library analyze_helper; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 import 'dart:io'; | 8 import 'dart:io'; |
9 import 'package:compiler/compiler.dart' as api; | 9 import 'package:compiler/compiler.dart' as api; |
10 import 'package:compiler/src/apiimpl.dart'; | 10 import 'package:compiler/src/apiimpl.dart'; |
11 import 'package:compiler/src/dart2jslib.dart' | |
12 hide Compiler; | |
13 import 'package:compiler/src/filenames.dart'; | 11 import 'package:compiler/src/filenames.dart'; |
| 12 import 'package:compiler/src/messages.dart' show |
| 13 Message; |
14 import 'package:compiler/src/source_file_provider.dart'; | 14 import 'package:compiler/src/source_file_provider.dart'; |
15 import 'package:compiler/src/util/uri_extras.dart'; | 15 import 'package:compiler/src/util/uri_extras.dart'; |
16 | 16 |
17 /** | 17 /** |
18 * Map of whitelisted warnings and errors. | 18 * Map of whitelisted warnings and errors. |
19 * | 19 * |
20 * Only add a whitelisting together with a bug report to dartbug.com and add | 20 * Only add a whitelisting together with a bug report to dartbug.com and add |
21 * the bug issue number as a comment on the whitelisting. | 21 * the bug issue number as a comment on the whitelisting. |
22 * | 22 * |
23 * Use an identifiable suffix of the file uri as key. Use a fixed substring of | 23 * Use an identifiable suffix of the file uri as key. Use a fixed substring of |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 exit(1); | 188 exit(1); |
189 } | 189 } |
190 } | 190 } |
191 if (analyzeAll) { | 191 if (analyzeAll) { |
192 compiler.librariesToAnalyzeWhenRun = uriList; | 192 compiler.librariesToAnalyzeWhenRun = uriList; |
193 return compiler.run(null).then(onCompletion); | 193 return compiler.run(null).then(onCompletion); |
194 } else { | 194 } else { |
195 return compiler.run(uriList.single).then(onCompletion); | 195 return compiler.run(uriList.single).then(onCompletion); |
196 } | 196 } |
197 } | 197 } |
OLD | NEW |