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

Unified Diff: sky/engine/bindings2/scripts/idl_definitions.py

Issue 914413004: Add a new bindings2/scripts directory for Dart bindings (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Remove idlrenderer.py it's not used Created 5 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 side-by-side diff with in-line comments
Download patch
Index: sky/engine/bindings2/scripts/idl_definitions.py
diff --git a/sky/engine/bindings/scripts/idl_definitions.py b/sky/engine/bindings2/scripts/idl_definitions.py
similarity index 94%
copy from sky/engine/bindings/scripts/idl_definitions.py
copy to sky/engine/bindings2/scripts/idl_definitions.py
index 51cecee974e5a08474cf4b06f9b27d8161fcce4b..3ebff87802ecde5ad0968bf018fd31b08bcd54d1 100644
--- a/sky/engine/bindings/scripts/idl_definitions.py
+++ b/sky/engine/bindings2/scripts/idl_definitions.py
@@ -138,9 +138,6 @@ class IdlDefinitions(object):
elif child_class == 'Implements':
# Implements is handled at the interface merging step
pass
- elif child_class == 'Dictionary':
- dictionary = IdlDictionary(idl_name, child)
- self.dictionaries[dictionary.name] = dictionary
else:
raise ValueError('Unrecognized node class: %s' % child_class)
@@ -203,51 +200,6 @@ class IdlCallbackFunction(TypedObject):
################################################################################
-# Dictionary
-################################################################################
-
-class IdlDictionary(object):
- def __init__(self, idl_name, node):
- self.extended_attributes = {}
- self.is_partial = node.GetProperty('Partial') or False
- self.idl_name = idl_name
- self.name = node.GetName()
- self.members = []
- self.parent = None
- for child in node.GetChildren():
- child_class = child.GetClass()
- if child_class == 'Inherit':
- self.parent = child.GetName()
- elif child_class == 'Key':
- self.members.append(IdlDictionaryMember(idl_name, child))
- elif child_class == 'ExtAttributes':
- self.extended_attributes = (
- ext_attributes_node_to_extended_attributes(idl_name, child))
- else:
- raise ValueError('Unrecognized node class: %s' % child_class)
-
-
-class IdlDictionaryMember(object):
- def __init__(self, idl_name, node):
- self.default_value = None
- self.extended_attributes = {}
- self.idl_type = None
- self.idl_name = idl_name
- self.name = node.GetName()
- for child in node.GetChildren():
- child_class = child.GetClass()
- if child_class == 'Type':
- self.idl_type = type_node_to_type(child)
- elif child_class == 'Default':
- self.default_value = default_node_to_idl_literal(child)
- elif child_class == 'ExtAttributes':
- self.extended_attributes = (
- ext_attributes_node_to_extended_attributes(idl_name, child))
- else:
- raise ValueError('Unrecognized node class: %s' % child_class)
-
-
-################################################################################
# Enumerations
################################################################################
« no previous file with comments | « sky/engine/bindings2/scripts/generate_event_interfaces.py ('k') | sky/engine/bindings2/scripts/idl_reader.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698