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

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

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, 12 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/idlrenderer.dart ('k') | tools/dom/scripts/idlrenderer_test.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 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 2 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
3 # for details. All rights reserved. Use of this source code is governed by a 3 # for details. All rights reserved. Use of this source code is governed by a
4 # BSD-style license that can be found in the LICENSE file. 4 # BSD-style license that can be found in the LICENSE file.
5 5
6 from idlnode import * 6 from idlnode import *
7 7
8 8
9 def render(idl_node, indent_str=' '): 9 def render(idl_node, indent_str=' '):
10 output = [] 10 output = []
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 elif isinstance(node, IDLArgument): 168 elif isinstance(node, IDLArgument):
169 wsp(node.ext_attrs) 169 wsp(node.ext_attrs)
170 w('in ') 170 w('in ')
171 w('%s %s' % (node.type.id, node.id)) 171 w('%s %s' % (node.type.id, node.id))
172 else: 172 else:
173 raise TypeError("Expected str or IDLNode but %s found" % 173 raise TypeError("Expected str or IDLNode but %s found" %
174 type(node)) 174 type(node))
175 175
176 w(idl_node) 176 w(idl_node)
177 return ''.join(output) 177 return ''.join(output)
OLDNEW
« no previous file with comments | « tools/dom/scripts/idlrenderer.dart ('k') | tools/dom/scripts/idlrenderer_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698