mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Auto merge of #6496 - mukilan:fix_import_codegen, r=Ms2ger
CGImports must consider special operations to generate required 'use' items <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6496) <!-- Reviewable:end -->
This commit is contained in:
commit
b7923547a7
1 changed files with 3 additions and 0 deletions
|
@ -1645,6 +1645,9 @@ class CGImports(CGWrapper):
|
|||
if constructor:
|
||||
members += [constructor]
|
||||
|
||||
if d.proxy:
|
||||
members += [o for o in d.operations.values() if o]
|
||||
|
||||
for m in members:
|
||||
if m.isMethod():
|
||||
types += relatedTypesForSignatures(m)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue