File tree Expand file tree Collapse file tree 2 files changed +4
-16
lines changed
src/Workspaces/Core/Portable/Workspace Expand file tree Collapse file tree 2 files changed +4
-16
lines changed Original file line number Diff line number Diff line change 5
5
#if ! NET
6
6
7
7
using System ;
8
- using System . Collections . Generic ;
9
8
using System . Collections . Immutable ;
10
9
using System . Threading ;
11
10
using System . Threading . Tasks ;
12
11
using Microsoft . CodeAnalysis . Diagnostics ;
13
12
using Microsoft . CodeAnalysis . Host ;
14
13
using Microsoft . CodeAnalysis . Serialization ;
14
+ using Roslyn . Utilities ;
15
15
16
16
namespace Microsoft . CodeAnalysis ;
17
17
@@ -27,17 +27,17 @@ public static partial ValueTask<ImmutableArray<AnalyzerReference>> CreateIsolate
27
27
SolutionServices solutionServices ,
28
28
CancellationToken cancellationToken )
29
29
{
30
- return DefaultCreateIsolatedAnalyzerReferencesAsync ( references ) ;
30
+ return ValueTaskFactory . FromResult ( references ) ;
31
31
}
32
32
33
- public static partial ValueTask < ImmutableArray < AnalyzerReference > > CreateIsolatedAnalyzerReferencesAsync (
33
+ public static async partial ValueTask < ImmutableArray < AnalyzerReference > > CreateIsolatedAnalyzerReferencesAsync (
34
34
bool useAsync ,
35
35
ChecksumCollection analyzerChecksums ,
36
36
SolutionServices solutionServices ,
37
37
Func < Task < ImmutableArray < AnalyzerReference > > > getReferencesAsync ,
38
38
CancellationToken cancellationToken )
39
39
{
40
- return DefaultCreateIsolatedAnalyzerReferencesAsync ( getReferencesAsync ) ;
40
+ return await getReferencesAsync ( ) . ConfigureAwait ( false ) ;
41
41
}
42
42
}
43
43
Original file line number Diff line number Diff line change @@ -39,18 +39,6 @@ public static partial ValueTask<ImmutableArray<AnalyzerReference>> CreateIsolate
39
39
Func < Task < ImmutableArray < AnalyzerReference > > > getReferencesAsync ,
40
40
CancellationToken cancellationToken ) ;
41
41
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
-
54
42
public static Guid TryGetFileReferenceMvid ( string filePath )
55
43
{
56
44
try
You can’t perform that action at this time.
0 commit comments