21 instantiations of CSharpCompilerDiagnosticAnalyzer
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
LanguageServer\CSharpLspBuildOnlyDiagnosticsTests.cs (1)
25var supported = new CSharpCompilerDiagnosticAnalyzer().GetSupportedErrorCodes();
QuickInfo\DiagnosticAnalyzerQuickInfoSourceTests.cs (1)
195var analyzerReference = new AnalyzerImageReference([new CSharpCompilerDiagnosticAnalyzer(), new CSharpRemoveUnusedMembersDiagnosticAnalyzer()]);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (12)
Diagnostics\DiagnosticAnalyzerTests.cs (4)
717var analyzer = new CSharpCompilerDiagnosticAnalyzer(); 3753var analyzer2 = new CSharpCompilerDiagnosticAnalyzer(); 4649var compilationWithAnalyzers = compilation.WithAnalyzers([new CSharpCompilerDiagnosticAnalyzer()]); 4653compilationWithAnalyzers.GetAnalysisResultAsync([new CSharpCompilerDiagnosticAnalyzer()], CancellationToken.None));
Diagnostics\GetDiagnosticsTests.cs (8)
651var analyzers = new DiagnosticAnalyzer[] { new CSharpCompilerDiagnosticAnalyzer() }; 677var analyzers = ImmutableArray.Create<DiagnosticAnalyzer>(new CSharpCompilerDiagnosticAnalyzer()); 787var analyzers = ImmutableArray.Create<DiagnosticAnalyzer>(new CSharpCompilerDiagnosticAnalyzer()); 909var analyzers = ImmutableArray.Create<DiagnosticAnalyzer>(new CSharpCompilerDiagnosticAnalyzer()); 1188var compilerAnalyzer = new CSharpCompilerDiagnosticAnalyzer(); 1563var analyzers = ImmutableArray.Create<DiagnosticAnalyzer>(new CSharpCompilerDiagnosticAnalyzer()); 1582analyzers = ImmutableArray.Create<DiagnosticAnalyzer>(new CSharpCompilerDiagnosticAnalyzer(), suppressor); 1615var diagnosticAnalyzer = new CSharpCompilerDiagnosticAnalyzer();
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (3)
Diagnostics\Suppression\RemoveUnnecessaryPragmaSuppressionsTests.cs (2)
130=> [new CSharpCompilerDiagnosticAnalyzer()]; 1205=> [new CSharpCompilerDiagnosticAnalyzer(), new UserDiagnosticAnalyzer()];
Diagnostics\Suppression\SuppressionTests.cs (1)
476var analyzerReference = new AnalyzerImageReference([new CSharpCompilerDiagnosticAnalyzer()]);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (3)
Diagnostics\DiagnosticAnalyzerServiceTests.cs (3)
111var analyzerReference = new AnalyzerImageReference([new CSharpCompilerDiagnosticAnalyzer()]); 127var analyzerReference = new AnalyzerImageReference([new CSharpCompilerDiagnosticAnalyzer()]); 492new CSharpCompilerDiagnosticAnalyzer(),
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\DiagnosticExtensions.cs (1)
397(DiagnosticAnalyzer)new Diagnostics.CSharp.CSharpCompilerDiagnosticAnalyzer() :
6 references to CSharpCompilerDiagnosticAnalyzer
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Formatting\CodeCleanupTests.cs (1)
920new AnalyzerFileReference(typeof(CSharpCompilerDiagnosticAnalyzer).Assembly.Location, TestAnalyzerAssemblyLoader.LoadFromFile),
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (4)
Diagnostics\DiagnosticAnalyzerTests.cs (2)
717var analyzer = new CSharpCompilerDiagnosticAnalyzer(); 3753var analyzer2 = new CSharpCompilerDiagnosticAnalyzer();
Diagnostics\GetDiagnosticsTests.cs (2)
1188var compilerAnalyzer = new CSharpCompilerDiagnosticAnalyzer(); 1615var diagnosticAnalyzer = new CSharpCompilerDiagnosticAnalyzer();
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
Diagnostics\Suppression\RemoveUnnecessaryPragmaSuppressionsTests.cs (1)
140var supported = ((CSharpCompilerDiagnosticAnalyzer)OtherAnalyzers[0]).GetSupportedErrorCodes();