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 '../../../sdk/lib/_internal/compiler/compiler.dart' as api; | 9 import 'package:compiler/compiler.dart' as api; |
10 import '../../../sdk/lib/_internal/compiler/implementation/apiimpl.dart'; | 10 import 'package:compiler/implementation/apiimpl.dart'; |
11 import '../../../sdk/lib/_internal/compiler/implementation/dart2jslib.dart' | 11 import 'package:compiler/implementation/dart2jslib.dart' |
12 hide Compiler; | 12 hide Compiler; |
13 import '../../../sdk/lib/_internal/compiler/implementation/filenames.dart'; | 13 import 'package:compiler/implementation/filenames.dart'; |
14 import '../../../sdk/lib/_internal/compiler/implementation/source_file_provider.
dart'; | 14 import 'package:compiler/implementation/source_file_provider.dart'; |
15 import '../../../sdk/lib/_internal/compiler/implementation/util/uri_extras.dart'
; | 15 import 'package:compiler/implementation/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 |
24 * the error/warning message in the list of whitelistings for each file. | 24 * the error/warning message in the list of whitelistings for each file. |
25 */ | 25 */ |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 exit(1); | 183 exit(1); |
184 } | 184 } |
185 } | 185 } |
186 if (analyzeAll) { | 186 if (analyzeAll) { |
187 compiler.librariesToAnalyzeWhenRun = uriList; | 187 compiler.librariesToAnalyzeWhenRun = uriList; |
188 return compiler.run(null).then(onCompletion); | 188 return compiler.run(null).then(onCompletion); |
189 } else { | 189 } else { |
190 return compiler.run(uriList.single).then(onCompletion); | 190 return compiler.run(uriList.single).then(onCompletion); |
191 } | 191 } |
192 } | 192 } |
OLD | NEW |