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

Unified Diff: ppapi/generators/idl_ast.py

Issue 98343005: Pepper: More IDL generator cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix for json_schema_compiler Created 7 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ppapi/generators/idl_c_proto.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/generators/idl_ast.py
diff --git a/ppapi/generators/idl_ast.py b/ppapi/generators/idl_ast.py
index 2aacb11cc94389b7b8a849cb051d79289c7bce8f..74dce942a8e2939fdb2383ba683024b72c0f8ba5 100644
--- a/ppapi/generators/idl_ast.py
+++ b/ppapi/generators/idl_ast.py
@@ -11,15 +11,6 @@ from idl_visitor import IDLVisitor
from idl_release import IDLReleaseMap
#
-# IDL Predefined types
-#
-BuiltIn = set(['int8_t', 'int16_t', 'int32_t', 'int64_t', 'uint8_t',
- 'uint16_t', 'uint32_t', 'uint64_t', 'double_t', 'float_t',
- 'handle_t', 'interface_t', 'char', 'mem_t', 'mem_ptr_t',
- 'str_t', 'void'])
-
-
-#
# IDLLabelResolver
#
# A specialized visitor which traverses the AST, building a mapping of
@@ -78,7 +69,7 @@ class IDLNamespaceVersionResolver(IDLVisitor):
node.namespace = parent_namespace
else:
# otherwise create one.
- node.namespace = IDLNamespace(parent_namespace, node.GetName())
+ node.namespace = IDLNamespace(parent_namespace)
# If this node is named, place it in its parent's namespace
if parent_namespace and node.cls in IDLNode.NamedSet:
@@ -124,7 +115,7 @@ class IDLFileTypeResolver(IDLVisitor):
node.SetMinRange(file_min)
# If this node has a TYPEREF, resolve it to a version list
- typeref = node.property_node.GetPropertyLocal('TYPEREF')
+ typeref = node.GetPropertyLocal('TYPEREF')
if typeref:
node.typelist = node.parent.namespace.FindList(typeref)
if not node.typelist:
@@ -164,7 +155,7 @@ class IDLAst(IDLNode):
IDLLabelResolver().Visit(self, None)
# Generate the Namesapce Tree
- self.namespace = IDLNamespace(None, 'AST')
+ self.namespace = IDLNamespace(None)
IDLNamespaceVersionResolver().Visit(self, self.namespace)
# Using the namespace, resolve type references
« no previous file with comments | « no previous file | ppapi/generators/idl_c_proto.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698