Skip to content

Commit 3a9c0a4

Browse files
Lint
1 parent df6f3dc commit 3a9c0a4

File tree

2 files changed

+4
-16
lines changed

2 files changed

+4
-16
lines changed

src/Workspaces/Core/Portable/Workspace/IsolatedAnalyzerReferenceSet.Desktop.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
#if !NET
66

77
using System;
8-
using System.Collections.Generic;
98
using System.Collections.Immutable;
109
using System.Threading;
1110
using System.Threading.Tasks;
1211
using Microsoft.CodeAnalysis.Diagnostics;
1312
using Microsoft.CodeAnalysis.Host;
1413
using Microsoft.CodeAnalysis.Serialization;
14+
using Roslyn.Utilities;
1515

1616
namespace Microsoft.CodeAnalysis;
1717

@@ -27,17 +27,17 @@ public static partial ValueTask<ImmutableArray<AnalyzerReference>> CreateIsolate
2727
SolutionServices solutionServices,
2828
CancellationToken cancellationToken)
2929
{
30-
return DefaultCreateIsolatedAnalyzerReferencesAsync(references);
30+
return ValueTaskFactory.FromResult(references);
3131
}
3232

33-
public static partial ValueTask<ImmutableArray<AnalyzerReference>> CreateIsolatedAnalyzerReferencesAsync(
33+
public static async partial ValueTask<ImmutableArray<AnalyzerReference>> CreateIsolatedAnalyzerReferencesAsync(
3434
bool useAsync,
3535
ChecksumCollection analyzerChecksums,
3636
SolutionServices solutionServices,
3737
Func<Task<ImmutableArray<AnalyzerReference>>> getReferencesAsync,
3838
CancellationToken cancellationToken)
3939
{
40-
return DefaultCreateIsolatedAnalyzerReferencesAsync(getReferencesAsync);
40+
return await getReferencesAsync().ConfigureAwait(false);
4141
}
4242
}
4343

src/Workspaces/Core/Portable/Workspace/IsolatedAnalyzerReferenceSet.cs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,6 @@ public static partial ValueTask<ImmutableArray<AnalyzerReference>> CreateIsolate
3939
Func<Task<ImmutableArray<AnalyzerReference>>> getReferencesAsync,
4040
CancellationToken cancellationToken);
4141

42-
private static ValueTask<ImmutableArray<AnalyzerReference>> DefaultCreateIsolatedAnalyzerReferencesAsync(
43-
ImmutableArray<AnalyzerReference> references)
44-
{
45-
return ValueTaskFactory.FromResult(references);
46-
}
47-
48-
private static async ValueTask<ImmutableArray<AnalyzerReference>> DefaultCreateIsolatedAnalyzerReferencesAsync(
49-
Func<Task<ImmutableArray<AnalyzerReference>>> getReferencesAsync)
50-
{
51-
return await getReferencesAsync().ConfigureAwait(false);
52-
}
53-
5442
public static Guid TryGetFileReferenceMvid(string filePath)
5543
{
5644
try

0 commit comments

Comments
 (0)