| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 2 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 3 # for details. All rights reserved. Use of this source code is governed by a | 3 # for details. All rights reserved. Use of this source code is governed by a |
| 4 # BSD-style license that can be found in the LICENSE file. | 4 # BSD-style license that can be found in the LICENSE file. |
| 5 | 5 |
| 6 """Module to manage IDL files.""" | 6 """Module to manage IDL files.""" |
| 7 | 7 |
| 8 import copy | 8 import copy |
| 9 import pickle | 9 import pickle |
| 10 import logging | 10 import logging |
| (...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 if not(parent_interface in walk_result): | 326 if not(parent_interface in walk_result): |
| 327 # Interface has multi-inherited don't add interfaces more than once | 327 # Interface has multi-inherited don't add interfaces more than once |
| 328 # to our parent result list. | 328 # to our parent result list. |
| 329 walk_result.append(parent_interface) | 329 walk_result.append(parent_interface) |
| 330 walk(parent_interface.parents, walk_result) | 330 walk(parent_interface.parents, walk_result) |
| 331 return walk_result | 331 return walk_result |
| 332 | 332 |
| 333 result = [] | 333 result = [] |
| 334 if interface.parents: | 334 if interface.parents: |
| 335 parent = interface.parents[0] | 335 parent = interface.parents[0] |
| 336 if (IsPureInterface(parent.type.id) or | 336 if (IsPureInterface(parent.type.id, self) or |
| 337 (propagate_event_target and parent.type.id == 'EventTarget')): | 337 (propagate_event_target and parent.type.id == 'EventTarget')): |
| 338 result = walk(interface.parents, []) | 338 result = walk(interface.parents, []) |
| 339 else: | 339 else: |
| 340 result = walk(interface.parents[1:], []) | 340 result = walk(interface.parents[1:], []) |
| 341 | 341 |
| 342 return result | 342 return result |
| 343 | 343 |
| OLD | NEW |