internal static Statement Rewrite(Method method) { var spiller = new AwaitExpressionSpiller(method, My <TypeSystemServices> .Instance); var result = spiller.Visit(method.Body); return(result); }
private void PreprocessMethod() { if (ContextAnnotations.AwaitInExceptionHandler(_method.Method)) { AsyncExceptionHandlerRewriter.Rewrite(_method.Method); } AwaitExpressionSpiller.Rewrite(_method.Method); }