Changeset 273940 in webkit
- Timestamp:
- Mar 4, 2021, 8:17:40 PM (4 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r273931 r273940 1 2021-03-04 Alex Christensen <achristensen@webkit.org> 2 3 [Cocoa] REGRESSION(r272752): fix some internal builds that use WTFString::WTFString(NSString *) 4 https://bugs.webkit.org/show_bug.cgi?id=222610 5 6 Reviewed by Chris Dumez. 7 8 * inspector/scripts/codegen/objc_generator.py: 9 (ObjCGenerator.objc_protocol_import_expression_for_member): 10 (ObjCGenerator.objc_protocol_import_expression_for_parameter): 11 (ObjCGenerator.protocol_to_objc_expression_for_member): 12 (ObjCGenerator.payload_to_objc_expression_for_member): 13 1 14 2021-03-04 Saam Barati <sbarati@apple.com> 2 15 -
trunk/Source/JavaScriptCore/inspector/scripts/codegen/objc_generator.py
r273917 r273940 391 391 if isinstance(member.type, EnumType): 392 392 if member.type.is_anonymous: 393 return 'fromProtocolString<%s>( %s)' % (self.objc_enum_name_for_anonymous_enum_member(declaration, member), name)394 return 'fromProtocolString<%s>( %s)' % (self.objc_enum_name_for_non_anonymous_enum(member.type), name)393 return 'fromProtocolString<%s>((__bridge CFStringRef)%s)' % (self.objc_enum_name_for_anonymous_enum_member(declaration, member), name) 394 return 'fromProtocolString<%s>((__bridge CFStringRef)%s)' % (self.objc_enum_name_for_non_anonymous_enum(member.type), name) 395 395 return self.objc_protocol_import_expression_for_variable(member.type, name) 396 396 … … 443 443 if isinstance(member.type, EnumType): 444 444 if member.type.is_anonymous: 445 return 'fromProtocolString<%s>( %s).value()' % (self.objc_enum_name_for_anonymous_enum_member(declaration, member), sub_expression)446 return 'fromProtocolString<%s>( %s).value()' % (self.objc_enum_name_for_non_anonymous_enum(member.type), sub_expression)445 return 'fromProtocolString<%s>((__bridge CFStringRef)%s).value()' % (self.objc_enum_name_for_anonymous_enum_member(declaration, member), sub_expression) 446 return 'fromProtocolString<%s>((__bridge CFStringRef)%s).value()' % (self.objc_enum_name_for_non_anonymous_enum(member.type), sub_expression) 447 447 return sub_expression 448 448 if category == ObjCTypeCategory.Object: … … 488 488 sub_expression = 'payload[@"%s"]' % member.member_name 489 489 if member.type.is_anonymous: 490 return 'fromProtocolString<%s>( %s)' % (self.objc_enum_name_for_anonymous_enum_member(declaration, member), sub_expression)490 return 'fromProtocolString<%s>((__bridge CFStringRef)%s)' % (self.objc_enum_name_for_anonymous_enum_member(declaration, member), sub_expression) 491 491 else: 492 return 'fromProtocolString<%s>( %s)' % (self.objc_enum_name_for_non_anonymous_enum(member.type), sub_expression)492 return 'fromProtocolString<%s>((__bridge CFStringRef)%s)' % (self.objc_enum_name_for_non_anonymous_enum(member.type), sub_expression) 493 493 if isinstance(_type, ObjectType): 494 494 objc_class = self.objc_class_for_type(member.type)
Note:
See TracChangeset
for help on using the changeset viewer.