69 references to GetAnalyzerDiagnostics
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (29)
Diagnostics\DiagnosticAnalyzerTests.AllInOne.cs (2)
105
compilation.
GetAnalyzerDiagnostics
(new[] { analyzer }, options));
119
compilation.
GetAnalyzerDiagnostics
(new[] { analyzer }, options);
Diagnostics\GetDiagnosticsTests.cs (1)
527
var analyzerDiagnostics = compilation.
GetAnalyzerDiagnostics
(analyzers);
Semantics\OutVarTests.cs (1)
18789
.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
Semantics\PrimaryConstructorTests.cs (16)
3681
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
4052
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
4130
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
4265
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
4481
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
4587
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
4795
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
4900
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
5113
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
5216
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
5455
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
5534
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
5659
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
5762
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
5818
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
5890
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
Semantics\RecordTests.cs (9)
26121
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
26488
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
26573
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
26728
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
26944
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
27050
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
27258
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
27363
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
27576
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (36)
Semantics\RecordStructTests.cs (8)
5915
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
6154
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
6240
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
6385
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
6488
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
6544
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
6616
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
6784
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
Semantics\TopLevelStatementsTests.cs (26)
6397
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
6408
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
6502
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
6511
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
6559
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
6574
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
6680
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
6691
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
6767
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
6776
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
6825
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
6834
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
6883
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
6892
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
6951
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
6960
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
7030
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
7038
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
7143
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
7152
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
7237
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
7246
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
7310
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
7320
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
7377
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
7387
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
SourceGeneration\GeneratorDriverTests.cs (2)
160
compilation.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
168
outputCompilation.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Symbols\Source\NullablePublicAPITests.cs (2)
1824
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }).Verify();
4880
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }).Verify();
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\DiagnosticExtensions.cs (1)
149
Assert.Equal(expectedCount, c.
GetAnalyzerDiagnostics
(analyzers, null, onAnalyzerException).Length);
Microsoft.CodeAnalysis.UnitTests (1)
Diagnostics\AnalysisContextInfoTests.cs (1)
47
var diagnostics = compilation.
GetAnalyzerDiagnostics
(new DiagnosticAnalyzer[] { analyzer }, options);