Skip to content

Commit ce8d434

Browse files
committed
Fix SA1008 not reported in cref attributes
1 parent aecb2af commit ce8d434

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

StyleCop.Analyzers/StyleCop.Analyzers/SpacingRules/SA1008OpeningParenthesisMustBeSpacedCorrectly.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ private static void HandleCompilationStart(CompilationStartAnalysisContext conte
7777
private static void HandleSyntaxTree(SyntaxTreeAnalysisContext context)
7878
{
7979
SyntaxNode root = context.Tree.GetCompilationUnitRoot(context.CancellationToken);
80-
foreach (var token in root.DescendantTokens().Where(t => t.IsKind(SyntaxKind.OpenParenToken)))
80+
foreach (var token in root.DescendantTokens(descendIntoTrivia: true).Where(t => t.IsKind(SyntaxKind.OpenParenToken)))
8181
{
8282
HandleOpenParenToken(context, token);
8383
}

0 commit comments

Comments
 (0)