Skip to content
This repository was archived by the owner on Nov 8, 2018. It is now read-only.

Commit c51f377

Browse files
committed
Remove unused TriviaHelper functionality
1 parent 2fd4b28 commit c51f377

File tree

2 files changed

+2
-470
lines changed

2 files changed

+2
-470
lines changed

AsyncUsageAnalyzers/AsyncUsageAnalyzers/GeneratedCodeAnalysisExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ private static bool IsEmpty(SyntaxTree tree, CancellationToken cancellationToken
175175
var firstToken = root.GetFirstToken(includeZeroWidth: true);
176176

177177
return firstToken.IsKind(SyntaxKind.EndOfFileToken)
178-
&& TriviaHelper.IndexOfFirstNonWhitespaceTrivia(firstToken.LeadingTrivia) == -1;
178+
&& TriviaHelper.IndexOfFirstNonWhitespaceTrivia(firstToken.LeadingTrivia, true) == -1;
179179
}
180180
}
181181
}

0 commit comments

Comments
 (0)