18 instantiations of CSharpCompilerDiagnosticAnalyzer
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
LanguageServer\CSharpLspBuildOnlyDiagnosticsTests.cs (1)
25var supported = new CSharpCompilerDiagnosticAnalyzer().GetSupportedErrorCodes();
QuickInfo\DiagnosticAnalyzerQuickInfoSourceTests.cs (1)
196var analyzerReference = new AnalyzerImageReference([new CSharpCompilerDiagnosticAnalyzer(), new CSharpRemoveUnusedMembersDiagnosticAnalyzer()]);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (9)
Diagnostics\DiagnosticAnalyzerTests.cs (2)
716var analyzer = new CSharpCompilerDiagnosticAnalyzer(); 3752var analyzer2 = new CSharpCompilerDiagnosticAnalyzer();
Diagnostics\GetDiagnosticsTests.cs (7)
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);
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (3)
Diagnostics\Suppression\RemoveUnnecessaryPragmaSuppressionsTests.cs (2)
130=> [new CSharpCompilerDiagnosticAnalyzer()]; 1205=> [new CSharpCompilerDiagnosticAnalyzer(), new UserDiagnosticAnalyzer()];
Diagnostics\Suppression\SuppressionTests.cs (1)
475var analyzerReference = new AnalyzerImageReference([new CSharpCompilerDiagnosticAnalyzer()]);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (3)
Diagnostics\DiagnosticAnalyzerServiceTests.cs (3)
110var analyzerReference = new AnalyzerImageReference([new CSharpCompilerDiagnosticAnalyzer()]); 126var analyzerReference = new AnalyzerImageReference([new CSharpCompilerDiagnosticAnalyzer()]); 491new CSharpCompilerDiagnosticAnalyzer(),
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\DiagnosticExtensions.cs (1)
397(DiagnosticAnalyzer)new Diagnostics.CSharp.CSharpCompilerDiagnosticAnalyzer() :
5 references to CSharpCompilerDiagnosticAnalyzer
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Formatting\CodeCleanupTests.cs (1)
837new AnalyzerFileReference(typeof(CSharpCompilerDiagnosticAnalyzer).Assembly.Location, TestAnalyzerAssemblyLoader.LoadFromFile),
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (3)
Diagnostics\DiagnosticAnalyzerTests.cs (2)
716var analyzer = new CSharpCompilerDiagnosticAnalyzer(); 3752var analyzer2 = new CSharpCompilerDiagnosticAnalyzer();
Diagnostics\GetDiagnosticsTests.cs (1)
1188var compilerAnalyzer = new CSharpCompilerDiagnosticAnalyzer();
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
Diagnostics\Suppression\RemoveUnnecessaryPragmaSuppressionsTests.cs (1)
140var supported = ((CSharpCompilerDiagnosticAnalyzer)OtherAnalyzers[0]).GetSupportedErrorCodes();