Changeset 209232 in webkit


Ignore:
Timestamp:
Dec 1, 2016 10:08:30 PM (7 years ago)
Author:
BJ Burg
Message:

Remote Inspector: fix weird typo in generated ObjC protocol type initializer implementations
https://bugs.webkit.org/show_bug.cgi?id=165295
<rdar://problem/29427778>

Reviewed by Joseph Pecoraro.

Remove a stray semicolon appended after custom initializer signatures.
This is a syntax error when building with less lenient compiler warnings.

  • inspector/scripts/codegen/generate_objc_protocol_types_implementation.py:

(ObjCProtocolTypesImplementationGenerator._generate_init_method_for_required_members):

  • inspector/scripts/tests/expected/commands-with-async-attribute.json-result:
  • inspector/scripts/tests/expected/commands-with-optional-call-return-parameters.json-result:
  • inspector/scripts/tests/expected/events-with-optional-parameters.json-result:
  • inspector/scripts/tests/expected/generate-domains-with-feature-guards.json-result:
  • inspector/scripts/tests/expected/shadowed-optional-type-setters.json-result:
  • inspector/scripts/tests/expected/type-declaration-object-type.json-result:
  • inspector/scripts/tests/expected/type-requiring-runtime-casts.json-result:
Location:
trunk/Source/JavaScriptCore
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r209229 r209232  
     12016-12-01  Brian Burg  <bburg@apple.com>
     2
     3        Remote Inspector: fix weird typo in generated ObjC protocol type initializer implementations
     4        https://bugs.webkit.org/show_bug.cgi?id=165295
     5        <rdar://problem/29427778>
     6
     7        Reviewed by Joseph Pecoraro.
     8
     9        Remove a stray semicolon appended after custom initializer signatures.
     10        This is a syntax error when building with less lenient compiler warnings.
     11
     12        * inspector/scripts/codegen/generate_objc_protocol_types_implementation.py:
     13        (ObjCProtocolTypesImplementationGenerator._generate_init_method_for_required_members):
     14        * inspector/scripts/tests/expected/commands-with-async-attribute.json-result:
     15        * inspector/scripts/tests/expected/commands-with-optional-call-return-parameters.json-result:
     16        * inspector/scripts/tests/expected/events-with-optional-parameters.json-result:
     17        * inspector/scripts/tests/expected/generate-domains-with-feature-guards.json-result:
     18        * inspector/scripts/tests/expected/shadowed-optional-type-setters.json-result:
     19        * inspector/scripts/tests/expected/type-declaration-object-type.json-result:
     20        * inspector/scripts/tests/expected/type-requiring-runtime-casts.json-result:
     21
    1222016-12-01  Saam Barati  <sbarati@apple.com>
    223
  • trunk/Source/JavaScriptCore/inspector/scripts/codegen/generate_objc_protocol_types_implementation.py

    r198077 r209232  
    148148        pairs[0] = ucfirst(pairs[0])
    149149        lines = []
    150         lines.append('- (instancetype)initWith%s;' % ' '.join(pairs))
     150        lines.append('- (instancetype)initWith%s' % ' '.join(pairs))
    151151        lines.append('{')
    152152        lines.append('    if (!(self = [super init]))')
  • trunk/Source/JavaScriptCore/inspector/scripts/tests/expected/commands-with-async-attribute.json-result

    r209222 r209232  
    17161716}
    17171717
    1718 - (instancetype)initWithMessage:(NSString *)message code:(int)code;
     1718- (instancetype)initWithMessage:(NSString *)message code:(int)code
    17191719{
    17201720    if (!(self = [super init]))
  • trunk/Source/JavaScriptCore/inspector/scripts/tests/expected/commands-with-optional-call-return-parameters.json-result

    r209222 r209232  
    15711571}
    15721572
    1573 - (instancetype)initWithMessage:(NSString *)message code:(int)code;
     1573- (instancetype)initWithMessage:(NSString *)message code:(int)code
    15741574{
    15751575    if (!(self = [super init]))
  • trunk/Source/JavaScriptCore/inspector/scripts/tests/expected/events-with-optional-parameters.json-result

    r209222 r209232  
    11451145}
    11461146
    1147 - (instancetype)initWithMessage:(NSString *)message code:(int)code;
     1147- (instancetype)initWithMessage:(NSString *)message code:(int)code
    11481148{
    11491149    if (!(self = [super init]))
  • trunk/Source/JavaScriptCore/inspector/scripts/tests/expected/generate-domains-with-feature-guards.json-result

    r209222 r209232  
    11911191}
    11921192
    1193 - (instancetype)initWithMessage:(NSString *)message code:(int)code;
     1193- (instancetype)initWithMessage:(NSString *)message code:(int)code
    11941194{
    11951195    if (!(self = [super init]))
  • trunk/Source/JavaScriptCore/inspector/scripts/tests/expected/shadowed-optional-type-setters.json-result

    r209222 r209232  
    10481048}
    10491049
    1050 - (instancetype)initWithType:(TestProtocolRuntimeKeyPathType)type;
     1050- (instancetype)initWithType:(TestProtocolRuntimeKeyPathType)type
    10511051{
    10521052    if (!(self = [super init]))
  • trunk/Source/JavaScriptCore/inspector/scripts/tests/expected/type-declaration-object-type.json-result

    r209222 r209232  
    14741474}
    14751475
    1476 - (instancetype)initWithMessage:(NSString *)message code:(int)code;
     1476- (instancetype)initWithMessage:(NSString *)message code:(int)code
    14771477{
    14781478    if (!(self = [super init]))
     
    16511651}
    16521652
    1653 - (instancetype)initWithColumnNames:(NSArray/*<NSString>*/ *)columnNames notes:(NSString *)notes timestamp:(double)timestamp values:(RWIProtocolJSONObject *)values payload:(RWIProtocolJSONObject *)payload error:(TestProtocolDatabaseError *)error errorList:(NSArray/*<TestProtocolDatabaseError>*/ *)errorList;
     1653- (instancetype)initWithColumnNames:(NSArray/*<NSString>*/ *)columnNames notes:(NSString *)notes timestamp:(double)timestamp values:(RWIProtocolJSONObject *)values payload:(RWIProtocolJSONObject *)payload error:(TestProtocolDatabaseError *)error errorList:(NSArray/*<TestProtocolDatabaseError>*/ *)errorList
    16541654{
    16551655    if (!(self = [super init]))
     
    17801780}
    17811781
    1782 - (instancetype)initWithInteger:(NSString *)integer array:(NSString *)array string:(NSString *)string value:(NSString *)value object:(NSString *)object;
     1782- (instancetype)initWithInteger:(NSString *)integer array:(NSString *)array string:(NSString *)string value:(NSString *)value object:(NSString *)object
    17831783{
    17841784    if (!(self = [super init]))
     
    19071907}
    19081908
    1909 - (instancetype)initWithColumnNames:(NSArray/*<NSString>*/ *)columnNames notes:(NSString *)notes timestamp:(double)timestamp values:(RWIProtocolJSONObject *)values payload:(RWIProtocolJSONObject *)payload error:(TestProtocolDatabaseError *)error;
     1909- (instancetype)initWithColumnNames:(NSArray/*<NSString>*/ *)columnNames notes:(NSString *)notes timestamp:(double)timestamp values:(RWIProtocolJSONObject *)values payload:(RWIProtocolJSONObject *)payload error:(TestProtocolDatabaseError *)error
    19101910{
    19111911    if (!(self = [super init]))
  • trunk/Source/JavaScriptCore/inspector/scripts/tests/expected/type-requiring-runtime-casts.json-result

    r209222 r209232  
    14541454}
    14551455
    1456 - (instancetype)initWithString:(NSString *)string number:(int)number animals:(TestProtocolTestCastedAnimals)animals identifier:(int)identifier tree:(TestProtocolTestRecursiveObject1 *)tree;
     1456- (instancetype)initWithString:(NSString *)string number:(int)number animals:(TestProtocolTestCastedAnimals)animals identifier:(int)identifier tree:(TestProtocolTestRecursiveObject1 *)tree
    14571457{
    14581458    if (!(self = [super init]))
Note: See TracChangeset for help on using the changeset viewer.