mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
parent
56d3426431
commit
a276bfa57c
2 changed files with 4 additions and 234 deletions
|
@ -4,8 +4,6 @@
|
|||
|
||||
from WebIDL import IDLInterface
|
||||
|
||||
autogenerated_comment = "/* THIS FILE IS AUTOGENERATED - DO NOT EDIT */\n"
|
||||
|
||||
|
||||
class Configuration:
|
||||
"""
|
||||
|
@ -344,17 +342,6 @@ def getTypesFromDescriptor(descriptor):
|
|||
return types
|
||||
|
||||
|
||||
def getFlatTypes(types):
|
||||
retval = set()
|
||||
for type in types:
|
||||
type = type.unroll()
|
||||
if type.isUnion():
|
||||
retval |= set(type.flatMemberTypes)
|
||||
else:
|
||||
retval.add(type)
|
||||
return retval
|
||||
|
||||
|
||||
def getTypesFromDictionary(dictionary):
|
||||
"""
|
||||
Get all member types for this dictionary
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue