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

Side by Side Diff: ppapi/generators/idl_ast.py

Issue 8653004: Fix python scripts in src/ppapi/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase error Created 8 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 | « ppapi/generators/generator.py ('k') | ppapi/generators/idl_c_header.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
2 #
3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 3 # found in the LICENSE file.
6 4
7 """Nodes for PPAPI IDL AST.""" 5 """Nodes for PPAPI IDL AST."""
8 6
9 from idl_namespace import IDLNamespace 7 from idl_namespace import IDLNamespace
10 from idl_node import IDLAttribute, IDLFile, IDLNode 8 from idl_node import IDLAttribute, IDLFile, IDLNode
11 from idl_option import GetOption 9 from idl_option import GetOption
12 from idl_visitor import IDLVisitor 10 from idl_visitor import IDLVisitor
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 # Build an ordered list of all releases 115 # Build an ordered list of all releases
118 self.releases = set() 116 self.releases = set()
119 for filenode in self.GetListOf('File'): 117 for filenode in self.GetListOf('File'):
120 self.releases |= set(filenode.release_map.GetReleases()) 118 self.releases |= set(filenode.release_map.GetReleases())
121 self.releases = sorted(self.releases) 119 self.releases = sorted(self.releases)
122 120
123 def SetTypeInfo(self, name, properties): 121 def SetTypeInfo(self, name, properties):
124 node = self.namespace[name] 122 node = self.namespace[name]
125 for prop in properties: 123 for prop in properties:
126 node.properties[prop] = properties[prop] 124 node.properties[prop] = properties[prop]
127
128
OLDNEW
« no previous file with comments | « ppapi/generators/generator.py ('k') | ppapi/generators/idl_c_header.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698