Beispiel #1
0
 protected bool HasNeitherReturnNorYield(Method node)
 {
     var finder = new ReturnExpressionFinder(node);
     return !(finder.HasReturnStatements || finder.HasYieldStatements);
 }
 bool DontHaveReturnExpressionsNorYield(Method node)
 {
     ReturnExpressionFinder finder = new ReturnExpressionFinder(node);
     return !(finder.HasReturnStatements || finder.HasYieldStatements);
 }