convertFunctionFromAsyncToSync abstract method
void
convertFunctionFromAsyncToSync({
- required FunctionBody body,
- required TypeSystem typeSystem,
- required TypeProvider typeProvider,
Creates one or more edits that will convert the given function body
from
being asynchronous to be synchronous. This includes removing the async
modifier to the body as well as potentially replacing the return type of
the function to the Future
type argument.
There is currently a limitation in that the function body must not be a generator.
Throws an ArgumentError if the function body is not both synchronous and a non-generator.
Implementation
void convertFunctionFromAsyncToSync({
required FunctionBody body,
required TypeSystem typeSystem,
required TypeProvider typeProvider,
});