21 references to DiagnosticExtensions
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
SarifV1ErrorLoggerTests.cs (1)
12using static Microsoft.CodeAnalysis.DiagnosticExtensions;
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (1)
InteractiveSessionReferencesTests.cs (1)
446DiagnosticExtensions.VerifyEmitDiagnostics(script2.GetCompilation(),
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
Diagnostics\DiagnosticTaggerWrapper.cs (1)
40var analyzerReference = new TestAnalyzerReferenceByLanguage(analyzerMap ?? DiagnosticExtensions.GetCompilerDiagnosticAnalyzersMap());
LanguageServer\AbstractLanguageServerProtocolTests.cs (1)
113=> new(DiagnosticExtensions.GetCompilerDiagnosticAnalyzersMap());
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
CodeFixes\CodeFixServiceTests.cs (2)
48var analyzerReference = new TestAnalyzerReferenceByLanguage(DiagnosticExtensions.GetCompilerDiagnosticAnalyzersMap()); 356var analyzerReference = new TestAnalyzerReferenceByLanguage(DiagnosticExtensions.GetCompilerDiagnosticAnalyzersMap());
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (4)
Diagnostics\AbstractCrossLanguageUserDiagnosticTest.vb (2)
143New AnalyzerFileReference(DiagnosticExtensions.GetCompilerDiagnosticAnalyzer(LanguageNames.CSharp).GetType().Assembly.Location, TestAnalyzerAssemblyLoader.LoadFromFile), 144New AnalyzerFileReference(DiagnosticExtensions.GetCompilerDiagnosticAnalyzer(LanguageNames.VisualBasic).GetType().Assembly.Location, TestAnalyzerAssemblyLoader.LoadFromFile)
Diagnostics\DiagnosticProviderTests.vb (1)
283Dim compilerAnalyzersMap = DiagnosticExtensions.GetCompilerDiagnosticAnalyzersMap().Add(
Diagnostics\DiagnosticServiceTests.vb (1)
2179Dim analyzer = DiagnosticExtensions.GetCompilerDiagnosticAnalyzer(LanguageNames.CSharp)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (7)
Diagnostics\AbstractPullDiagnosticTestsBase.cs (2)
44DiagnosticExtensions.GetCompilerDiagnosticAnalyzer(LanguageNames.CSharp), 50builder.Add(LanguageNames.VisualBasic, ImmutableArray.Create(DiagnosticExtensions.GetCompilerDiagnosticAnalyzer(LanguageNames.VisualBasic)));
Diagnostics\AdditionalFileDiagnosticsTests.cs (1)
119DiagnosticExtensions.GetCompilerDiagnosticAnalyzer(LanguageNames.CSharp),
Diagnostics\BuildOnlyDiagnosticIdsHandlerTests.cs (2)
54DiagnosticExtensions.GetCompilerDiagnosticAnalyzer(LanguageNames.CSharp), 58DiagnosticExtensions.GetCompilerDiagnosticAnalyzer(LanguageNames.VisualBasic),
Diagnostics\NonLocalDiagnosticTests.cs (1)
72DiagnosticExtensions.GetCompilerDiagnosticAnalyzer(LanguageNames.CSharp),
Diagnostics\WorkspaceProjectDiagnosticsTests.cs (1)
68DiagnosticExtensions.GetCompilerDiagnosticAnalyzer(LanguageNames.CSharp),
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (1)
SarifV1ErrorLoggerTests.vb (1)
10Imports Microsoft.CodeAnalysis.DiagnosticExtensions
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
DocumentOutline\DocumentOutlineTestsBase.cs (1)
118solution = solution.WithAnalyzerReferences([new TestAnalyzerReferenceByLanguage(DiagnosticExtensions.GetCompilerDiagnosticAnalyzersMap())]);
Microsoft.VisualStudio.LanguageServices.UnitTests (2)
Diagnostics\ExternalDiagnosticUpdateSourceTests.vb (1)
226Dim compiler = DiagnosticExtensions.GetCompilerDiagnosticAnalyzer(LanguageNames.CSharp)
Venus\DocumentService_IntegrationTests.vb (1)
222Dim analyzerReference = New TestAnalyzerReferenceByLanguage(DiagnosticExtensions.GetCompilerDiagnosticAnalyzersMap())