Base:
method
GetDeclarationDiagnostics
Microsoft.CodeAnalysis.Compilation.GetDeclarationDiagnostics(System.Threading.CancellationToken)
80 references to GetDeclarationDiagnostics
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3)
CodeGen\CodeGenDeconstructTests.cs (3)
5583
comp.
GetDeclarationDiagnostics
().Verify(
5631
comp.
GetDeclarationDiagnostics
().Verify(
5672
comp.
GetDeclarationDiagnostics
().Verify(
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (8)
Semantics\OutVarTests.cs (5)
32105
compilation.
GetDeclarationDiagnostics
().Verify(
32149
compilation.
GetDeclarationDiagnostics
().Verify(
32189
compilation.
GetDeclarationDiagnostics
().Verify(
32427
compilation.
GetDeclarationDiagnostics
().Verify(
32474
compilation.
GetDeclarationDiagnostics
().Verify(
Semantics\PatternMatchingTests_Global.cs (2)
6262
compilation.
GetDeclarationDiagnostics
().Verify(
6291
compilation.
GetDeclarationDiagnostics
().Verify(
Semantics\RecordTests.cs (1)
25779
comp.
GetDeclarationDiagnostics
().Verify(
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (8)
Semantics\ConstantTests.cs (2)
2782
compilation.
GetDeclarationDiagnostics
().Verify(
2815
compilation.
GetDeclarationDiagnostics
().Verify(expected);
Semantics\LocalFunctionTests.cs (1)
1445
Assert.Empty(comp.
GetDeclarationDiagnostics
());
Semantics\MethodBodyModelTests.cs (3)
56
Assert.Equal(0, comp.
GetDeclarationDiagnostics
().Count());
78
Assert.Equal(0, comp.
GetDeclarationDiagnostics
().Count());
955
Assert.Equal(0, comp.
GetDeclarationDiagnostics
().Count());
Semantics\RecordStructTests.cs (1)
2979
comp.
GetDeclarationDiagnostics
().Verify(
Semantics\RefExtensionMethodsTests.cs (1)
2233
CreateCompilationWithMscorlib40AndSystemCore(test).
GetDeclarationDiagnostics
().Verify(
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (46)
Compilation\CompilationAPITests.cs (3)
284
CSharpCompilation.Create(@"C:\goo\Test.exe").
GetDeclarationDiagnostics
().Verify(
836
Assert.InRange(comp.
GetDeclarationDiagnostics
().Count(), 0, int.MaxValue);
906
error = comp.
GetDeclarationDiagnostics
();
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (1)
1034
Assert.NotEmpty(compilation.
GetDeclarationDiagnostics
());
DocumentationComments\DocumentationCommentCompilerTests.cs (2)
5860
Assert.Empty(comp.
GetDeclarationDiagnostics
());
5882
Assert.Empty(comp.
GetDeclarationDiagnostics
());
Symbols\Metadata\MetadataMemberTests.cs (5)
178
Assert.Empty(compilation.
GetDeclarationDiagnostics
());
229
Assert.Empty(compilation.
GetDeclarationDiagnostics
());
291
Assert.Empty(compilation.
GetDeclarationDiagnostics
());
336
Assert.Empty(compilation.
GetDeclarationDiagnostics
());
381
Assert.Empty(compilation.
GetDeclarationDiagnostics
());
Symbols\Metadata\MetadataTypeTests.cs (6)
60
Assert.Empty(compilation.
GetDeclarationDiagnostics
());
110
Assert.Empty(compilation.
GetDeclarationDiagnostics
());
160
Assert.Empty(compilation.
GetDeclarationDiagnostics
());
208
Assert.Empty(compilation.
GetDeclarationDiagnostics
());
256
Assert.Empty(compilation.
GetDeclarationDiagnostics
());
341
Assert.Empty(compilation2.
GetDeclarationDiagnostics
());
Symbols\Metadata\PE\TypeForwarders.cs (1)
1717
appCompilation.
GetDeclarationDiagnostics
().Verify(
Symbols\Source\AccessTests.cs (3)
124
Assert.False(comp.
GetDeclarationDiagnostics
().Any());
146
Assert.Equal(1, comp.
GetDeclarationDiagnostics
().Count());
169
Assert.Equal(0, comp.
GetDeclarationDiagnostics
().Count());
Symbols\Source\BaseClassTests.cs (5)
162
var diagnostics = comp.
GetDeclarationDiagnostics
();
189
var diagnostics = comp.
GetDeclarationDiagnostics
();
204
comp.
GetDeclarationDiagnostics
().Verify(
1426
Assert.Equal(1, comp.
GetDeclarationDiagnostics
().Count());
1496
var diags = comp.
GetDeclarationDiagnostics
();
Symbols\Source\ClsComplianceTests.cs (1)
3189
Assert.Equal(ErrorCode.WRN_CLS_BadArgType, (ErrorCode)comp.
GetDeclarationDiagnostics
().Single().Code);
Symbols\Source\DelegateTests.cs (1)
88
var diags = comp.
GetDeclarationDiagnostics
();
Symbols\Source\FieldTests.cs (1)
102
var errors = comp.
GetDeclarationDiagnostics
();
Symbols\Source\MethodTests.cs (5)
509
Assert.Equal(0, comp.
GetDeclarationDiagnostics
().Count());
1429
Assert.Empty(comp.
GetDeclarationDiagnostics
());
1462
Assert.Equal(0, comp.
GetDeclarationDiagnostics
().Count());
1500
Assert.Equal(0, comp.
GetDeclarationDiagnostics
().Count());
1544
Assert.Equal(0, comp.
GetDeclarationDiagnostics
().Count());
Symbols\Source\PropertyTests.cs (5)
1932
var errors = comp.
GetDeclarationDiagnostics
();
2961
comp.
GetDeclarationDiagnostics
().Verify(
2968
comp.
GetDeclarationDiagnostics
().Verify();
2992
comp.
GetDeclarationDiagnostics
().Verify(
2998
comp.
GetDeclarationDiagnostics
().Verify(
Symbols\TypeTests.cs (7)
1140
Assert.Equal(0, comp.
GetDeclarationDiagnostics
().Count());
1154
Assert.Equal(0, comp.
GetDeclarationDiagnostics
().Count());
1179
Assert.Equal(0, comp.
GetDeclarationDiagnostics
().Count(diag => !ErrorFacts.IsWarning((ErrorCode)diag.Code)));
1198
Assert.Equal(0, comp.
GetDeclarationDiagnostics
().Count(e => e.Severity >= DiagnosticSeverity.Error));
1923
compilation.
GetDeclarationDiagnostics
().Verify(
1958
compilation.
GetDeclarationDiagnostics
().Verify(
2251
compilation.
GetDeclarationDiagnostics
().Verify(
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (15)
Parsing\DeclarationParsingTests.cs (2)
1182
CreateCompilation(text).
GetDeclarationDiagnostics
().Verify(
1196
CreateCompilation(text).
GetDeclarationDiagnostics
().Verify(
Parsing\ParserErrorMessageTests.cs (13)
3283
CreateCompilationWithMscorlib40AndSystemCore(test).
GetDeclarationDiagnostics
().Verify(
3328
CreateCompilationWithMscorlib40AndSystemCore(test).
GetDeclarationDiagnostics
().Verify(
3405
CreateCompilationWithMscorlib40AndSystemCore(test).
GetDeclarationDiagnostics
().Verify(
3468
CreateCompilationWithMscorlib40AndSystemCore(test).
GetDeclarationDiagnostics
().Verify(
3521
CreateCompilationWithMscorlib40AndSystemCore(test).
GetDeclarationDiagnostics
().Verify(
3566
CreateCompilationWithMscorlib40AndSystemCore(test).
GetDeclarationDiagnostics
().Verify(
3605
CreateCompilationWithMscorlib40AndSystemCore(test).
GetDeclarationDiagnostics
().Verify(
3671
CreateCompilationWithMscorlib40AndSystemCore(test).
GetDeclarationDiagnostics
().Verify(
3713
CreateCompilationWithMscorlib40AndSystemCore(test).
GetDeclarationDiagnostics
().Verify(
4045
CreateCompilation(test).
GetDeclarationDiagnostics
().Verify(
4949
CreateCompilation(test).
GetDeclarationDiagnostics
().Verify(
4973
CreateCompilation(test).
GetDeclarationDiagnostics
().Verify(
5004
CreateCompilationWithMscorlib40AndSystemCore(test).
GetDeclarationDiagnostics
().Verify(