You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Sungkeun Cho
928137fb34
[frontend] Add translation of arrayWithObjects:count:
...
Summary:
This diff adds translation of `arrayWithObjects:count:`. In the previous implementation it was
translated as if it was `arrayWithObjects:`, but their function parameters are different.
In this diff, it translates an array literal `NSArray* a = @ [ 2, 3 ];` to
```
n$1=NSNumber.numberWithInt:(2:int)
n$2=NSNumber.numberWithInt:(3:int)
temp[0]:objc_object*=n$1
temp[1]:objc_object*=n$2
n$3=NSArray.arrayWithObjects:count:(temp:objc_object* const [2*8],2:int)
a:NSArray*=n$3
```
where `temp` is an additional local variable declared as array.
See,
https://developer.apple.com/documentation/foundation/nsarray/1460145-arraywithobjects
https://developer.apple.com/documentation/foundation/nsarray/1460096-arraywithobjects?language=objc
Reviewed By: jvillard
Differential Revision: D22631305
fbshipit-source-id: 5be0a55d4
4 years ago
..
BoxedNumberExample.m
[biabd] rename test directories from {biabduction,errors,infer} to {biabduction}
5 years ago
Fraction.m
[biabd] rename test directories from {biabduction,errors,infer} to {biabduction}
5 years ago
NPD_core_foundation.h
[biabd] rename test directories from {biabduction,errors,infer} to {biabduction}
5 years ago
NPD_core_foundation.m
[biabd] rename test directories from {biabduction,errors,infer} to {biabduction}
5 years ago
No_null_from_array.m
[biabd] rename test directories from {biabduction,errors,infer} to {biabduction}
5 years ago
Npe_self_annotation.m
[biabd] rename test directories from {biabduction,errors,infer} to {biabduction}
5 years ago
Npe_with_equal_names.m
[biabd] rename test directories from {biabduction,errors,infer} to {biabduction}
5 years ago
Nsstring_length_no_npe.m
[biabd] rename test directories from {biabduction,errors,infer} to {biabduction}
5 years ago
Nsstring_nil_args.m
[biabd] rename test directories from {biabduction,errors,infer} to {biabduction}
5 years ago
ObjCMethodCallInCondition.m
[biabd] rename test directories from {biabduction,errors,infer} to {biabduction}
5 years ago
UpdateDict.m
[biabd] rename test directories from {biabduction,errors,infer} to {biabduction}
5 years ago
WeakCapturedVarsNPE.m
[biabd] rename test directories from {biabduction,errors,infer} to {biabduction}
5 years ago
block.m
[biabd] rename test directories from {biabduction,errors,infer} to {biabduction}
5 years ago
blockenum.m
[biabd] rename test directories from {biabduction,errors,infer} to {biabduction}
5 years ago
dynamic_dispatch.m
[biabd] rename test directories from {biabduction,errors,infer} to {biabduction}
5 years ago
ivar_blocks.m
[biabd] rename test directories from {biabduction,errors,infer} to {biabduction}
5 years ago
nil_in_array_literal.m
[frontend] Add translation of arrayWithObjects:count:
4 years ago
nil_in_dictionary_literal.m
[biabd] rename test directories from {biabduction,errors,infer} to {biabduction}
5 years ago
nil_param.m
[biabd] rename test directories from {biabduction,errors,infer} to {biabduction}
5 years ago
npe_conditional.m
[biabd] rename test directories from {biabduction,errors,infer} to {biabduction}
5 years ago
npe_self.m
[biabd] rename test directories from {biabduction,errors,infer} to {biabduction}
5 years ago
null_returned_by_method.m
[biabd] rename test directories from {biabduction,errors,infer} to {biabduction}
5 years ago
nullable.m
[biabd] rename test directories from {biabduction,errors,infer} to {biabduction}
5 years ago
skip_method_with_nil_object.m
[biabd] rename test directories from {biabduction,errors,infer} to {biabduction}
5 years ago