Closed sidepelican closed 2 years ago
Thanks for adding this support. Please address the test failures.
Copied:
/Users/runner/work/mockolo/mockolo/Tests/TestFuncs/TestFuncAsync/FuncAsyncTests.swift:6:9: error: call can throw but is not marked with 'try' 98 super.setUpWithError() 99 ^~~~~~~~~~~~~~~~~~~~~~ 100 /Users/runner/work/mockolo/mockolo/Tests/TestFuncs/TestFuncAsync/FuncAsyncTests.swift:6:9: note: did you mean to use 'try'? 101 super.setUpWithError() 102 ^ 103 try 104 /Users/runner/work/mockolo/mockolo/Tests/TestFuncs/TestFuncAsync/FuncAsyncTests.swift:6:9: note: did you mean to handle error as optional value? 105 super.setUpWithError() 106 ^ 107 try? 108 /Users/runner/work/mockolo/mockolo/Tests/TestFuncs/TestFuncAsync/FuncAsyncTests.swift:6:9: note: did you mean to disable error propagation? 109 super.setUpWithError() 110 ^ 111 try! 112 error: fatalError
@EspressoCup Thanks for the review! I fixed the careless mistake.
Add support for async function requirement.
reasync
keyword is considered in SwiftSyntax, but it is not implemented in swift5.5, so ignoring it.Example:
NOTE: such new swift5.5 feaatures are not in target of this PR
get async
get throws
init() async
(because SwiftSyntax does not support yet)