mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 841404. Make sure that we treat dictionaries inside sequence and array members of a dictionary as dependencies for it. r=peterv
This commit is contained in:
parent
97e73be205
commit
d37856e270
@ -6812,14 +6812,21 @@ class CGDictionary(CGThing):
|
||||
def makeIdName(name):
|
||||
return name + "_id"
|
||||
|
||||
@staticmethod
|
||||
def getDictionaryDependenciesFromType(type):
|
||||
if type.isDictionary():
|
||||
return set([type.unroll().inner])
|
||||
if type.isSequence() or type.isArray():
|
||||
return CGDictionary.getDictionaryDependenciesFromType(type.unroll())
|
||||
return set()
|
||||
|
||||
@staticmethod
|
||||
def getDictionaryDependencies(dictionary):
|
||||
deps = set();
|
||||
if dictionary.parent:
|
||||
deps.add(dictionary.parent)
|
||||
for member in dictionary.members:
|
||||
if member.type.isDictionary():
|
||||
deps.add(member.type.unroll().inner)
|
||||
deps |= CGDictionary.getDictionaryDependenciesFromType(member.type)
|
||||
return deps
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user