Beispiel #1
0
        internal static Statement Rewrite(Method method)
        {
            var spiller = new AwaitExpressionSpiller(method, My <TypeSystemServices> .Instance);
            var result  = spiller.Visit(method.Body);

            return(result);
        }
Beispiel #2
0
 private void PreprocessMethod()
 {
     if (ContextAnnotations.AwaitInExceptionHandler(_method.Method))
     {
         AsyncExceptionHandlerRewriter.Rewrite(_method.Method);
     }
     AwaitExpressionSpiller.Rewrite(_method.Method);
 }