Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #746 from dotnet/custom-load-context
Load analyzer assemlbies in their own AssemblyLoadContext
- Loading branch information
Showing
34 changed files
with
754 additions
and
200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information. | ||
|
||
using System.Collections.Immutable; | ||
using Microsoft.CodeAnalysis.CodeFixes; | ||
using Microsoft.CodeAnalysis.Diagnostics; | ||
|
||
namespace Microsoft.CodeAnalysis.Tools.Analyzers | ||
{ | ||
internal struct AnalyzersAndFixers | ||
{ | ||
public ImmutableArray<DiagnosticAnalyzer> Analyzers { get; } | ||
public ImmutableArray<CodeFixProvider> Fixers { get; } | ||
|
||
public AnalyzersAndFixers(ImmutableArray<DiagnosticAnalyzer> analyzers, ImmutableArray<CodeFixProvider> fixers) | ||
{ | ||
Analyzers = analyzers; | ||
Fixers = fixers; | ||
} | ||
|
||
public void Deconstruct( | ||
out ImmutableArray<DiagnosticAnalyzer> analyzers, | ||
out ImmutableArray<CodeFixProvider> fixers) | ||
{ | ||
analyzers = Analyzers; | ||
fixers = Fixers; | ||
} | ||
} | ||
} |
Oops, something went wrong.