Changeset 273917 in webkit
- Timestamp:
- Mar 4, 2021, 2:05:53 PM (4 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r273906 r273917 1 2021-03-04 Alex Christensen <achristensen@webkit.org> 2 3 Unreviewed, reverting r273906. 4 5 Broke internal build 6 7 Reverted changeset: 8 9 "[Cocoa] REGRESSION(r272752): fix some internal builds that 10 use WTFString::WTFString(NSString *)" 11 https://bugs.webkit.org/show_bug.cgi?id=222610 12 https://commits.webkit.org/r273906 13 1 14 2021-03-04 Alex Christensen <achristensen@webkit.org> 2 15 -
trunk/Source/JavaScriptCore/inspector/scripts/codegen/objc_generator.py
r273906 r273917 391 391 if isinstance(member.type, EnumType): 392 392 if member.type.is_anonymous: 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)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) 395 395 return self.objc_protocol_import_expression_for_variable(member.type, name) 396 396 397 397 def objc_protocol_import_expression_for_parameter(self, name, domain, event_or_command_name, parameter): 398 398 if isinstance(parameter.type, EnumType): 399 return 'fromProtocolString<%s>( (__bridge CFStringRef)%s)' % (self.objc_enum_name_for_non_anonymous_enum(parameter.type), name)399 return 'fromProtocolString<%s>(%s)' % (self.objc_enum_name_for_non_anonymous_enum(parameter.type), name) 400 400 return self.objc_protocol_import_expression_for_variable(parameter.type, name) 401 401 … … 443 443 if isinstance(member.type, EnumType): 444 444 if member.type.is_anonymous: 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)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) 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>( (__bridge CFStringRef)%s)' % (self.objc_enum_name_for_anonymous_enum_member(declaration, member), sub_expression)490 return 'fromProtocolString<%s>(%s)' % (self.objc_enum_name_for_anonymous_enum_member(declaration, member), sub_expression) 491 491 else: 492 return 'fromProtocolString<%s>( (__bridge CFStringRef)%s)' % (self.objc_enum_name_for_non_anonymous_enum(member.type), sub_expression)492 return 'fromProtocolString<%s>(%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.