Skip to content

Commit

Permalink
int不能作数组类型声明
Browse files Browse the repository at this point in the history
  • Loading branch information
walkerwzy committed Dec 28, 2017
1 parent fcf725c commit 0b3f272
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ function assumeVarType(str, isArray, model) {
else if(['bool', 'boolean'].includes(l_str)) model_type = "BOOL";
else if(['int', 'integer', 'long'].findIndex(v=>(new RegExp(v,'ig')).test(l_str)) >= 0) model_type = "NSInteger";
else if(l_str == strlist) model_type = "NSArray<NSString *> *"
else if(l_str == intlist) model_type = "NSArray<NSInteger> *";
else if(l_str == intlist) model_type = "NSArray<NSNumber *> *";
else model_type = model + " *";
var_type = isArray ? "NSArray<"+model_type+"> *" : model_type;;
model_type = model_type.replace(' *','');
Expand Down

0 comments on commit 0b3f272

Please sign in to comment.