400 references to ERR_NoTypeDef
Microsoft.CodeAnalysis.CSharp (3)
Compilation\CSharpCompilation.cs (1)
2281
=> code == (int)ErrorCode.
ERR_NoTypeDef
;
Errors\ErrorFacts.cs (1)
650
or ErrorCode.
ERR_NoTypeDef
Symbols\MissingMetadataTypeSymbol.cs (1)
80
return new CSDiagnosticInfo(ErrorCode.
ERR_NoTypeDef
, this, containingAssembly.Identity);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (35)
CodeGen\CodeGenAsyncIteratorTests.cs (4)
10525
Diagnostic(ErrorCode.
ERR_NoTypeDef
).WithArguments("S1", "libS1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(1, 1),
10527
Diagnostic(ErrorCode.
ERR_NoTypeDef
).WithArguments("S1", "libS1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(1, 1),
10529
Diagnostic(ErrorCode.
ERR_NoTypeDef
).WithArguments("S1", "libS1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(1, 1),
10531
Diagnostic(ErrorCode.
ERR_NoTypeDef
).WithArguments("S1", "libS1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(1, 1));
CodeGen\CodeGenDeconstructTests.cs (2)
8465
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "new C().M").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(7, 18)
8494
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "new C().M").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(7, 18)
CodeGen\CodeGenIterators.cs (2)
4177
Diagnostic(ErrorCode.
ERR_NoTypeDef
).WithArguments("S1", "libS1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(1, 1),
4179
Diagnostic(ErrorCode.
ERR_NoTypeDef
).WithArguments("S1", "libS1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(1, 1));
CodeGen\CodeGenNullCoalescingAssignmentTests.cs (1)
2687
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "c ??= new B()").WithArguments("A", $"{aRef.Display}, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(7, 9),
CodeGen\CodeGenOverridingAndHiding.cs (2)
4377
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "B").WithArguments("A", "A, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(1, 21)
4397
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "D").WithArguments("A", "A, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"));
CodeGen\CodeGenTupleTest.cs (21)
3778
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "C.GetTuple").WithArguments("Missing", "UseSiteDiagnosticOnTupleField_missingComp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
3781
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "Item1").WithArguments("Missing", "UseSiteDiagnosticOnTupleField_missingComp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")
3790
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "C.GetTuple").WithArguments("Missing", "UseSiteDiagnosticOnTupleField_missingComp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
3793
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "Item1").WithArguments("Missing", "UseSiteDiagnosticOnTupleField_missingComp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")
22278
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "A.M").WithArguments("(, )", "System.ValueTuple, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51").WithLocation(4, 24)
22318
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "A.M").WithArguments("(, )", "System.ValueTuple, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51").WithLocation(4, 24)
23152
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "(int, int)").WithArguments("System.ValueType", "System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a").WithLocation(3, 6),
23155
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "(int, int)").WithArguments("System.ValueType", "System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a").WithLocation(3, 18),
23158
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "((int, int), (int, int))").WithArguments("System.ValueType", "System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a").WithLocation(3, 5));
23201
Diagnostic(ErrorCode.
ERR_NoTypeDef
).WithArguments("B", "92872377-08d1-4723-8906-a43b03e56ed3, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(1, 1),
23203
Diagnostic(ErrorCode.
ERR_NoTypeDef
).WithArguments("B", "92872377-08d1-4723-8906-a43b03e56ed3, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(1, 1),
23205
Diagnostic(ErrorCode.
ERR_NoTypeDef
).WithArguments("A", "92872377-08d1-4723-8906-a43b03e56ed3, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(1, 1),
23207
Diagnostic(ErrorCode.
ERR_NoTypeDef
).WithArguments("A", "92872377-08d1-4723-8906-a43b03e56ed3, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(1, 1));
23933
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "(1, 2)").WithArguments("System.ValueType", "System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a").WithLocation(6, 17));
23985
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "(int, int)").WithArguments("System.ValueType", "System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a").WithLocation(6, 24),
23988
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "(1, 2)").WithArguments("System.ValueType", "System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a").WithLocation(8, 22));
26662
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "ToString").WithArguments("A<>", "A, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(6, 11));
26720
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "collectionA").WithArguments("(, )", "vt, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(7, 27),
26723
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "collectionA").WithArguments("(, )", "vt, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(7, 27)
26802
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "collectionA").WithArguments("System.ValueTuple<,,,,,,,>", "vt, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(7, 27),
26805
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "collectionA").WithArguments("System.ValueTuple<,,,,,,,>", "vt, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(7, 27)
CodeGen\UnsafeTests.cs (1)
5443
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "new Fixable(1)").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(6, 26),
Emit\NoPiaEmbedTypes.cs (2)
3128
Diagnostic(ErrorCode.
ERR_NoTypeDef
).WithArguments("System.Runtime.InteropServices.DispIdAttribute", "DispId, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(1, 1)
3135
Diagnostic(ErrorCode.
ERR_NoTypeDef
).WithArguments("System.Runtime.InteropServices.DispIdAttribute", "DispId, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(1, 1)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
Emit\NumericIntPtrTests.cs (1)
10962
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "Base").WithArguments("System.Object", "System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a").WithLocation(1, 24)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (79)
Attributes\AttributeTests_Assembly.cs (3)
1747
Diagnostic(ErrorCode.
ERR_NoTypeDef
).WithArguments("System.Runtime.CompilerServices.ExtensionAttribute", "System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089").WithLocation(1, 1)
2309
Diagnostic(ErrorCode.
ERR_NoTypeDef
).WithArguments("A1", "A1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(1, 1)
2365
Diagnostic(ErrorCode.
ERR_NoTypeDef
).WithArguments("C1", "A1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(1, 1)
Attributes\AttributeTests_NativeInteger.cs (2)
863
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "F1").WithArguments("B<>", "95d36b13-f2e1-495d-9ab6-62e8cc63ac22, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(6, 15),
866
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "F2").WithArguments("A", "95d36b13-f2e1-495d-9ab6-62e8cc63ac22, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(7, 15));
Attributes\AttributeTests_Tuples.cs (4)
188
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "(int x, int y)").WithArguments("System.ValueType", "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089").WithLocation(6, 11),
191
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "(0, 0)").WithArguments("System.ValueType", "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089").WithLocation(7, 11)
226
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "(int x, int y)").WithArguments("System.ValueType", "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089").WithLocation(4, 12),
229
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "(0, 0)").WithArguments("System.ValueType", "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089").WithLocation(4, 34)
Semantics\CollectionExpressionTests.cs (10)
9247
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "[]").WithArguments("A1", $"{assemblyA}, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(6, 13),
9250
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "[1, 2]").WithArguments("A1", $"{assemblyA}, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(8, 13),
9253
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "[3, 4]").WithArguments("A2", $"{assemblyA}, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(13, 13));
12212
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "b").WithArguments("A", $"{assemblyA}, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(3, 34),
12215
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "b").WithArguments("A", $"{assemblyA}, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(3, 34),
12218
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "b").WithArguments("A", $"{assemblyA}, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(3, 34));
19896
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "Create").WithArguments("MyCollectionBuilderBase", $"{assemblyA}, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(2, 76));
42016
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "x").WithArguments("A", $"{assemblyA}, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(11, 35),
42019
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "y").WithArguments("A", $"{assemblyA}, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(11, 40));
42073
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "[x, ..y]").WithArguments("MyCollectionA<>", $"{assemblyA}, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(7, 35));
Semantics\ExperimentalAttributeTests.cs (1)
907
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "M").WithArguments("Base", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(1, 3)
Semantics\ExtensionTests.cs (10)
14820
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "new Derived().M").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(1, 1),
14823
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "M").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(1, 15),
14826
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "new Derived().M2").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(2, 1),
14829
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "M2").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(2, 15));
14863
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "M").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(1, 15),
14866
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "M2").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(2, 15));
15013
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "M").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(1, 11));
15035
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "M").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(1, 17));
15052
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "M").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(1, 14));
15206
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "M").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(1, 5));
Semantics\PatternMatchingTests_ListPatterns.cs (31)
3287
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "[var item]").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(6, 18),
3290
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "[var item]").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(6, 18),
3293
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "[..var rest]").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(7, 18),
3296
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "[..var rest]").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(7, 18),
3299
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "..var rest").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(7, 19),
3302
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "..var rest").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(7, 19),
3305
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "c[^1]").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(8, 21),
3308
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "c[^1]").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(8, 21),
3311
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "c[1..^1]").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(9, 21),
3314
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "c[1..^1]").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(9, 21)
3382
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "[var item]").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(4, 10),
3385
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "[..var slice]").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(4, 29),
3388
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "..var slice").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(4, 30),
3391
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "c[^1]").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(6, 17),
3394
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "c[..]").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(7, 18)
3559
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "[var x]").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(2, 16),
3562
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "[var x]").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(2, 16),
3565
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "[.. var y]").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(3, 16),
3568
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "[.. var y]").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(3, 16),
3571
Diagnostic(ErrorCode.
ERR_NoTypeDef
, ".. var y").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(3, 17),
3574
Diagnostic(ErrorCode.
ERR_NoTypeDef
, ".. var y").WithArguments("Missing2", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(3, 17),
3577
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "new C().Slice").WithArguments("Missing2", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(4, 1),
3580
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "new C()[^1]").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(5, 5),
3583
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "new C()[^1]").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(5, 5),
3586
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "new C()[..]").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(6, 5),
3589
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "new C()[..]").WithArguments("Missing2", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(6, 5)
5378
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "[var item]").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(6, 18),
5381
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "[..var rest]").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(7, 18),
5384
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "..var rest").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(7, 19),
5387
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "c[^1]").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(8, 21),
5390
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "c[1..^1]").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(9, 21)
Semantics\RecordTests.cs (18)
4320
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "c1").WithArguments("A", "Clone_12, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(7, 18)
4362
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "c1").WithArguments("B", "Clone_13, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(7, 18),
4365
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "X").WithArguments("B", "Clone_13, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(7, 28),
4378
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "c1").WithArguments("B", "Clone_13, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(7, 18),
4381
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "X").WithArguments("B", "Clone_13, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(7, 28),
4459
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "C").WithArguments("A", "Clone_15, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(2, 8),
4462
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "B").WithArguments("A", "Clone_15, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(2, 19),
4465
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "B").WithArguments("A", "Clone_15, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(2, 19),
4468
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "C").WithArguments("A", "Clone_15, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(6, 22),
4471
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "c1").WithArguments("A", "Clone_15, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(7, 18),
4474
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "System").WithArguments("A", "Clone_15, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(8, 9),
4477
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "System").WithArguments("A", "Clone_15, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(9, 9)
4525
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "C").WithArguments("B", "Clone_16, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(2, 19),
4531
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "C").WithArguments("B", "Clone_16, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(2, 19),
4534
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "D").WithArguments("B", "Clone_16, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(6, 22)
4550
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "C").WithArguments("B", "Clone_16, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(2, 19),
4556
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "C").WithArguments("B", "Clone_16, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(2, 19),
4559
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "D").WithArguments("B", "Clone_16, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(6, 22)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (178)
Semantics\DeconstructionTests.cs (1)
1613
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "new C()").WithArguments("Missing", "libMissingComp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(7, 18),
Semantics\ForEachTests.cs (1)
3502
Diagnostic(ErrorCode.
ERR_NoTypeDef
, @"foreach (var x in new Enumerable())
Semantics\ImplicitObjectCreationTests.cs (9)
4257
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "c.M").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(6, 9),
4260
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "c.M").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(7, 9),
4263
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "c.M").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(8, 9)
4299
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "C").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(6, 13),
4302
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "C").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(7, 13),
4305
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "C").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(8, 13),
4308
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "new(null)").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(9, 15)
4340
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "C.M").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(6, 9)
4373
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "new(null)").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(7, 11)
Semantics\NativeIntegerTests.cs (2)
1176
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "B").WithArguments("System.Object", "9ef8b1e0-1ae0-4af6-b9a1-00f2078f299e, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(1, 11));
1248
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "A").WithArguments("System.IntPtr", "c804cc09-8f73-44a1-9cfe-9567bed1def6, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(1, 11));
Semantics\NullableReferenceTypesTests.cs (9)
9513
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "C").WithArguments("Base", "lib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(3, 20),
9516
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "D").WithArguments("Base", "lib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(2, 2),
9519
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "D").WithArguments("Base", "lib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(2, 2)
116703
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "A").WithArguments("System.ValueType", "mincorlib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2").WithLocation(4, 10),
116706
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "B").WithArguments("System.Enum", "mincorlib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2").WithLocation(4, 15),
116709
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "D").WithArguments("System.MulticastDelegate", "mincorlib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2").WithLocation(4, 25)
116771
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "A").WithArguments("System.ValueType", "mincorlib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2").WithLocation(4, 10),
116774
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "B").WithArguments("System.Enum", "mincorlib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2").WithLocation(4, 15),
116777
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "D").WithArguments("System.MulticastDelegate", "mincorlib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2").WithLocation(4, 25)
Semantics\RefFieldTests.cs (1)
1988
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "F").WithArguments("A", "A, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(7, 29));
Semantics\UseSiteErrorTests.cs (155)
55
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "ReturnType1").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
58
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "ReturnType2").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"));
74
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "ReturnType1").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
77
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "ReturnType2").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"));
112
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "ParameterType1").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
115
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "ParameterType2").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"));
145
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "CSharpErrors.InterfaceMethods").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(2, 11),
148
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "CSharpErrors.InterfaceMethods").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(2, 11),
151
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "CSharpErrors.InterfaceMethods").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(2, 11),
154
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "CSharpErrors.InterfaceMethods").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(2, 11)
173
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "ReturnType1").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
176
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "ReturnType2").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
179
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "ParameterType1").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
182
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "ParameterType2").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"));
224
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "CSharpErrors.InterfaceMethods").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(2, 11),
227
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "CSharpErrors.InterfaceMethods").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(2, 11),
230
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "CSharpErrors.InterfaceMethods").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(2, 11),
233
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "CSharpErrors.InterfaceMethods").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(2, 11)
252
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "ReturnType1").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
255
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "ReturnType2").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
258
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "ParameterType1").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
261
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "ParameterType2").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"));
302
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "Get1").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
305
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "Get2").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
308
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "Set1").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
311
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "Set2").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
314
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "GetSet1").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
317
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "GetSet2").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"));
339
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "Get1").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
342
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "Get2").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
345
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "Set1").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
348
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "Set2").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
351
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "GetSet1").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
354
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "GetSet2").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"));
394
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "CSharpErrors.InterfaceProperties").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(2, 11),
397
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "CSharpErrors.InterfaceProperties").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(2, 11),
400
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "CSharpErrors.InterfaceProperties").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(2, 11),
403
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "CSharpErrors.InterfaceProperties").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(2, 11),
406
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "CSharpErrors.InterfaceProperties").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(2, 11),
409
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "CSharpErrors.InterfaceProperties").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(2, 11)
432
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "set").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
435
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "get").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
438
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "set").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
441
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "get").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
444
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "get").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
447
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "set").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
450
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "set").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
453
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "get").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"));
511
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "CSharpErrors.InterfaceProperties").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(2, 11),
514
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "CSharpErrors.InterfaceProperties").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(2, 11),
517
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "CSharpErrors.InterfaceProperties").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(2, 11),
520
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "CSharpErrors.InterfaceProperties").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(2, 11),
523
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "CSharpErrors.InterfaceProperties").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(2, 11),
526
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "CSharpErrors.InterfaceProperties").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(2, 11)
549
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "set").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
552
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "get").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
555
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "set").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
558
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "get").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
561
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "get").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
564
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "set").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
567
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "set").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
570
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "get").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"));
593
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "GetSet1").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(5, 11),
596
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "GetSet1").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(5, 23),
599
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "GetSet2").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(6, 11),
602
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "GetSet2").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(6, 23),
605
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "GetSet3").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(7, 11),
608
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "GetSet3").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(7, 23),
611
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "GetSet3").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(11, 9),
614
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "GetSet3").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(11, 19));
643
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "Event1").WithArguments("UnavailableDelegate", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
646
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "Event2").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
649
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "Event3").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"));
676
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "Event1").WithArguments("UnavailableDelegate", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
679
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "Event2").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
682
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "Event3").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"));
699
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "Event1").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"));
714
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "Event1").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"));
740
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "CSharpErrors.InterfaceEvents").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(2, 11),
743
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "CSharpErrors.InterfaceEvents").WithArguments("UnavailableDelegate", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(2, 11),
746
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "CSharpErrors.InterfaceEvents").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(2, 11)
773
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "CSharpErrors.InterfaceEvents").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(2, 11),
776
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "CSharpErrors.InterfaceEvents").WithArguments("UnavailableDelegate", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(2, 11),
779
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "CSharpErrors.InterfaceEvents").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(2, 11)
795
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "Event1").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
798
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "Event1").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"));
813
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "remove").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
816
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "add").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"));
851
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "CSharpErrors.InterfaceEvents").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(2, 11),
854
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "CSharpErrors.InterfaceEvents").WithArguments("UnavailableDelegate", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(2, 11),
857
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "CSharpErrors.InterfaceEvents").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(2, 11)
873
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "remove").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
876
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "add").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"));
894
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "Event1").WithArguments("UnavailableDelegate", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
897
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "Event1").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"));
1000
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "del.Invoke").WithArguments("UnavailableClass<>", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(7, 16),
1003
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "bar").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(13, 56),
1006
Diagnostic(ErrorCode.
ERR_NoTypeDef
, @"myDelegate1(""goo"")").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(14, 9),
1009
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "new CSharpErrors.DelegateReturnType1(myDelegate1)").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(15, 56),
1012
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "new CSharpErrors.DelegateReturnType1(bar)").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(16, 30),
1015
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "=>").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(17, 58),
1018
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "=>").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(18, 70));
1066
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "A").WithArguments("MyFunc", "Delegate.Util, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(5, 13));
1159
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "B").WithArguments("X", "X, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
1162
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "B").WithArguments("X", "X, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"));
1270
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "string s").WithArguments("Base", "BaseAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(9, 18)
1666
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "Constructor1").WithArguments("Missing", "Missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
1669
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "Constructor2").WithArguments("Missing", "Missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
1673
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "Methods.M1").WithArguments("Missing", "Missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
1676
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "Methods.M2").WithArguments("Missing", "Missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
1680
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "Methods.M1").WithArguments("Missing", "Missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
1683
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "Methods.M2").WithArguments("Missing", "Missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
1687
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "new Indexer1()[1]").WithArguments("Missing", "Missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
1690
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "new Indexer2()[2]").WithArguments("Missing", "Missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"));
1740
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "d.M").WithArguments("Missing", "Missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
1743
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "d[1]").WithArguments("Missing", "Missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"));
1794
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "C").WithArguments("Missing", "Missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
1797
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "c.M").WithArguments("Missing", "Missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
1800
Diagnostic(ErrorCode.
ERR_NoTypeDef
, @"c[""A""]").WithArguments("Missing", "Missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"));
1851
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "C").WithArguments("Missing", "Missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
1854
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "c.M").WithArguments("Missing", "Missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
1857
Diagnostic(ErrorCode.
ERR_NoTypeDef
, @"c[""A"", null]").WithArguments("Missing", "Missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"));
1908
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "C").WithArguments("Missing", "Missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
1911
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "c.M").WithArguments("Missing", "Missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
1914
Diagnostic(ErrorCode.
ERR_NoTypeDef
, @"c[null, ""A""]").WithArguments("Missing", "Missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"));
1951
var getMissingDiagnostic = Diagnostic(ErrorCode.
ERR_NoTypeDef
, @"C.GetMissing").WithArguments("Missing", "Missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null");
1952
var setMissingDiagnostic = Diagnostic(ErrorCode.
ERR_NoTypeDef
, @"C.SetMissing").WithArguments("Missing", "Missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null");
2219
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "e").WithArguments("GeneralException", "Base, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(9, 23),
2228
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "SpecificException").WithArguments("GeneralException", "Base, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(11, 20)
2349
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "A").WithArguments("System.ValueType", "mincorlib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2").WithLocation(4, 10),
2352
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "B").WithArguments("System.Enum", "mincorlib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2").WithLocation(4, 15),
2355
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "D").WithArguments("System.MulticastDelegate", "mincorlib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2").WithLocation(4, 25)
2394
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "A").WithArguments("System.ValueType", "mincorlib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2").WithLocation(4, 10),
2397
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "B").WithArguments("System.Enum", "mincorlib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2").WithLocation(4, 15),
2400
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "D").WithArguments("System.MulticastDelegate", "mincorlib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2").WithLocation(4, 25)
2443
Assert.True(diagnostics.Any(d => d.Code == (int)ErrorCode.
ERR_NoTypeDef
));
2447
if (diagnostic.Code == (int)ErrorCode.
ERR_NoTypeDef
)
2488
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "&s2").WithArguments("S1", "libS1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(6, 19),
2515
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "sizeof(S2)").WithArguments("S1", "libS1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(6, 20),
2540
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "ptr").WithArguments("S1", "libS1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(4, 23),
2567
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "S2*").WithArguments("S1", "libS1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(6, 9),
2573
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "S2").WithArguments("S1", "libS1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(6, 31),
2579
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "S2*").WithArguments("S1", "libS1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(7, 9),
2585
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "stackalloc [] { default(S2) }").WithArguments("S1", "libS1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(7, 21),
2614
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "S2*").WithArguments("S1", "libS1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(7, 16),
2620
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "&s2").WithArguments("S1", "libS1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(7, 26),
2626
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "&s2").WithArguments("S1", "libS1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(7, 26),
2659
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "M").WithArguments("S1", "libS1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(8, 9),
2665
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "M").WithArguments("S1", "libS1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(9, 9));
2699
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "M").WithArguments("S1", "libS1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(13, 9),
2705
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "M").WithArguments("S1", "libS1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(14, 9));
2732
Diagnostic(ErrorCode.
ERR_NoTypeDef
).WithArguments("S1", "libS1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(1, 1),
2734
Diagnostic(ErrorCode.
ERR_NoTypeDef
).WithArguments("S1", "libS1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(1, 1),
2736
Diagnostic(ErrorCode.
ERR_NoTypeDef
).WithArguments("S1", "libS1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(1, 1));
2765
Diagnostic(ErrorCode.
ERR_NoTypeDef
).WithArguments("S1", "libS1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(1, 1)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (104)
BadSymbolReference.cs (60)
279
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "C5").WithArguments("CL2_I1", "CL2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(140, 11),
282
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "CL3_C1").WithArguments("CL2_C1", "CL2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(125, 16),
288
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "I2").WithArguments("CL2_I1", "CL2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(137, 15),
291
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "C5").WithArguments("CL2_I1", "CL2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(140, 11),
294
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "I2").WithArguments("CL2_I1", "CL2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(137, 15),
306
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "Test1").WithArguments("CL2_C1", "CL2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(27, 16),
309
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "Test1").WithArguments("CL2_C1", "CL2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(32, 24),
318
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "x").WithArguments("CL2_C1", "CL2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(88, 22),
324
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "CL3_C2.Test1").WithArguments("CL2_C1", "CL2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(151, 9),
327
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "CL3_C2.Test1").WithArguments("CL2_C1", "CL2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(156, 9),
333
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "CL3_C2.Test3").WithArguments("CL2_C1", "CL2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(161, 9),
339
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "CL3_C2.Test4").WithArguments("CL2_C1", "CL2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(171, 9),
345
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "y.Test1").WithArguments("CL2_C1", "CL2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(177, 9),
348
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "Test2").WithArguments("CL2_C1", "CL2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(195, 23),
351
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "y.w(null)").WithArguments("CL2_C1", "CL2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(207, 9),
354
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "=>").WithArguments("CL2_C1", "CL2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(212, 26),
810
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "D").WithArguments("System.Drawing.Point", "System.Drawing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"));
819
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "D").WithArguments("System.Drawing.Point", "System.Drawing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"));
944
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "C12").WithArguments("ErrorTest.I3", "MissingTypeInTypeArgumentsOfImplementedInterface2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
950
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "C9").WithArguments("ErrorTest.I3", "MissingTypeInTypeArgumentsOfImplementedInterface2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
956
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "C11").WithArguments("ErrorTest.I3", "MissingTypeInTypeArgumentsOfImplementedInterface2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
959
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "C6").WithArguments("ErrorTest.I3", "MissingTypeInTypeArgumentsOfImplementedInterface2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
965
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "x").WithArguments("ErrorTest.I3", "MissingTypeInTypeArgumentsOfImplementedInterface2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
971
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "x").WithArguments("ErrorTest.I3", "MissingTypeInTypeArgumentsOfImplementedInterface2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
977
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "x").WithArguments("ErrorTest.I3", "MissingTypeInTypeArgumentsOfImplementedInterface2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
980
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "y4").WithArguments("ErrorTest.I3", "MissingTypeInTypeArgumentsOfImplementedInterface2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
986
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "y5").WithArguments("ErrorTest.I3", "MissingTypeInTypeArgumentsOfImplementedInterface2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
992
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "y3").WithArguments("ErrorTest.I3", "MissingTypeInTypeArgumentsOfImplementedInterface2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
998
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "y").WithArguments("ErrorTest.I3", "MissingTypeInTypeArgumentsOfImplementedInterface2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
1160
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "C8").WithArguments("ErrorTest.I2", "MissingImplementedInterface2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
1163
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "C6").WithArguments("ErrorTest.I2", "MissingImplementedInterface2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
1175
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "C10").WithArguments("ErrorTest.I2", "MissingImplementedInterface2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
1181
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "C11").WithArguments("ErrorTest.I2", "MissingImplementedInterface2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
1187
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "x").WithArguments("ErrorTest.I2", "MissingImplementedInterface2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
1193
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "x").WithArguments("ErrorTest.I2", "MissingImplementedInterface2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
1196
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "c13").WithArguments("ErrorTest.C12", "MissingImplementedInterface2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
1202
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "y").WithArguments("ErrorTest.I2", "MissingImplementedInterface2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
1208
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "y3").WithArguments("ErrorTest.I2", "MissingImplementedInterface2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
1217
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "M1").WithArguments("ErrorTest.I2", "MissingImplementedInterface2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
1226
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "y4").WithArguments("ErrorTest.I2", "MissingImplementedInterface2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
1232
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "M1").WithArguments("ErrorTest.I2", "MissingImplementedInterface2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
1254
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "C6").WithArguments("ErrorTest.I2", "MissingImplementedInterface2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
1257
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "C8").WithArguments("ErrorTest.I2", "MissingImplementedInterface2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
1260
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "x").WithArguments("ErrorTest.I2", "MissingImplementedInterface2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
1263
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "x").WithArguments("ErrorTest.I2", "MissingImplementedInterface2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
1266
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "C10").WithArguments("ErrorTest.I2", "MissingImplementedInterface2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
1269
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "C11").WithArguments("ErrorTest.I2", "MissingImplementedInterface2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
1272
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "y").WithArguments("ErrorTest.I2", "MissingImplementedInterface2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
1275
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "c13").WithArguments("ErrorTest.C12", "MissingImplementedInterface2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
1281
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "y3").WithArguments("ErrorTest.I2", "MissingImplementedInterface2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
1287
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "y4").WithArguments("ErrorTest.I2", "MissingImplementedInterface2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
1290
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "M1").WithArguments("ErrorTest.I2", "MissingImplementedInterface2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
1293
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "M1").WithArguments("ErrorTest.I2", "MissingImplementedInterface2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
1383
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "C4").WithArguments("ErrorTest.C2", "MissingBaseClass2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
1389
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "C7").WithArguments("ErrorTest.C2", "MissingBaseClass2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
1395
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "x").WithArguments("ErrorTest.C2", "MissingBaseClass2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
1398
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "M1").WithArguments("ErrorTest.C2", "MissingBaseClass2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
1404
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "y").WithArguments("ErrorTest.C2", "MissingBaseClass2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
1410
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "y3").WithArguments("ErrorTest.C2", "MissingBaseClass2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
1416
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "M1").WithArguments("ErrorTest.C2", "MissingBaseClass2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
Compilation\ReferenceManagerTests.cs (3)
1897
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "C").WithArguments("System.Object", "System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"));
2729
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "C").WithArguments("D", "D, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"));
2757
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "C").WithArguments("D", "B, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"));
Compilation\UsedAssembliesTests.cs (2)
1589
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "x.M1").WithArguments("C0", "MethodReference_05_0, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(7, 9)
1776
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "new C2().M1").WithArguments("C0", "MethodReference_07_0, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(7, 9)
Symbols\EnumTests.cs (3)
348
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "F").WithArguments("A", "UseSiteError_sourceA, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(5, 31)
392
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "F").WithArguments("A", "UseSiteError_sourceA, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(5, 20)
399
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "F").WithArguments("A", "UseSiteError_sourceA, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(5, 20)
Symbols\GenericConstraintTests.cs (29)
2874
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "a").WithArguments("C", "other, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(3, 29),
2880
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "M<string>").WithArguments("C", "other, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(6, 11));
2969
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "T1A").WithArguments("IA", "d521fe98-c881-45cf-0788-249e00d004ea, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(3, 17),
2972
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "U2A").WithArguments("A", "d521fe98-c881-45cf-0788-249e00d004ea, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(7, 22),
2975
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "T3A").WithArguments("IA", "d521fe98-c881-45cf-0788-249e00d004ea, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(11, 17),
2978
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "U3A").WithArguments("A", "d521fe98-c881-45cf-0788-249e00d004ea, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(11, 22),
2981
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "T1B").WithArguments("IA", "d521fe98-c881-45cf-0788-249e00d004ea, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(15, 29),
2984
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "U2B").WithArguments("A", "d521fe98-c881-45cf-0788-249e00d004ea, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(19, 34),
2987
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "T3B").WithArguments("IA", "d521fe98-c881-45cf-0788-249e00d004ea, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(23, 29),
2990
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "U3B").WithArguments("A", "d521fe98-c881-45cf-0788-249e00d004ea, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(23, 34),
2993
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "B5").WithArguments("A", "d521fe98-c881-45cf-0788-249e00d004ea, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(25, 13),
2996
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "T4B").WithArguments("A", "d521fe98-c881-45cf-0788-249e00d004ea, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(27, 29),
2999
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "U4B").WithArguments("IA", "d521fe98-c881-45cf-0788-249e00d004ea, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(27, 34));
3038
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "a").WithArguments("B2", "other, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(4, 30),
3041
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "a").WithArguments("I", "other, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(4, 30),
3050
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "a").WithArguments("B1", "other, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(3, 30),
3059
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "M<object>").WithArguments("B3", "other, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(7, 12));
3107
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "a").WithArguments("B2", "d521fe98-c881-45cf-8870-249e00ae400d, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(4, 30),
3110
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "a").WithArguments("I", "d521fe98-c881-45cf-8870-249e00ae400d, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(4, 30),
3116
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "a").WithArguments("B1", "d521fe98-c881-45cf-8870-249e00ae400d, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(3, 30),
3122
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "M<object>").WithArguments("B3", "d521fe98-c881-45cf-8870-249e00ae400d, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(7, 12));
3149
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "o").WithArguments("B", "other, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(3, 30),
3155
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "o").WithArguments("B", "other, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(4, 32),
3161
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "o").WithArguments("B", "other, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(5, 36),
3167
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "o").WithArguments("B", "other, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(6, 38),
6477
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "C<D>").WithArguments("A", "e521fe98-c881-45cf-8870-249e00ae400d, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(1, 11),
6480
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "D").WithArguments("IA", "e521fe98-c881-45cf-8870-249e00ae400d, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
6483
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "D").WithArguments("A", "e521fe98-c881-45cf-8870-249e00ae400d, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
6486
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "D").WithArguments("IA", "e521fe98-c881-45cf-8870-249e00ae400d, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(1, 7));
Symbols\Metadata\PE\TypeForwarders.cs (2)
758
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "Derived").WithArguments("Base", "pe3, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"));
1719
Diagnostic(ErrorCode.
ERR_NoTypeDef
).WithArguments("CF1", "ForwarderTargetAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"));
Symbols\Source\SourcePlusMetadataTests.cs (1)
286
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "B.GetC").WithArguments("C", "C, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"));
Symbols\SymbolErrorTests.cs (4)
147
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "var").WithArguments("C1<>.C2<>", "MDTestLib1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"),
20444
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "MyAttribute2").WithArguments("MyAttribute1", "Bug7920_CS, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")
20856
Diagnostic(ErrorCode.
ERR_NoTypeDef
, "ClassB.MethodB").WithArguments("C.ClassC", "D, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(10, 38));
20923
Diagnostic(ErrorCode.
ERR_NoTypeDef
).WithArguments("Testspace.TestType", "D, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").WithLocation(1, 1));