2 interfaces inheriting from IAnalyzerAssemblyLoader
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (1)
18internal interface IAnalyzerAssemblyLoaderInternal : IAnalyzerAssemblyLoader, IDisposable
Microsoft.CodeAnalysis.Workspaces (1)
src\Compilers\Core\Portable\DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (1)
18internal interface IAnalyzerAssemblyLoaderInternal : IAnalyzerAssemblyLoader, IDisposable
13 implementations of IAnalyzerAssemblyLoader
AnalyzerRunner (1)
AssemblyLoader.cs (1)
12internal class AssemblyLoader : IAnalyzerAssemblyLoader
CodeStyleConfigFileGenerator (1)
Program.cs (1)
285private sealed class AnalyzerAssemblyLoader : IAnalyzerAssemblyLoader
GenerateDocumentationAndConfigFiles (1)
Program.cs (1)
1939private sealed class AnalyzerAssemblyLoader : IAnalyzerAssemblyLoader
GenerateRulesMissingDocumentation (1)
Program.cs (1)
178private sealed class AnalyzerAssemblyLoader : IAnalyzerAssemblyLoader
Microsoft.AspNetCore.Analyzer.Testing (1)
DiagnosticProject.cs (1)
91internal sealed class AssemblyLoader : IAnalyzerAssemblyLoader
Microsoft.CodeAnalysis.Scripting (1)
Hosting\CommandLine\NotImplementedAnalyzerLoader.cs (1)
12internal sealed class NotImplementedAnalyzerLoader : IAnalyzerAssemblyLoader
Microsoft.CodeAnalysis.Test.Utilities (1)
Mocks\TestAnalyzerAssemblyLoader.cs (1)
11public class TestAnalyzerAssemblyLoader : IAnalyzerAssemblyLoader
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
VisualStudioMSBuildWorkspaceTests.cs (1)
3373private sealed class InMemoryAssemblyLoader : IAnalyzerAssemblyLoader
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
SolutionTests\SolutionWithSourceGeneratorTests.cs (1)
1388private sealed class DoNotLoadAssemblyLoader : IAnalyzerAssemblyLoader
Microsoft.VisualStudio.LanguageServices (1)
Diagnostics\VisualStudioDiagnosticAnalyzerProvider.Loader.cs (1)
13private sealed class Loader : IAnalyzerAssemblyLoader
Roslyn.VisualStudio.Next.UnitTests (3)
Remote\RemoteHostClientServiceFactoryTests.cs (1)
84private sealed class NullAssemblyAnalyzerLoader : IAnalyzerAssemblyLoader
Remote\SnapshotSerializationTests.cs (2)
706private sealed class MissingAnalyzerLoader() : IAnalyzerAssemblyLoader 733private sealed class MockShadowCopyAnalyzerAssemblyLoader : IAnalyzerAssemblyLoader
48 references to IAnalyzerAssemblyLoader
CodeStyleConfigFileGenerator (1)
Program.cs (1)
287public static IAnalyzerAssemblyLoader Instance = new AnalyzerAssemblyLoader();
csc (4)
src\Compilers\CSharp\csc\Program.cs (1)
40public static int Run(string[] args, string clientDir, string workingDir, string sdkDir, string? tempDir, TextWriter textWriter, IAnalyzerAssemblyLoader analyzerLoader)
src\Compilers\Shared\BuildClient.cs (1)
24internal delegate int CompileFunc(string[] arguments, BuildPaths buildPaths, TextWriter textWriter, IAnalyzerAssemblyLoader analyzerAssemblyLoader);
src\Compilers\Shared\Csc.cs (2)
17internal Csc(string responseFile, BuildPaths buildPaths, string[] args, IAnalyzerAssemblyLoader analyzerLoader) 22internal static int Run(string[] args, BuildPaths buildPaths, TextWriter textWriter, IAnalyzerAssemblyLoader analyzerLoader)
GenerateDocumentationAndConfigFiles (1)
Program.cs (1)
1941public static IAnalyzerAssemblyLoader Instance = new AnalyzerAssemblyLoader();
GenerateRulesMissingDocumentation (1)
Program.cs (1)
180public static IAnalyzerAssemblyLoader Instance = new AnalyzerAssemblyLoader();
Microsoft.CodeAnalysis (10)
CommandLine\CommandLineArguments.cs (3)
472public IEnumerable<AnalyzerReference> ResolveAnalyzerReferences(IAnalyzerAssemblyLoader analyzerLoader) 485IAnalyzerAssemblyLoader analyzerLoader, 576private AnalyzerFileReference? ResolveAnalyzerReference(CommandLineAnalyzerReference reference, IAnalyzerAssemblyLoader analyzerLoader)
CommandLine\CommonCompiler.cs (2)
78public IAnalyzerAssemblyLoader AssemblyLoader { get; private set; } 125public CommonCompiler(CommandLineParser parser, string? responseFile, string[] args, BuildPaths buildPaths, string? additionalReferenceDirectories, IAnalyzerAssemblyLoader assemblyLoader, GeneratorDriverCache? driverCache, ICommonCompilerFileSystem? fileSystem)
DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (2)
35/// The implementation for <see cref="IAnalyzerAssemblyLoader"/>. This type provides caching and tracking of inputs given 401/// Return an <see cref="IAnalyzerAssemblyLoader"/> which does not lock assemblies on disk that is
DiagnosticAnalyzer\AnalyzerFileReference.cs (3)
38private readonly IAnalyzerAssemblyLoader _assemblyLoader; 53public AnalyzerFileReference(string fullPath, IAnalyzerAssemblyLoader assemblyLoader) 68public IAnalyzerAssemblyLoader AssemblyLoader => _assemblyLoader;
Microsoft.CodeAnalysis.CSharp (1)
CommandLine\CSharpCompiler.cs (1)
28protected CSharpCompiler(CSharpCommandLineParser parser, string? responseFile, string[] args, BuildPaths buildPaths, string? additionalReferenceDirectories, IAnalyzerAssemblyLoader assemblyLoader, GeneratorDriverCache? driverCache = null, ICommonCompilerFileSystem? fileSystem = null)
Microsoft.CodeAnalysis.CSharp.Scripting (1)
Hosting\CommandLine\Csi.cs (1)
21IAnalyzerAssemblyLoader analyzerLoader,
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp (1)
Analyzers\OmnisharpAnalyzerLoaderFactory.cs (1)
11public static IAnalyzerAssemblyLoader CreateShadowCopyAnalyzerAssemblyLoader(string? baseDirectory = null)
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (1)
Testing\RazorTestAnalyzerLoader.cs (1)
28public static IAnalyzerAssemblyLoader CreateAnalyzerAssemblyLoader()
Microsoft.CodeAnalysis.Features (1)
Extensions\IExtensionAssemblyLoaderProvider.cs (1)
25/// Abstraction around <see cref="IAnalyzerAssemblyLoader"/> so that we can mock that behavior in tests.
Microsoft.CodeAnalysis.Test.Utilities (2)
Mocks\TestAnalyzerAssemblyLoader.cs (2)
13public static readonly IAnalyzerAssemblyLoader LoadFromFile = 16public static readonly IAnalyzerAssemblyLoader LoadNotImplemented =
Microsoft.CodeAnalysis.UnitTests (1)
Analyzers\AnalyzerFileReferenceTests.cs (1)
299public AnalyzerLoaderMockCSharpCompiler(CSharpCommandLineParser parser, string? responseFile, string[] args, BuildPaths buildPaths, string? additionalReferenceDirectories, IAnalyzerAssemblyLoader assemblyLoader, GeneratorDriverCache? driverCache = null, ICommonCompilerFileSystem? fileSystem = null)
Microsoft.CodeAnalysis.VisualBasic (1)
CommandLine\VisualBasicCompiler.vb (1)
23Protected Sub New(parser As VisualBasicCommandLineParser, responseFile As String, args As String(), buildPaths As BuildPaths, additionalReferenceDirectories As String, analyzerLoader As IAnalyzerAssemblyLoader, Optional driverCache As GeneratorDriverCache = Nothing, Optional fileSystem As ICommonCompilerFileSystem = Nothing)
Microsoft.CodeAnalysis.Workspaces (6)
src\Compilers\Core\Portable\DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (2)
35/// The implementation for <see cref="IAnalyzerAssemblyLoader"/>. This type provides caching and tracking of inputs given 401/// Return an <see cref="IAnalyzerAssemblyLoader"/> which does not lock assemblies on disk that is
Workspace\CommandLineProject.cs (1)
45var analyzerLoader = languageServices.SolutionServices.GetRequiredService<IAnalyzerService>().GetLoader();
Workspace\Host\Metadata\DefaultAnalyzerService.cs (1)
22public IAnalyzerAssemblyLoader GetLoader()
Workspace\Host\Metadata\IAnalyzerAssemblyLoaderProvider.cs (1)
34/// cref="IAnalyzerAssemblyLoader"/> with an appropriate path.
Workspace\Host\Metadata\IAnalyzerService.cs (1)
11IAnalyzerAssemblyLoader GetLoader();
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\MSBuildProjectLoader.Worker.cs (1)
409var analyzerLoader = analyzerService.GetLoader();
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
SolutionTests\SolutionWithSourceGeneratorTests.cs (1)
1390public static readonly IAnalyzerAssemblyLoader Instance = new DoNotLoadAssemblyLoader();
Microsoft.VisualStudio.LanguageServices (2)
Diagnostics\VisualStudioDiagnosticAnalyzerProvider.cs (1)
31public static readonly IAnalyzerAssemblyLoader AnalyzerAssemblyLoader = new Loader();
Diagnostics\VisualStudioDiagnosticAnalyzerProvider.Loader.cs (1)
15private readonly IAnalyzerAssemblyLoader _fallbackLoader;
vbc (4)
src\Compilers\Shared\BuildClient.cs (1)
24internal delegate int CompileFunc(string[] arguments, BuildPaths buildPaths, TextWriter textWriter, IAnalyzerAssemblyLoader analyzerAssemblyLoader);
src\Compilers\Shared\Vbc.cs (2)
17internal Vbc(string responseFile, BuildPaths buildPaths, string[] args, IAnalyzerAssemblyLoader analyzerLoader) 22internal static int Run(string[] args, BuildPaths buildPaths, TextWriter textWriter, IAnalyzerAssemblyLoader analyzerLoader)
src\Compilers\VisualBasic\vbc\Program.cs (1)
42public static int Run(string[] args, string clientDir, string workingDir, string sdkDir, string tempDir, TextWriter textWriter, IAnalyzerAssemblyLoader analyzerLoader)
VBCSCompiler (7)
src\Compilers\Server\VBCSCompiler\AnalyzerConsistencyChecker.cs (2)
30/// 2. File system changes: The implementations of <see cref="IAnalyzerAssemblyLoader"/> assume 37/// The fact that <see cref="IAnalyzerAssemblyLoader"/> believe the file system is unchanging
src\Compilers\Server\VBCSCompiler\CSharpCompilerServer.cs (2)
19internal CSharpCompilerServer(Func<string, MetadataReferenceProperties, PortableExecutableReference> metadataProvider, string[] args, BuildPaths buildPaths, string? libDirectory, IAnalyzerAssemblyLoader analyzerLoader, GeneratorDriverCache driverCache) 24internal CSharpCompilerServer(Func<string, MetadataReferenceProperties, PortableExecutableReference> metadataProvider, string? responseFile, string[] args, BuildPaths buildPaths, string? libDirectory, IAnalyzerAssemblyLoader analyzerLoader, GeneratorDriverCache driverCache)
src\Compilers\Server\VBCSCompiler\VisualBasicCompilerServer.cs (2)
21internal VisualBasicCompilerServer(Func<string, MetadataReferenceProperties, PortableExecutableReference> metadataProvider, string[] args, BuildPaths buildPaths, string? libDirectory, IAnalyzerAssemblyLoader analyzerLoader, GeneratorDriverCache driverCache) 26internal VisualBasicCompilerServer(Func<string, MetadataReferenceProperties, PortableExecutableReference> metadataProvider, string? responseFile, string[] args, BuildPaths buildPaths, string? libDirectory, IAnalyzerAssemblyLoader analyzerLoader, GeneratorDriverCache driverCache)
src\Compilers\Shared\BuildClient.cs (1)
24internal delegate int CompileFunc(string[] arguments, BuildPaths buildPaths, TextWriter textWriter, IAnalyzerAssemblyLoader analyzerAssemblyLoader);
VBCSCompiler.UnitTests (1)
ServerUtil.cs (1)
207Func<string[], string, string, string, string, TextWriter, IAnalyzerAssemblyLoader, int> func;