| 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_dart2js; | 5 library analyze_dart2js; |
| 6 | 6 |
| 7 import "package:expect/expect.dart"; | |
| 8 import 'package:compiler/src/filenames.dart'; | 7 import 'package:compiler/src/filenames.dart'; |
| 9 import 'analyze_helper.dart'; | 8 import 'analyze_helper.dart'; |
| 10 import "package:async_helper/async_helper.dart"; | 9 import "package:async_helper/async_helper.dart"; |
| 11 | 10 |
| 12 /** | 11 /** |
| 13 * Map of whitelisted warnings and errors. | 12 * Map of whitelisted warnings and errors. |
| 14 * | 13 * |
| 15 * Only add a whitelisting together with a bug report to dartbug.com and add | 14 * Only add a whitelisting together with a bug report to dartbug.com and add |
| 16 * the bug issue number as a comment on the whitelisting. | 15 * the bug issue number as a comment on the whitelisting. |
| 17 * | 16 * |
| 18 * Use an identifiable suffix of the file uri as key. Use a fixed substring of | 17 * Use an identifiable suffix of the file uri as key. Use a fixed substring of |
| 19 * the error/warning message in the list of whitelistings for each file. | 18 * the error/warning message in the list of whitelistings for each file. |
| 20 */ | 19 */ |
| 21 // TODO(johnniwinther): Support canonical URIs as keys and message kinds as | 20 // TODO(johnniwinther): Support canonical URIs as keys and message kinds as |
| 22 // values. | 21 // values. |
| 23 const Map<String,List<String>> WHITE_LIST = const { | 22 const Map<String,List<String>> WHITE_LIST = const { |
| 24 }; | 23 }; |
| 25 | 24 |
| 26 void main() { | 25 void main() { |
| 27 var uri = currentDirectory.resolve('pkg/compiler/lib/src/dart2js.dart'); | 26 var uri = currentDirectory.resolve('pkg/compiler/lib/src/dart2js.dart'); |
| 28 asyncTest(() => analyze([uri], WHITE_LIST)); | 27 asyncTest(() => analyze([uri], WHITE_LIST)); |
| 29 } | 28 } |
| OLD | NEW |