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)
3682
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
4053
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
4131
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
4266
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
4482
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
4588
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
4796
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
4901
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
5114
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
5217
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
5456
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
5535
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
5660
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
5763
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
5819
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
5891
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
Semantics\RecordTests.cs (9)
26166
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
26533
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
26618
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
26773
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
26989
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
27095
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
27303
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
27408
comp.
GetAnalyzerDiagnostics
(new[] { analyzer }, null).Verify();
27621
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);