Chromium Code Reviews| Index: Source/bindings/scripts/v8_utilities.py |
| diff --git a/Source/bindings/scripts/v8_utilities.py b/Source/bindings/scripts/v8_utilities.py |
| index 251a0a6a0d0f8c991a6571f5f66aa3f09dfdbda5..01d16f748044b8d64911505794179be7af56de4d 100644 |
| --- a/Source/bindings/scripts/v8_utilities.py |
| +++ b/Source/bindings/scripts/v8_utilities.py |
| @@ -303,6 +303,10 @@ def cpp_name(definition_or_member): |
| return extended_attributes['ImplementedAs'] |
| +def cpp_name_from_interfaces_info(name, interfaces_info): |
| + return interfaces_info.get(name, {}).get('implemented_as') or name |
|
Jens Widell
2014/11/19 06:41:47
Pass 'name' as the default, to the second get()?
bashi
2014/11/19 07:35:22
It seems that get() returns None when the associat
Jens Widell
2014/11/19 07:38:53
Ah, yes, it does.
Let's not pass 'name' as the de
|
| + |
| + |
| def cpp_name_or_partial(interface): |
| cpp_class_name = cpp_name(interface) |
| if interface.is_partial: |