26 references to AnalyzerFileReference
AnalyzerRunner (1)
DiagnosticAnalyzerRunner.cs (1)
306var analyzerReference = new AnalyzerFileReference(Path.GetFullPath(path), AssemblyLoader.Instance);
CodeStyleConfigFileGenerator (1)
Program.cs (1)
55var analyzerFileReference = new AnalyzerFileReference(assembly, AnalyzerAssemblyLoader.Instance);
GenerateRulesMissingDocumentation (1)
Program.cs (1)
153var analyzerFileReference = new AnalyzerFileReference(path, AnalyzerAssemblyLoader.Instance);
Microsoft.AspNetCore.Analyzer.Testing (1)
DiagnosticProject.cs (1)
59new AnalyzerFileReference(analyzerReference.Assembly.Location, AssemblyLoader.Instance));
Microsoft.CodeAnalysis (1)
CommandLine\CommandLineArguments.cs (1)
575return new AnalyzerFileReference(resolvedPath, analyzerLoader);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Formatting\CodeCleanupTests.cs (2)
888new AnalyzerFileReference(typeof(CSharpCompilerDiagnosticAnalyzer).Assembly.Location, TestAnalyzerAssemblyLoader.LoadFromFile), 889new AnalyzerFileReference(typeof(UseExpressionBodyDiagnosticAnalyzer).Assembly.Location, TestAnalyzerAssemblyLoader.LoadFromFile)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Diagnostics\IDEDiagnosticIDConfigurationTests.cs (1)
32var analyzerReference = new AnalyzerFileReference(assembly.Location, TestAnalyzerAssemblyLoader.LoadFromFile);
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (2)
CodeFixes\CodeFixServiceTests.vb (1)
35Return New AnalyzerFileReference(fullPath, _assemblyLoader)
Diagnostics\DiagnosticServiceTests.vb (1)
36Return New AnalyzerFileReference(fullPath, _assemblyLoader)
Microsoft.CodeAnalysis.LanguageServer (2)
HostWorkspace\HostDiagnosticAnalyzerProvider.cs (1)
25new AnalyzerFileReference(razorSourceGenerator, new SimpleAnalyzerAssemblyLoader()),
HostWorkspace\LanguageServerWorkspaceFactory.cs (1)
71references.Add(new AnalyzerFileReference(analyzerPath, analyzerLoader));
Microsoft.CodeAnalysis.UnitTests (1)
Analyzers\AnalyzerFileReferenceTests.cs (1)
48Assert.Throws<ArgumentNullException>("assemblyLoader", () => new AnalyzerFileReference(TempRoot.Root, null!));
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
802initialReferenceList.Add(new AnalyzerFileReference(analyzer, sharedShadowCopyLoader));
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
VisualStudioMSBuildWorkspaceTests.cs (1)
2937var aref = new AnalyzerFileReference(myAnalyzerPath, new InMemoryAssemblyLoader());
Microsoft.VisualStudio.LanguageServices (1)
Diagnostics\VisualStudioDiagnosticAnalyzerProvider.cs (1)
88analyzePaths.Add(new AnalyzerFileReference(assemblyPath, AnalyzerAssemblyLoader), identifier);
Microsoft.VisualStudio.LanguageServices.UnitTests (1)
Diagnostics\VisualStudioDiagnosticAnalyzerProviderTests.vb (1)
55Dim hostAnalyzers = New HostDiagnosticAnalyzers(ImmutableArray.Create(Of AnalyzerReference)(New AnalyzerFileReference(analyzerFile.Path, analyzerLoader)))
Roslyn.VisualStudio.Next.UnitTests (9)
Remote\SnapshotSerializationTests.cs (4)
59.AddAnalyzerReference(new AnalyzerFileReference(Path.Combine(TempRoot.Root, "path1"), new TestAnalyzerAssemblyLoader())) 63.WithAnalyzerReferences([new AnalyzerFileReference(Path.Combine(TempRoot.Root, "path2"), new TestAnalyzerAssemblyLoader())]) 485var analyzer1 = new AnalyzerFileReference(file1.Path, TestAnalyzerAssemblyLoader.LoadNotImplemented); 486var analyzer2 = new AnalyzerFileReference(file2.Path, TestAnalyzerAssemblyLoader.LoadNotImplemented);
Services\ServiceHubServicesTests.cs (1)
1729.AddAnalyzerReference(new AnalyzerFileReference(typeof(object).Assembly.Location, new TestAnalyzerAssemblyLoader()));
Services\SolutionServiceTests.cs (1)
511.AddAnalyzerReference(new AnalyzerFileReference(typeof(Microsoft.CodeAnalysis.TestSourceGenerator.HelloWorldGenerator).Assembly.Location, new TestAnalyzerAssemblyLoader()))
Services\VisualStudioDiagnosticAnalyzerExecutorTests.cs (3)
152var analyzerReference = new AnalyzerFileReference(analyzerType.Assembly.Location, new TestAnalyzerAssemblyLoader()); 189var analyzerReference = new AnalyzerFileReference(analyzerType.Assembly.Location, new TestAnalyzerAssemblyLoader()); 222var analyzerReference = new AnalyzerFileReference(analyzerType.Assembly.Location, new TestAnalyzerAssemblyLoader());