[Swift4] Add throw to reserved words (#6952)

* * Added `throw` to Swift4 Reserved words.

* * Regenerating Swift4 Petstore project
This commit is contained in:
Atanas Bozhkov
2017-11-15 13:45:30 +00:00
committed by William Cheng
parent 4e482eef17
commit 970de01bdf
4 changed files with 57 additions and 3 deletions

View File

@@ -150,7 +150,7 @@ public class Swift4Codegen extends DefaultCodegen implements CodegenConfig {
"FILE", "mutating", "protocol", "switch", "FUNCTION", "none", "public",
"where", "LINE", "nonmutating", "static", "while", "optional", "struct",
"override", "subscript", "postfix", "typealias", "precedence", "var",
"prefix", "Protocol", "required", "right", "set", "Type", "unowned", "weak",
"prefix", "Protocol", "required", "right", "set", "throw", "Type", "unowned", "weak",
"Data", "Codable", "Encodable", "Decodable")
);