コード例 #1
0
 public static IEnumerable <SolutionStyleError> Report(SyntaxTree tree)
 {
     return(tree.GetRoot().DescendantNodes()
            .Where(NeedToValidateNonBracesTokens)
            .Select(x => SyntaxNodeOrToken.Create(tree, x, true))
            .SelectMany(CheckNonBracesStatements)
            .Distinct());
 }