Changeset 175493 in webkit
- Timestamp:
- Nov 3, 2014 3:02:27 PM (9 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r175483 r175493 1 2014-11-03 Joseph Pecoraro <pecoraro@apple.com> 2 3 Web Inspector: Fix RWIProtocol 64-to-32 bit conversion warnings 4 https://bugs.webkit.org/show_bug.cgi?id=138325 5 6 Reviewed by Timothy Hatcher. 7 8 * inspector/InspectorValues.h: 9 Vector's length really is an unsigned, so a static_cast here is fine. 10 11 * inspector/scripts/codegen/generate_objective_c.py: 12 (ObjCGenerator.objc_type_for_raw_name): 13 Use int instead of NSInteger for APIs that eventually map to 14 InspectorObject's setInteger, which takes an int. 15 16 * inspector/scripts/tests/expected/commands-with-async-attribute.json-result: 17 * inspector/scripts/tests/expected/commands-with-optional-call-return-parameters.json-result: 18 * inspector/scripts/tests/expected/events-with-optional-parameters.json-result: 19 * inspector/scripts/tests/expected/generate-domains-with-feature-guards.json-result: 20 * inspector/scripts/tests/expected/type-declaration-object-type.json-result: 21 * inspector/scripts/tests/expected/type-requiring-runtime-casts.json-result: 22 Rebaselined results with the type change. 23 1 24 2014-11-03 Joseph Pecoraro <pecoraro@apple.com> 2 25 -
trunk/Source/JavaScriptCore/inspector/InspectorValues.h
r174094 r175493 263 263 typedef Vector<RefPtr<InspectorValue>>::const_iterator const_iterator; 264 264 265 unsigned length() const { return m_data.size(); }265 unsigned length() const { return static_cast<unsigned>(m_data.size()); } 266 266 267 267 protected: -
trunk/Source/JavaScriptCore/inspector/scripts/codegen/generate_objective_c.py
r175479 r175493 194 194 return 'NSArray *' 195 195 if raw_name is 'integer': 196 return ' NSInteger'196 return 'int' 197 197 if raw_name is 'number': 198 198 return 'double' -
trunk/Source/JavaScriptCore/inspector/scripts/tests/expected/commands-with-async-attribute.json-result
r175479 r175493 1064 1064 }; 1065 1065 1066 id successCallback = ^(NSArray/*<NSString>*/ **columnNames, NSString **notes, double *timestamp, RWIProtocolJSONObject **values, RWIProtocolJSONObject **payload, NSInteger*databaseId, RWIProtocolDatabaseError **sqlError, RWIProtocolDatabasePrimaryColors *screenColor, RWIProtocolDatabaseExecuteSQLSyncOptionalReturnValuesPrintColor *printColor) {1066 id successCallback = ^(NSArray/*<NSString>*/ **columnNames, NSString **notes, double *timestamp, RWIProtocolJSONObject **values, RWIProtocolJSONObject **payload, int *databaseId, RWIProtocolDatabaseError **sqlError, RWIProtocolDatabasePrimaryColors *screenColor, RWIProtocolDatabaseExecuteSQLSyncOptionalReturnValuesPrintColor *printColor) { 1067 1067 RefPtr<InspectorObject> resultObject = InspectorObject::create(); 1068 1068 THROW_EXCEPTION_FOR_BAD_OPTIONAL_PARAMETER(columnNames, @"columnNames"); … … 1092 1092 }; 1093 1093 1094 NSIntegero_in_databaseId = in_databaseId;1094 int o_in_databaseId = in_databaseId; 1095 1095 NSString *o_in_query = in_query; 1096 1096 … … 1104 1104 }; 1105 1105 1106 id successCallback = ^(NSArray/*<NSString>*/ **columnNames, NSString **notes, double *timestamp, RWIProtocolJSONObject **values, RWIProtocolJSONObject **payload, NSInteger*databaseId, RWIProtocolDatabaseError **sqlError, RWIProtocolDatabasePrimaryColors *screenColor, RWIProtocolDatabaseExecuteSQLAsyncOptionalReturnValuesPrintColor *printColor) {1106 id successCallback = ^(NSArray/*<NSString>*/ **columnNames, NSString **notes, double *timestamp, RWIProtocolJSONObject **values, RWIProtocolJSONObject **payload, int *databaseId, RWIProtocolDatabaseError **sqlError, RWIProtocolDatabasePrimaryColors *screenColor, RWIProtocolDatabaseExecuteSQLAsyncOptionalReturnValuesPrintColor *printColor) { 1107 1107 RefPtr<InspectorObject> resultObject = InspectorObject::create(); 1108 1108 THROW_EXCEPTION_FOR_BAD_OPTIONAL_PARAMETER(columnNames, @"columnNames"); … … 1132 1132 }; 1133 1133 1134 NSIntegero_in_databaseId = in_databaseId;1134 int o_in_databaseId = in_databaseId; 1135 1135 NSString *o_in_query = in_query; 1136 1136 … … 1144 1144 }; 1145 1145 1146 id successCallback = ^(NSArray/*<NSString>*/ *columnNames, NSString *notes, double timestamp, RWIProtocolJSONObject *values, RWIProtocolJSONObject *payload, NSIntegerdatabaseId, RWIProtocolDatabaseError *sqlError, RWIProtocolDatabasePrimaryColors screenColor, RWIProtocolDatabaseExecuteSQLSyncPrintColor printColor) {1146 id successCallback = ^(NSArray/*<NSString>*/ *columnNames, NSString *notes, double timestamp, RWIProtocolJSONObject *values, RWIProtocolJSONObject *payload, int databaseId, RWIProtocolDatabaseError *sqlError, RWIProtocolDatabasePrimaryColors screenColor, RWIProtocolDatabaseExecuteSQLSyncPrintColor printColor) { 1147 1147 RefPtr<InspectorObject> resultObject = InspectorObject::create(); 1148 1148 THROW_EXCEPTION_FOR_REQUIRED_PARAMETER(columnNames, @"columnNames"); … … 1163 1163 }; 1164 1164 1165 NSIntegero_in_databaseId = in_databaseId;1165 int o_in_databaseId = in_databaseId; 1166 1166 NSString *o_in_query = in_query; 1167 1167 … … 1175 1175 }; 1176 1176 1177 id successCallback = ^(NSArray/*<NSString>*/ *columnNames, NSString *notes, double timestamp, RWIProtocolJSONObject *values, RWIProtocolJSONObject *payload, NSIntegerdatabaseId, RWIProtocolDatabaseError *sqlError, RWIProtocolDatabasePrimaryColors screenColor, RWIProtocolDatabaseExecuteSQLAsyncPrintColor printColor) {1177 id successCallback = ^(NSArray/*<NSString>*/ *columnNames, NSString *notes, double timestamp, RWIProtocolJSONObject *values, RWIProtocolJSONObject *payload, int databaseId, RWIProtocolDatabaseError *sqlError, RWIProtocolDatabasePrimaryColors screenColor, RWIProtocolDatabaseExecuteSQLAsyncPrintColor printColor) { 1178 1178 RefPtr<InspectorObject> resultObject = InspectorObject::create(); 1179 1179 THROW_EXCEPTION_FOR_REQUIRED_PARAMETER(columnNames, @"columnNames"); … … 1194 1194 }; 1195 1195 1196 NSIntegero_in_databaseId = in_databaseId;1196 int o_in_databaseId = in_databaseId; 1197 1197 NSString *o_in_query = in_query; 1198 1198 … … 1509 1509 1510 1510 @interface RWIProtocolDatabaseError : RWIProtocolJSONObject 1511 - (instancetype)initWithMessage:(NSString *)message code:( NSInteger)code;1511 - (instancetype)initWithMessage:(NSString *)message code:(int)code; 1512 1512 /* required */ @property (nonatomic, copy) NSString *message; 1513 /* required */ @property (nonatomic, assign) NSIntegercode;1513 /* required */ @property (nonatomic, assign) int code; 1514 1514 @end 1515 1515 1516 1516 @protocol RWIProtocolDatabaseDomainHandler <NSObject> 1517 1517 @required 1518 - (void)executeSQLSyncOptionalReturnValuesWithErrorCallback:(void(^)(NSString *error))errorCallback successCallback:(void(^)(NSArray/*<NSString>*/ **columnNames, NSString **notes, double *timestamp, RWIProtocolJSONObject **values, RWIProtocolJSONObject **payload, NSInteger *databaseId, RWIProtocolDatabaseError **sqlError, RWIProtocolDatabasePrimaryColors *screenColor, RWIProtocolDatabaseExecuteSQLSyncOptionalReturnValuesPrintColor *printColor))successCallback databaseId:(NSInteger)databaseId query:(NSString *)query;1519 - (void)executeSQLAsyncOptionalReturnValuesWithErrorCallback:(void(^)(NSString *error))errorCallback successCallback:(void(^)(NSArray/*<NSString>*/ **columnNames, NSString **notes, double *timestamp, RWIProtocolJSONObject **values, RWIProtocolJSONObject **payload, NSInteger *databaseId, RWIProtocolDatabaseError **sqlError, RWIProtocolDatabasePrimaryColors *screenColor, RWIProtocolDatabaseExecuteSQLAsyncOptionalReturnValuesPrintColor *printColor))successCallback databaseId:(NSInteger)databaseId query:(NSString *)query;1520 - (void)executeSQLSyncWithErrorCallback:(void(^)(NSString *error))errorCallback successCallback:(void(^)(NSArray/*<NSString>*/ *columnNames, NSString *notes, double timestamp, RWIProtocolJSONObject *values, RWIProtocolJSONObject *payload, NSInteger databaseId, RWIProtocolDatabaseError *sqlError, RWIProtocolDatabasePrimaryColors screenColor, RWIProtocolDatabaseExecuteSQLSyncPrintColor printColor))successCallback databaseId:(NSInteger)databaseId query:(NSString *)query;1521 - (void)executeSQLAsyncWithErrorCallback:(void(^)(NSString *error))errorCallback successCallback:(void(^)(NSArray/*<NSString>*/ *columnNames, NSString *notes, double timestamp, RWIProtocolJSONObject *values, RWIProtocolJSONObject *payload, NSInteger databaseId, RWIProtocolDatabaseError *sqlError, RWIProtocolDatabasePrimaryColors screenColor, RWIProtocolDatabaseExecuteSQLAsyncPrintColor printColor))successCallback databaseId:(NSInteger)databaseId query:(NSString *)query;1518 - (void)executeSQLSyncOptionalReturnValuesWithErrorCallback:(void(^)(NSString *error))errorCallback successCallback:(void(^)(NSArray/*<NSString>*/ **columnNames, NSString **notes, double *timestamp, RWIProtocolJSONObject **values, RWIProtocolJSONObject **payload, int *databaseId, RWIProtocolDatabaseError **sqlError, RWIProtocolDatabasePrimaryColors *screenColor, RWIProtocolDatabaseExecuteSQLSyncOptionalReturnValuesPrintColor *printColor))successCallback databaseId:(int)databaseId query:(NSString *)query; 1519 - (void)executeSQLAsyncOptionalReturnValuesWithErrorCallback:(void(^)(NSString *error))errorCallback successCallback:(void(^)(NSArray/*<NSString>*/ **columnNames, NSString **notes, double *timestamp, RWIProtocolJSONObject **values, RWIProtocolJSONObject **payload, int *databaseId, RWIProtocolDatabaseError **sqlError, RWIProtocolDatabasePrimaryColors *screenColor, RWIProtocolDatabaseExecuteSQLAsyncOptionalReturnValuesPrintColor *printColor))successCallback databaseId:(int)databaseId query:(NSString *)query; 1520 - (void)executeSQLSyncWithErrorCallback:(void(^)(NSString *error))errorCallback successCallback:(void(^)(NSArray/*<NSString>*/ *columnNames, NSString *notes, double timestamp, RWIProtocolJSONObject *values, RWIProtocolJSONObject *payload, int databaseId, RWIProtocolDatabaseError *sqlError, RWIProtocolDatabasePrimaryColors screenColor, RWIProtocolDatabaseExecuteSQLSyncPrintColor printColor))successCallback databaseId:(int)databaseId query:(NSString *)query; 1521 - (void)executeSQLAsyncWithErrorCallback:(void(^)(NSString *error))errorCallback successCallback:(void(^)(NSArray/*<NSString>*/ *columnNames, NSString *notes, double timestamp, RWIProtocolJSONObject *values, RWIProtocolJSONObject *payload, int databaseId, RWIProtocolDatabaseError *sqlError, RWIProtocolDatabasePrimaryColors screenColor, RWIProtocolDatabaseExecuteSQLAsyncPrintColor printColor))successCallback databaseId:(int)databaseId query:(NSString *)query; 1522 1522 @end 1523 1523 … … 1571 1571 @implementation RWIProtocolDatabaseError 1572 1572 1573 - (instancetype)initWithMessage:(NSString *)message code:( NSInteger)code;1573 - (instancetype)initWithMessage:(NSString *)message code:(int)code; 1574 1574 { 1575 1575 self = [super init]; … … 1595 1595 } 1596 1596 1597 - (void)setCode:( NSInteger)code1597 - (void)setCode:(int)code 1598 1598 { 1599 1599 [super setInteger:code forKey:@"code"]; 1600 1600 } 1601 1601 1602 - ( NSInteger)code1602 - (int)code 1603 1603 { 1604 1604 return [super integerForKey:@"code"]; -
trunk/Source/JavaScriptCore/inspector/scripts/tests/expected/commands-with-optional-call-return-parameters.json-result
r175479 r175493 953 953 }; 954 954 955 id successCallback = ^(NSArray/*<NSString>*/ **columnNames, NSString **notes, double *timestamp, RWIProtocolJSONObject **values, RWIProtocolJSONObject **payload, NSInteger*databaseId, RWIProtocolDatabaseError **sqlError, RWIProtocolDatabasePrimaryColors *screenColor, RWIProtocolDatabaseExecuteAllOptionalParametersPrintColor *printColor) {955 id successCallback = ^(NSArray/*<NSString>*/ **columnNames, NSString **notes, double *timestamp, RWIProtocolJSONObject **values, RWIProtocolJSONObject **payload, int *databaseId, RWIProtocolDatabaseError **sqlError, RWIProtocolDatabasePrimaryColors *screenColor, RWIProtocolDatabaseExecuteAllOptionalParametersPrintColor *printColor) { 956 956 RefPtr<InspectorObject> resultObject = InspectorObject::create(); 957 957 THROW_EXCEPTION_FOR_BAD_OPTIONAL_PARAMETER(columnNames, @"columnNames"); … … 996 996 if (in_payload) 997 997 o_in_payload = [[[RWIProtocolJSONObject alloc] initWithInspectorObject:*in_payload] autorelease]; 998 NSIntegero_in_databaseId;998 int o_in_databaseId; 999 999 if (in_databaseId) 1000 1000 o_in_databaseId = *in_databaseId; … … 1018 1018 }; 1019 1019 1020 id successCallback = ^(NSArray/*<NSString>*/ *columnNames, NSString *notes, double timestamp, RWIProtocolJSONObject *values, RWIProtocolJSONObject *payload, NSIntegerdatabaseId, RWIProtocolDatabaseError *sqlError, RWIProtocolDatabasePrimaryColors screenColor, RWIProtocolDatabaseExecuteNoOptionalParametersPrintColor printColor) {1020 id successCallback = ^(NSArray/*<NSString>*/ *columnNames, NSString *notes, double timestamp, RWIProtocolJSONObject *values, RWIProtocolJSONObject *payload, int databaseId, RWIProtocolDatabaseError *sqlError, RWIProtocolDatabasePrimaryColors screenColor, RWIProtocolDatabaseExecuteNoOptionalParametersPrintColor printColor) { 1021 1021 RefPtr<InspectorObject> resultObject = InspectorObject::create(); 1022 1022 THROW_EXCEPTION_FOR_REQUIRED_PARAMETER(columnNames, @"columnNames"); … … 1042 1042 RWIProtocolJSONObject *o_in_values = [[[RWIProtocolJSONObject alloc] initWithInspectorObject:in_values] autorelease]; 1043 1043 RWIProtocolJSONObject *o_in_payload = [[[RWIProtocolJSONObject alloc] initWithInspectorObject:in_payload] autorelease]; 1044 NSIntegero_in_databaseId = in_databaseId;1044 int o_in_databaseId = in_databaseId; 1045 1045 RWIProtocolDatabaseError *o_in_sqlError = [[[RWIProtocolDatabaseError alloc] initWithInspectorObject:in_sqlError] autorelease]; 1046 1046 RWIProtocolDatabasePrimaryColors o_in_screenColor = fromProtocolString<RWIProtocolDatabasePrimaryColors>(in_screenColor); … … 1359 1359 1360 1360 @interface RWIProtocolDatabaseError : RWIProtocolJSONObject 1361 - (instancetype)initWithMessage:(NSString *)message code:( NSInteger)code;1361 - (instancetype)initWithMessage:(NSString *)message code:(int)code; 1362 1362 /* required */ @property (nonatomic, copy) NSString *message; 1363 /* required */ @property (nonatomic, assign) NSIntegercode;1363 /* required */ @property (nonatomic, assign) int code; 1364 1364 @end 1365 1365 1366 1366 @protocol RWIProtocolDatabaseDomainHandler <NSObject> 1367 1367 @required 1368 - (void)executeAllOptionalParametersWithErrorCallback:(void(^)(NSString *error))errorCallback successCallback:(void(^)(NSArray/*<NSString>*/ **columnNames, NSString **notes, double *timestamp, RWIProtocolJSONObject **values, RWIProtocolJSONObject **payload, NSInteger *databaseId, RWIProtocolDatabaseError **sqlError, RWIProtocolDatabasePrimaryColors *screenColor, RWIProtocolDatabaseExecuteAllOptionalParametersPrintColor *printColor))successCallback columnNames:(NSArray/*<NSString>*/ **)columnNames notes:(NSString **)notes timestamp:(double *)timestamp values:(RWIProtocolJSONObject **)values payload:(RWIProtocolJSONObject **)payload databaseId:(NSInteger*)databaseId sqlError:(RWIProtocolDatabaseError **)sqlError screenColor:(RWIProtocolDatabasePrimaryColors *)screenColor printColor:(RWIProtocolDatabaseExecuteAllOptionalParametersPrintColor *)printColor;1369 - (void)executeNoOptionalParametersWithErrorCallback:(void(^)(NSString *error))errorCallback successCallback:(void(^)(NSArray/*<NSString>*/ *columnNames, NSString *notes, double timestamp, RWIProtocolJSONObject *values, RWIProtocolJSONObject *payload, NSInteger databaseId, RWIProtocolDatabaseError *sqlError, RWIProtocolDatabasePrimaryColors screenColor, RWIProtocolDatabaseExecuteNoOptionalParametersPrintColor printColor))successCallback columnNames:(NSArray/*<NSString>*/ *)columnNames notes:(NSString *)notes timestamp:(double)timestamp values:(RWIProtocolJSONObject *)values payload:(RWIProtocolJSONObject *)payload databaseId:(NSInteger)databaseId sqlError:(RWIProtocolDatabaseError *)sqlError screenColor:(RWIProtocolDatabasePrimaryColors)screenColor printColor:(RWIProtocolDatabaseExecuteNoOptionalParametersPrintColor)printColor;1368 - (void)executeAllOptionalParametersWithErrorCallback:(void(^)(NSString *error))errorCallback successCallback:(void(^)(NSArray/*<NSString>*/ **columnNames, NSString **notes, double *timestamp, RWIProtocolJSONObject **values, RWIProtocolJSONObject **payload, int *databaseId, RWIProtocolDatabaseError **sqlError, RWIProtocolDatabasePrimaryColors *screenColor, RWIProtocolDatabaseExecuteAllOptionalParametersPrintColor *printColor))successCallback columnNames:(NSArray/*<NSString>*/ **)columnNames notes:(NSString **)notes timestamp:(double *)timestamp values:(RWIProtocolJSONObject **)values payload:(RWIProtocolJSONObject **)payload databaseId:(int *)databaseId sqlError:(RWIProtocolDatabaseError **)sqlError screenColor:(RWIProtocolDatabasePrimaryColors *)screenColor printColor:(RWIProtocolDatabaseExecuteAllOptionalParametersPrintColor *)printColor; 1369 - (void)executeNoOptionalParametersWithErrorCallback:(void(^)(NSString *error))errorCallback successCallback:(void(^)(NSArray/*<NSString>*/ *columnNames, NSString *notes, double timestamp, RWIProtocolJSONObject *values, RWIProtocolJSONObject *payload, int databaseId, RWIProtocolDatabaseError *sqlError, RWIProtocolDatabasePrimaryColors screenColor, RWIProtocolDatabaseExecuteNoOptionalParametersPrintColor printColor))successCallback columnNames:(NSArray/*<NSString>*/ *)columnNames notes:(NSString *)notes timestamp:(double)timestamp values:(RWIProtocolJSONObject *)values payload:(RWIProtocolJSONObject *)payload databaseId:(int)databaseId sqlError:(RWIProtocolDatabaseError *)sqlError screenColor:(RWIProtocolDatabasePrimaryColors)screenColor printColor:(RWIProtocolDatabaseExecuteNoOptionalParametersPrintColor)printColor; 1370 1370 @end 1371 1371 … … 1419 1419 @implementation RWIProtocolDatabaseError 1420 1420 1421 - (instancetype)initWithMessage:(NSString *)message code:( NSInteger)code;1421 - (instancetype)initWithMessage:(NSString *)message code:(int)code; 1422 1422 { 1423 1423 self = [super init]; … … 1443 1443 } 1444 1444 1445 - (void)setCode:( NSInteger)code1445 - (void)setCode:(int)code 1446 1446 { 1447 1447 [super setInteger:code forKey:@"code"]; 1448 1448 } 1449 1449 1450 - ( NSInteger)code1450 - (int)code 1451 1451 { 1452 1452 return [super integerForKey:@"code"]; -
trunk/Source/JavaScriptCore/inspector/scripts/tests/expected/events-with-optional-parameters.json-result
r175479 r175493 987 987 988 988 @interface RWIProtocolDatabaseError : RWIProtocolJSONObject 989 - (instancetype)initWithMessage:(NSString *)message code:( NSInteger)code;989 - (instancetype)initWithMessage:(NSString *)message code:(int)code; 990 990 /* required */ @property (nonatomic, copy) NSString *message; 991 /* required */ @property (nonatomic, assign) NSIntegercode;991 /* required */ @property (nonatomic, assign) int code; 992 992 @end 993 993 … … 1046 1046 @implementation RWIProtocolDatabaseError 1047 1047 1048 - (instancetype)initWithMessage:(NSString *)message code:( NSInteger)code;1048 - (instancetype)initWithMessage:(NSString *)message code:(int)code; 1049 1049 { 1050 1050 self = [super init]; … … 1070 1070 } 1071 1071 1072 - (void)setCode:( NSInteger)code1072 - (void)setCode:(int)code 1073 1073 { 1074 1074 [super setInteger:code forKey:@"code"]; 1075 1075 } 1076 1076 1077 - ( NSInteger)code1077 - (int)code 1078 1078 { 1079 1079 return [super integerForKey:@"code"]; -
trunk/Source/JavaScriptCore/inspector/scripts/tests/expected/generate-domains-with-feature-guards.json-result
r175479 r175493 1042 1042 1043 1043 @interface RWIProtocolNetwork2NetworkError : RWIProtocolJSONObject 1044 - (instancetype)initWithMessage:(NSString *)message code:( NSInteger)code;1044 - (instancetype)initWithMessage:(NSString *)message code:(int)code; 1045 1045 /* required */ @property (nonatomic, copy) NSString *message; 1046 /* required */ @property (nonatomic, assign) NSIntegercode;1046 /* required */ @property (nonatomic, assign) int code; 1047 1047 @end 1048 1048 … … 1105 1105 @implementation RWIProtocolNetwork2NetworkError 1106 1106 1107 - (instancetype)initWithMessage:(NSString *)message code:( NSInteger)code;1107 - (instancetype)initWithMessage:(NSString *)message code:(int)code; 1108 1108 { 1109 1109 self = [super init]; … … 1129 1129 } 1130 1130 1131 - (void)setCode:( NSInteger)code1131 - (void)setCode:(int)code 1132 1132 { 1133 1133 [super setInteger:code forKey:@"code"]; 1134 1134 } 1135 1135 1136 - ( NSInteger)code1136 - (int)code 1137 1137 { 1138 1138 return [super integerForKey:@"code"]; -
trunk/Source/JavaScriptCore/inspector/scripts/tests/expected/type-declaration-object-type.json-result
r175479 r175493 1235 1235 1236 1236 @interface RWIProtocolDatabaseError : RWIProtocolJSONObject 1237 - (instancetype)initWithMessage:(NSString *)message code:( NSInteger)code;1237 - (instancetype)initWithMessage:(NSString *)message code:(int)code; 1238 1238 /* required */ @property (nonatomic, copy) NSString *message; 1239 /* required */ @property (nonatomic, assign) NSIntegercode;1239 /* required */ @property (nonatomic, assign) int code; 1240 1240 @end 1241 1241 … … 1332 1332 @implementation RWIProtocolDatabaseError 1333 1333 1334 - (instancetype)initWithMessage:(NSString *)message code:( NSInteger)code;1334 - (instancetype)initWithMessage:(NSString *)message code:(int)code; 1335 1335 { 1336 1336 self = [super init]; … … 1356 1356 } 1357 1357 1358 - (void)setCode:( NSInteger)code1358 - (void)setCode:(int)code 1359 1359 { 1360 1360 [super setInteger:code forKey:@"code"]; 1361 1361 } 1362 1362 1363 - ( NSInteger)code1363 - (int)code 1364 1364 { 1365 1365 return [super integerForKey:@"code"]; -
trunk/Source/JavaScriptCore/inspector/scripts/tests/expected/type-requiring-runtime-casts.json-result
r175479 r175493 1193 1193 1194 1194 @interface RWIProtocolTestTypeNeedingCast : RWIProtocolJSONObject 1195 - (instancetype)initWithString:(NSString *)string number:( NSInteger)number animals:(RWIProtocolTestCastedAnimals)animals identifier:(NSInteger)identifier tree:(RWIProtocolTestRecursiveObject1 *)tree;1195 - (instancetype)initWithString:(NSString *)string number:(int)number animals:(RWIProtocolTestCastedAnimals)animals identifier:(int)identifier tree:(RWIProtocolTestRecursiveObject1 *)tree; 1196 1196 /* required */ @property (nonatomic, copy) NSString *string; 1197 /* required */ @property (nonatomic, assign) NSIntegernumber;1197 /* required */ @property (nonatomic, assign) int number; 1198 1198 /* required */ @property (nonatomic, assign) RWIProtocolTestCastedAnimals animals; 1199 /* required */ @property (nonatomic, assign) NSIntegeridentifier;1199 /* required */ @property (nonatomic, assign) int identifier; 1200 1200 /* required */ @property (nonatomic, retain) RWIProtocolTestRecursiveObject1 *tree; 1201 1201 @end … … 1260 1260 @implementation RWIProtocolTestTypeNeedingCast 1261 1261 1262 - (instancetype)initWithString:(NSString *)string number:( NSInteger)number animals:(RWIProtocolTestCastedAnimals)animals identifier:(NSInteger)identifier tree:(RWIProtocolTestRecursiveObject1 *)tree;1262 - (instancetype)initWithString:(NSString *)string number:(int)number animals:(RWIProtocolTestCastedAnimals)animals identifier:(int)identifier tree:(RWIProtocolTestRecursiveObject1 *)tree; 1263 1263 { 1264 1264 self = [super init]; … … 1288 1288 } 1289 1289 1290 - (void)setNumber:( NSInteger)number1290 - (void)setNumber:(int)number 1291 1291 { 1292 1292 [super setInteger:number forKey:@"number"]; 1293 1293 } 1294 1294 1295 - ( NSInteger)number1295 - (int)number 1296 1296 { 1297 1297 return [super integerForKey:@"number"]; … … 1308 1308 } 1309 1309 1310 - (void)setIdentifier:( NSInteger)identifier1310 - (void)setIdentifier:(int)identifier 1311 1311 { 1312 1312 [super setInteger:identifier forKey:@"id"]; 1313 1313 } 1314 1314 1315 - ( NSInteger)identifier1315 - (int)identifier 1316 1316 { 1317 1317 return [super integerForKey:@"id"];
Note: See TracChangeset
for help on using the changeset viewer.