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

Side by Side Diff: utils/apidoc/html_diff.dart

Issue 12295014: Remove deprecated Strings class. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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
« no previous file with comments | « tools/testing/dart/test_suite.dart ('k') | utils/lib/file_system.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 /** 5 /**
6 * A script to assist in documenting the difference between the dart:html API 6 * A script to assist in documenting the difference between the dart:html API
7 * and the old DOM API. 7 * and the old DOM API.
8 */ 8 */
9 library html_diff; 9 library html_diff;
10 10
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 domNames.forEach((name) { 190 domNames.forEach((name) {
191 var nameMembers = _membersFromName(name, domTypes); 191 var nameMembers = _membersFromName(name, domTypes);
192 if (nameMembers.isEmpty) { 192 if (nameMembers.isEmpty) {
193 if (name.contains('.')) { 193 if (name.contains('.')) {
194 warn('no member $name'); 194 warn('no member $name');
195 } else { 195 } else {
196 final options = <String>[]; 196 final options = <String>[];
197 for (var t in domTypes) { 197 for (var t in domTypes) {
198 options.add('$t.$name'); 198 options.add('$t.$name');
199 } 199 }
200 Strings.join(options, ' or '); 200 options.join(' or ');
201 warn('no member $options'); 201 warn('no member $options');
202 } 202 }
203 } 203 }
204 members.addAll(nameMembers); 204 members.addAll(nameMembers);
205 }); 205 });
206 return members; 206 return members;
207 } 207 }
208 208
209 return new Set(); 209 return new Set();
210 } 210 }
(...skipping 17 matching lines...) Expand all
228 return members; 228 return members;
229 } 229 }
230 230
231 if (name.split('.').length != 2) { 231 if (name.split('.').length != 2) {
232 warn('invalid member name ${name}'); 232 warn('invalid member name ${name}');
233 return new Set(); 233 return new Set();
234 } 234 }
235 return new Set.from([name]); 235 return new Set.from([name]);
236 } 236 }
237 } 237 }
OLDNEW
« no previous file with comments | « tools/testing/dart/test_suite.dart ('k') | utils/lib/file_system.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698