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