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

Side by Side Diff: tools/dom/scripts/idlrenderer.dart

Issue 11691009: Moved most of html lib generating scripts into tools. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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/dom/scripts/idlparser_test.py ('k') | tools/dom/scripts/idlrenderer.py » ('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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 List sorted(Iterable input, [compare, key]) { 5 List sorted(Iterable input, [compare, key]) {
6 comparator(compare, key) { 6 comparator(compare, key) {
7 if (compare == null && key == null) 7 if (compare == null && key == null)
8 return (a, b) => a.compareTo(b); 8 return (a, b) => a.compareTo(b);
9 if (compare == null) 9 if (compare == null)
10 return (a, b) => key(a).compareTo(key(b)); 10 return (a, b) => key(a).compareTo(key(b));
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 } else if (node is IDLTypeDef) { 171 } else if (node is IDLTypeDef) {
172 wln('typedef ${node.type.id} ${node.id};'); 172 wln('typedef ${node.type.id} ${node.id};');
173 } else { 173 } else {
174 w('// $node\n'); 174 w('// $node\n');
175 } 175 }
176 }; 176 };
177 177
178 w(idl_node); 178 w(idl_node);
179 return Strings.concatAll(output); 179 return Strings.concatAll(output);
180 } 180 }
OLDNEW
« no previous file with comments | « tools/dom/scripts/idlparser_test.py ('k') | tools/dom/scripts/idlrenderer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698