224 references to WRN_ManagedAddr
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_Expressions.cs (1)
1609
diagnostics.Add(ErrorCode.
WRN_ManagedAddr
, location, type);
Errors\ErrorFacts.cs (2)
528
case ErrorCode.
WRN_ManagedAddr
:
2329
or ErrorCode.
WRN_ManagedAddr
Generated\ErrorFacts.Generated.cs (1)
185
case ErrorCode.
WRN_ManagedAddr
:
Microsoft.CodeAnalysis.CSharp.CSharp15.UnitTests (49)
UnsafeEvolutionTests.cs (49)
2307
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "string*").WithArguments("string").WithLocation(2, 1),
2310
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&s").WithArguments("string").WithLocation(2, 13),
2323
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "string*").WithArguments("string").WithLocation(2, 1),
2329
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&s").WithArguments("string").WithLocation(2, 13));
2352
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "string*").WithArguments("string").WithLocation(2, 1),
2358
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&s").WithArguments("string").WithLocation(2, 13));
2373
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "string*").WithArguments("string").WithLocation(2, 10),
2376
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&s").WithArguments("string").WithLocation(2, 22),
2386
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "string*").WithArguments("string").WithLocation(2, 10),
2389
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&s").WithArguments("string").WithLocation(2, 22),
2412
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "string*").WithArguments("string").WithLocation(2, 10),
2415
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&s").WithArguments("string").WithLocation(2, 22));
2666
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "string*").WithArguments("string").WithLocation(6, 16),
2669
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&x").WithArguments("string").WithLocation(6, 29),
2675
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&x").WithArguments("string").WithLocation(6, 29),
2678
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "string*").WithArguments("string").WithLocation(7, 25),
2681
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&x").WithArguments("string").WithLocation(7, 38),
2684
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&x").WithArguments("string").WithLocation(7, 38));
2690
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "string*").WithArguments("string").WithLocation(6, 16),
2693
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&x").WithArguments("string").WithLocation(6, 29),
2696
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&x").WithArguments("string").WithLocation(6, 29),
2699
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "string*").WithArguments("string").WithLocation(7, 25),
2702
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&x").WithArguments("string").WithLocation(7, 38),
2705
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&x").WithArguments("string").WithLocation(7, 38),
2738
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "string*").WithArguments("string").WithLocation(6, 16),
2741
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&x").WithArguments("string").WithLocation(6, 29),
2747
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&x").WithArguments("string").WithLocation(6, 29),
2750
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "string*").WithArguments("string").WithLocation(7, 25),
2753
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&x").WithArguments("string").WithLocation(7, 38),
2756
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&x").WithArguments("string").WithLocation(7, 38));
2919
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "sizeof(string)").WithArguments("string").WithLocation(1, 5),
2925
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "sizeof(string)").WithArguments("string").WithLocation(2, 14));
2931
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "sizeof(string)").WithArguments("string").WithLocation(1, 5),
2934
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "sizeof(string)").WithArguments("string").WithLocation(2, 14),
2961
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "sizeof(string)").WithArguments("string").WithLocation(1, 5),
2967
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "sizeof(string)").WithArguments("string").WithLocation(2, 14));
3238
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "string*").WithArguments("string").WithLocation(2, 10),
3404
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "string*").WithArguments("string").WithLocation(1, 11),
3407
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "string*").WithArguments("string").WithLocation(2, 20),
3413
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "x").WithArguments("string").WithLocation(6, 26),
3416
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "x").WithArguments("string").WithLocation(7, 33));
3422
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "string*").WithArguments("string").WithLocation(1, 11),
3425
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "string*").WithArguments("string").WithLocation(2, 20),
3428
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "x").WithArguments("string").WithLocation(6, 26),
3431
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "x").WithArguments("string").WithLocation(7, 33),
3467
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "string*").WithArguments("string").WithLocation(1, 11),
3470
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "string*").WithArguments("string").WithLocation(2, 20),
3476
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "x").WithArguments("string").WithLocation(6, 26),
3479
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "x").WithArguments("string").WithLocation(7, 33));
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3)
CodeGen\CodeGenMscorlib.cs (1)
158
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&result").WithArguments("System.TypedReference").WithLocation(100, 34)
CodeGen\CodeGenTupleTest.cs (1)
14408
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "M5").WithArguments("System.ValueTuple<int, int, int, int, int, int, int, T>").WithLocation(25, 69),
Emit\CompilationEmitTests.cs (1)
1413
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "S*").WithArguments("S").WithLocation(7, 45)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (4)
Emit\ManagedAddressTests.cs (4)
55
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "int[]*").WithArguments("int[]").WithLocation(6, 5),
58
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&x").WithArguments("int[]").WithLocation(6, 17),
61
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "_x").WithArguments("int[]").WithLocation(13, 20),
64
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "x").WithArguments("int[]").WithLocation(15, 21)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (3)
Semantics\ExtensionTests2.cs (1)
26845
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "object?*[]").WithArguments("object").WithLocation(5, 15));
Semantics\PatternMatchingTests.cs (2)
4472
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "c").WithArguments("var").WithLocation(5, 42),
4475
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "e").WithArguments("Typ").WithLocation(5, 50),
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (2)
IOperation\IOperationTests_ISizeOfExpression.cs (2)
62
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "sizeof(C)").WithArguments("C").WithLocation(8, 23),
77
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "sizeof(C)").WithArguments("C").WithLocation(8, 23),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (149)
Semantics\DynamicTests.cs (1)
618
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&d").WithArguments("dynamic"),
Semantics\FunctionPointerTests.cs (1)
3653
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "ptr").WithArguments("C").WithLocation(6, 30),
Semantics\GenericConstraintsTests.cs (7)
3327
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&myStruct").WithArguments("MyStruct<string>").WithLocation(12, 12));
3499
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "M2<U>").WithArguments("MyStruct<U>").WithLocation(12, 9),
3505
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&myStruct").WithArguments("MyStruct<U>").WithLocation(12, 15),
3508
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "ms").WithArguments("MyStruct<V>").WithLocation(15, 43),
3538
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&myStruct").WithArguments("MyStruct<string>").WithLocation(12, 12),
3541
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "ms").WithArguments("MyStruct<string>").WithLocation(15, 45));
4287
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&ms").WithArguments("MyStruct<object>").WithLocation(12, 19)
Semantics\NullableReferenceTypesTests.cs (7)
2697
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "C<string?>*").WithArguments("C<string?>").WithLocation(6, 9),
2700
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&x").WithArguments("C<string>").WithLocation(6, 26),
2706
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "C<string?>*").WithArguments("C<string?>").WithLocation(7, 9),
2709
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&x!").WithArguments("C<string>").WithLocation(7, 26),
93863
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "x").WithArguments("object").WithLocation(4, 28),
93866
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "y").WithArguments("object").WithLocation(4, 39),
93896
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "z").WithArguments("object").WithLocation(20, 27)
Semantics\OverloadResolutionTests.cs (1)
805
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "F0").WithArguments("C<MyTask<int>>").WithLocation(6, 28));
Semantics\RefFieldTests.cs (68)
762
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "s2").WithArguments("S2").WithLocation(15, 13),
768
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "c").WithArguments("C").WithLocation(16, 12),
771
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "s2").WithArguments("S2").WithLocation(22, 13),
774
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "c").WithArguments("C").WithLocation(23, 12)
781
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "s2").WithArguments("S2").WithLocation(15, 13),
784
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "c").WithArguments("C").WithLocation(16, 12),
787
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "s2").WithArguments("S2").WithLocation(22, 13),
790
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "c").WithArguments("C").WithLocation(23, 12)
824
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "M2").WithArguments("S2").WithLocation(14, 9),
827
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "S2*").WithArguments("S2").WithLocation(14, 18),
830
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "M3").WithArguments("C").WithLocation(15, 8),
833
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "C*").WithArguments("C").WithLocation(15, 17)
873
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "S2*").WithArguments("S2").WithLocation(20, 9),
876
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "C*").WithArguments("C").WithLocation(25, 9)
956
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "S2*").WithArguments("S2").WithLocation(23, 16),
959
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&Prop2").WithArguments("S2").WithLocation(23, 25),
962
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&Prop2").WithArguments("S2").WithLocation(23, 25),
965
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&Prop2").WithArguments("S2").WithLocation(27, 27),
968
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&Prop2").WithArguments("S2").WithLocation(27, 27),
971
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "C*").WithArguments("C").WithLocation(31, 16),
974
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&Prop3").WithArguments("C").WithLocation(31, 24),
977
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&Prop3").WithArguments("C").WithLocation(31, 24),
980
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&Prop3").WithArguments("C").WithLocation(35, 27),
983
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&Prop3").WithArguments("C").WithLocation(35, 27)
1078
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "S2*").WithArguments("S2").WithLocation(16, 14),
1093
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "C*").WithArguments("C").WithLocation(17, 14),
1099
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "S2*").WithArguments("S2").WithLocation(23, 14),
1102
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "C*").WithArguments("C").WithLocation(24, 14)
1109
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "S2*").WithArguments("S2").WithLocation(16, 14),
1112
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "C*").WithArguments("C").WithLocation(17, 14),
1115
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "S2*").WithArguments("S2").WithLocation(23, 14),
1118
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "C*").WithArguments("C").WithLocation(24, 14)
1169
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "S2*").WithArguments("S2").WithLocation(19, 23),
1172
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "C*").WithArguments("C").WithLocation(23, 23),
1175
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "sizeof(S2)").WithArguments("S2").WithLocation(27, 16),
1178
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "sizeof(C)").WithArguments("C").WithLocation(31, 16)
1234
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "S2*").WithArguments("S2").WithLocation(19, 23),
1237
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "C*").WithArguments("C").WithLocation(23, 23)
1313
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&s").WithArguments("S2").WithLocation(19, 17),
1319
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&s").WithArguments("S2").WithLocation(23, 17),
1325
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&s").WithArguments("S2").WithLocation(35, 17),
1328
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&s").WithArguments("S2").WithLocation(39, 17),
1338
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&s").WithArguments("S2").WithLocation(19, 17),
1341
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&s").WithArguments("S2").WithLocation(23, 17),
1347
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&s").WithArguments("S2").WithLocation(35, 17),
1350
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&s").WithArguments("S2").WithLocation(39, 17),
1381
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&s").WithArguments("S2").WithLocation(11, 17)
1418
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&s").WithArguments("S2").WithLocation(13, 25)
1452
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "S2*").WithArguments("S2").WithLocation(10, 11)
1497
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&s").WithArguments("S2").WithLocation(19, 17)
1542
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&s").WithArguments("S2").WithLocation(19, 17)
1596
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "S2*").WithArguments("S2").WithLocation(20, 9),
1602
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "C*").WithArguments("C").WithLocation(21, 9),
1652
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "S2*").WithArguments("S2").WithLocation(20, 9),
1658
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "C*").WithArguments("C").WithLocation(24, 9),
1698
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "S2*").WithArguments("S2").WithLocation(16, 29),
1701
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "C*").WithArguments("C").WithLocation(17, 29),
1704
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "S2*").WithArguments("S2").WithLocation(20, 9),
1707
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "S2*").WithArguments("S2").WithLocation(20, 30),
1710
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "C*").WithArguments("C").WithLocation(21, 9),
1713
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "C*").WithArguments("C").WithLocation(21, 29)
1754
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "S2*").WithArguments("S2").WithLocation(16, 19),
1757
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "C*").WithArguments("C").WithLocation(17, 19),
1760
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "S2*").WithArguments("S2").WithLocation(24, 9),
1763
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "C*").WithArguments("C").WithLocation(25, 9)
10339
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "StructWithRefField*").WithArguments("StructWithRefField").WithLocation(4, 5),
10378
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "StructWithIndirectRefField*").WithArguments("StructWithIndirectRefField").WithLocation(4, 5),
10418
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "StructWithIndirectRefField*").WithArguments("StructWithIndirectRefField").WithLocation(4, 5),
Semantics\SemanticErrorTests.cs (9)
8192
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "myClass*").WithArguments("myClass").WithLocation(26, 9),
8195
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&s").WithArguments("myClass").WithLocation(26, 23),
8198
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "sizeof(myProblemStruct)").WithArguments("myProblemStruct").WithLocation(29, 17));
8242
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "_object").WithArguments("object").WithLocation(9, 13),
8245
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "_string").WithArguments("string").WithLocation(24, 13),
8248
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "_dynamic").WithArguments("dynamic").WithLocation(29, 14),
8251
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "d").WithArguments("D").WithLocation(31, 8),
8254
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "i").WithArguments("I").WithLocation(33, 8),
8257
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "c").WithArguments("C").WithLocation(34, 8)
Semantics\UnsafeTests.cs (47)
6026
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "M").WithArguments("System.TypedReference").WithLocation(4, 42),
6029
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "r").WithArguments("System.TypedReference").WithLocation(4, 67)
6045
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "M").WithArguments("System.TypedReference").WithLocation(3, 28),
6048
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "r").WithArguments("System.TypedReference").WithLocation(3, 53)
6104
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "System.TypedReference*").WithArguments("System.TypedReference").WithLocation(6, 9)
6254
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "s").WithArguments("S1").WithLocation(4, 16));
6280
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "bb").WithArguments("A.B").WithLocation(4, 16),
6283
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "cc").WithArguments("A.B.C").WithLocation(9, 21),
6286
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "aa").WithArguments("A").WithLocation(13, 28));
6304
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "s").WithArguments("S").WithLocation(6, 19));
6328
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "p").WithArguments("S").WithLocation(5, 15),
6331
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "s").WithArguments("S").WithLocation(12, 15),
6334
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "M").WithArguments("S").WithLocation(4, 8),
6337
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "P").WithArguments("S").WithLocation(7, 8),
6340
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "this").WithArguments("S").WithLocation(9, 8),
6343
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "p").WithArguments("S").WithLocation(10, 17));
6358
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "s").WithArguments("int[]").WithLocation(4, 19));
6479
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&bad").WithArguments("External<object>").WithLocation(13, 22),
6482
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&bad2").WithArguments("External<U>").WithLocation(16, 23)
6837
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&E").WithArguments("System.Action").WithLocation(54, 17),
6901
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&t").WithArguments("T").WithLocation(6, 18),
6904
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&c").WithArguments("C").WithLocation(9, 18),
6907
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&s").WithArguments("S").WithLocation(12, 18),
6910
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&anon").WithArguments("<empty anonymous type>").WithLocation(15, 18));
6938
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&s").WithArguments("S").WithLocation(7, 17));
7905
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "S*").WithArguments("S").WithLocation(13, 9),
7908
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&s").WithArguments("S").WithLocation(13, 16),
10118
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "a").WithArguments("string").WithLocation(8, 26));
10253
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "a").WithArguments("char[]").WithLocation(8, 26));
10463
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "sizeof(T)").WithArguments("T").WithLocation(7, 13),
10466
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "sizeof(C)").WithArguments("C").WithLocation(8, 13),
10469
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "sizeof(S)").WithArguments("S").WithLocation(9, 13));
11627
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "c").WithArguments("T").WithLocation(17, 28),
11655
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "c").WithArguments("T").WithLocation(17, 28),
11705
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "c").WithArguments("T").WithLocation(17, 28),
11730
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "c").WithArguments("T").WithLocation(17, 28),
11741
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "c").WithArguments("T").WithLocation(17, 28),
11766
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "c").WithArguments("T").WithLocation(17, 28),
11796
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "c").WithArguments("string").WithLocation(13, 33),
11818
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "c").WithArguments("string").WithLocation(13, 33),
11858
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "c").WithArguments("string").WithLocation(13, 33),
11871
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "c").WithArguments("string").WithLocation(13, 33),
11882
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "c").WithArguments("string").WithLocation(13, 33),
11895
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "c").WithArguments("string").WithLocation(13, 33),
14817
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "y").WithArguments("X.Y").WithLocation(5, 36));
14839
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "y").WithArguments("X<int>").WithLocation(5, 39));
14897
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "str").WithArguments("string").WithLocation(3, 32));
Semantics\UseSiteErrorTests.cs (8)
2491
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&s2").WithArguments("S2").WithLocation(6, 19)
2518
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "sizeof(S2)").WithArguments("S2").WithLocation(6, 20));
2543
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "ptr").WithArguments("S2").WithLocation(4, 23));
2570
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "S2*").WithArguments("S2").WithLocation(6, 9),
2582
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "S2*").WithArguments("S2").WithLocation(7, 9),
2617
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "S2*").WithArguments("S2").WithLocation(7, 16),
2623
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&s2").WithArguments("S2").WithLocation(7, 26),
2629
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "&s2").WithArguments("S2").WithLocation(7, 26)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (9)
Symbols\GenericConstraintTests.cs (3)
352
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "o").WithArguments("A<string>.B1").WithLocation(9, 28),
358
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "o").WithArguments("A<A<int>.B2>.B1").WithLocation(10, 30),
370
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "o").WithArguments("A<int>").WithLocation(8, 27));
Symbols\Source\BaseClassTests.cs (6)
2292
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "F").WithArguments("Base.D").WithLocation(13, 11),
2298
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "E").WithArguments("Base.C").WithLocation(12, 11));
2332
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "F").WithArguments("Base.D").WithLocation(13, 11),
2338
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "E").WithArguments("Base.C").WithLocation(12, 11));
2350
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "F").WithArguments("Base.D").WithLocation(13, 11),
2356
Diagnostic(ErrorCode.
WRN_ManagedAddr
, "E").WithArguments("Base.C").WithLocation(12, 11));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
403
case ErrorCode.
WRN_ManagedAddr
: