Ejemplo n.º 1
0
 private BlockSyntax RewriteFunctionBody(BlockSyntax body)
 {
     if (_methodResult.Faulted)
     {
         return(body);
     }
     if (_methodResult.Symbol.ReturnsVoid && body.IsReturnStatementRequired())
     {
         body = AddReturnStatement(body);
     }
     return(_methodResult.WrapInTryCatch ? WrapInsideTryCatch(body, true) : body);
 }