Mix.Tasks.Nativegen.Swift
Handle swift code utilities
Summary
arg(atom, variable, type) | |
default_args(params) | |
generate_params(params) | |
parse_swift(body) | Parse swift repository code to {imports, jsom_models, repo_def, methods, repo_end} |
swift_var_type(params) | Parse parameter to variable and Swift’s type |
to_swift_method(atom1) | Swift HTTP method type |
to_swift_type(type, sub_type \\ "") | Parse parameter to Swift’s type |
while_imports(lines) | |
while_json_models(lines) | |
while_methods(lines) | |
while_repo_def(lines) | |
wrap_array(param_str) |
Functions
Parse swift repository code to {imports, jsom_models, repo_def, methods, repo_end}
Parse parameter to variable and Swift’s type
Swift HTTP method type
Parse parameter to Swift’s type