提交 bab4d868 编写于 作者: C CyrusNajmabadi

Remove unnecessary test.

上级 148f954e
......@@ -43,8 +43,7 @@ protected override Task FixAllAsync(Document document, ImmutableArray<Diagnostic
// after already removing the outer one.
var localFunctions = diagnostics.OrderBy((d1, d2) => d2.Location.SourceSpan.Start - d1.Location.SourceSpan.Start)
.Select(d => root.FindToken(d.Location.SourceSpan.Start))
.Select(t => t.GetAncestor<LocalFunctionStatementSyntax>())
.WhereNotNull();
.Select(t => t.GetAncestor<LocalFunctionStatementSyntax>());
foreach (var localFunction in localFunctions)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册