@@ -89,19 +89,24 @@ public ObjcClientCodegen() {
89
89
// ref: http://www.tutorialspoint.com/objective_c/objective_c_basic_syntax.htm
90
90
reservedWords = new HashSet <String >(
91
91
Arrays .asList (
92
- "auto" , "else" , "long" , "switch" ,
93
- "break" , "enum" , "register" , "typedef" ,
94
- "case" , "extern" , "return" , "union" ,
95
- "char" , "float" , "short" , "unsigned" ,
96
- "const" , "for" , "signed" , "void" ,
97
- "continue" , "goto" , "sizeof" , "volatile" ,
98
- "default" , "if" , "id" , "static" , "while" ,
99
- "do" , "int" , "struct" , "_Packed" ,
100
- "double" , "protocol" , "interface" , "implementation" ,
101
- "NSObject" , "NSInteger" , "NSNumber" , "CGFloat" ,
102
- "property" , "nonatomic" , "retain" , "strong" ,
103
- "weak" , "unsafe_unretained" , "readwrite" , "readonly" ,
104
- "description"
92
+ // local variable names in API methods (endpoints)
93
+ "resourcePath" , "pathParams" , "queryParams" , "headerParams" ,
94
+ "responseContentType" , "requestContentType" , "authSettings" ,
95
+ "formParams" , "files" , "bodyParam" ,
96
+ // objc reserved words
97
+ "auto" , "else" , "long" , "switch" ,
98
+ "break" , "enum" , "register" , "typedef" ,
99
+ "case" , "extern" , "return" , "union" ,
100
+ "char" , "float" , "short" , "unsigned" ,
101
+ "const" , "for" , "signed" , "void" ,
102
+ "continue" , "goto" , "sizeof" , "volatile" ,
103
+ "default" , "if" , "id" , "static" , "while" ,
104
+ "do" , "int" , "struct" , "_Packed" ,
105
+ "double" , "protocol" , "interface" , "implementation" ,
106
+ "NSObject" , "NSInteger" , "NSNumber" , "CGFloat" ,
107
+ "property" , "nonatomic" , "retain" , "strong" ,
108
+ "weak" , "unsafe_unretained" , "readwrite" , "readonly" ,
109
+ "description"
105
110
));
106
111
107
112
importMapping = new HashMap <String , String >();
0 commit comments