提交 c9ec97dd 编写于 作者: C Cyrus Najmabadi

Simplify

上级 a7afaa62
......@@ -2,10 +2,8 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Runtime.CompilerServices;
using Roslyn.Utilities;
namespace Microsoft.CodeAnalysis.FindSymbols
......
......@@ -247,13 +247,13 @@ internal static partial class DependentTypeFinder
Debug.Assert(project.SupportsCompilation);
using var _ = GetSymbolSet(out var tempBuffer);
// First see what derived metadata types we might find in this project. This is only necessary if we
// started with a metadata type (i.e. a source type could not have a descendant type found in metadata,
// but a metadata type could have descendant types in source and metadata).
if (searchInMetadata)
{
using var _ = GetSymbolSet(out var tempBuffer);
await AddDescendantMetadataTypesInProjectAsync(
currentMetadataTypes,
result: tempBuffer,
......@@ -278,7 +278,7 @@ internal static partial class DependentTypeFinder
}
{
tempBuffer.Clear();
using var _ = GetSymbolSet(out var tempBuffer);
// Now search the project and see what source types we can find.
await AddDescendantSourceTypesInProjectAsync(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册