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

Side by Side Diff: dart/tests/compiler/dart2js/analyze_api_test.dart

Issue 16633008: Diagnose unresolved constructors in platform libraries. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
OLDNEW
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_api; 5 library analyze_api;
6 6
7 import "package:expect/expect.dart";
8 import '../../../sdk/lib/_internal/libraries.dart'; 7 import '../../../sdk/lib/_internal/libraries.dart';
9 import 'analyze_helper.dart'; 8 import 'analyze_helper.dart';
10 9
11 /** 10 /**
12 * Map of white-listed warnings and errors. 11 * Map of white-listed warnings and errors.
13 * 12 *
14 * Only add a white-listing together with a bug report to dartbug.com and add 13 * Only add a white-listing together with a bug report to dartbug.com and add
15 * the bug issue number as a comment on the white-listing. 14 * the bug issue number as a comment on the white-listing.
16 * 15 *
17 * Use an identifiable suffix of the file uri as key. Use a fixed substring of 16 * Use an identifiable suffix of the file uri as key. Use a fixed substring of
18 * the error/warning message in the list of white-listings for each file. 17 * the error/warning message in the list of white-listings for each file.
19 */ 18 */
20 // TODO(johnniwinther): Support canonical URIs as keys and message kinds as 19 // TODO(johnniwinther): Support canonical URIs as keys and message kinds as
21 // values. 20 // values.
22 const Map<String, List<String>> WHITE_LIST = const { 21 const Map<String, List<String>> WHITE_LIST = const {
23 }; 22 };
24 23
25 void main() { 24 void main() {
26 var uriList = new List<Uri>(); 25 var uriList = new List<Uri>();
27 LIBRARIES.forEach((String name, LibraryInfo info) { 26 LIBRARIES.forEach((String name, LibraryInfo info) {
28 if (info.documented) { 27 if (info.documented) {
29 uriList.add(new Uri(scheme: 'dart', path: name)); 28 uriList.add(new Uri(scheme: 'dart', path: name));
30 } 29 }
31 }); 30 });
32 analyze(uriList, WHITE_LIST); 31 analyze(uriList, WHITE_LIST);
33 } 32 }
OLDNEW
« no previous file with comments | « dart/sdk/lib/html/dart2js/html_dart2js.dart ('k') | dart/tools/dom/templates/html/dart2js/html_dart2js.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698