574 references to ERR_UnsafeNeeded
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder_Unsafe.cs (1)
62
? new CSDiagnosticInfo(ErrorCode.
ERR_UnsafeNeeded
)
Errors\ErrorFacts.cs (1)
790
or ErrorCode.
ERR_UnsafeNeeded
Symbols\Source\SourceMemberFieldSymbol.cs (1)
594
diagnosticsForFirstDeclarator.Add(ErrorCode.
ERR_UnsafeNeeded
, declarator.Location);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (47)
CodeGen\CodeGenFunctionPointersTests.cs (9)
11515
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "default(B<delegate*<void>[]>.E)").WithLocation(11, 4),
11518
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "delegate*").WithLocation(11, 14));
11567
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "default(B<delegate*<void>[]>.E)").WithLocation(11, 12),
11570
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "delegate*").WithLocation(11, 22));
11644
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "delegate*").WithLocation(3, 16)
11707
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "default").WithLocation(11, 4)
12072
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "B<delegate*<void>[]>").WithLocation(12, 12),
12075
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "B<delegate*<void>[]>.C").WithLocation(12, 12),
12078
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "delegate*").WithLocation(12, 14));
CodeGen\FixedSizeBufferTests.cs (2)
364
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "s.x").WithLocation(14, 34),
367
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "a[0].x").WithLocation(18, 34)
CodeGen\UnsafeTests.cs (36)
93
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(4, 12),
96
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "M(param)").WithLocation(6, 9),
99
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "param").WithLocation(6, 11)
119
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(4, 12),
122
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "M(param)").WithLocation(6, 9),
125
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "param").WithLocation(6, 11)
145
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(4, 14),
148
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "M(param)").WithLocation(6, 9),
151
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "param").WithLocation(6, 11)
171
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(4, 7),
174
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "new C(param)").WithLocation(6, 9),
177
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "param").WithLocation(6, 15)
197
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(4, 7),
200
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "new C(param)").WithLocation(6, 9),
203
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "param").WithLocation(6, 15)
9968
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "c.Field").WithLocation(3, 5)
10557
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(6, 21),
10560
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "ptr").WithLocation(6, 26),
10563
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "ptr").WithLocation(6, 34),
10566
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(10, 21),
10569
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "a").WithLocation(10, 28),
10572
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "a").WithLocation(10, 34),
10575
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "delegate*").WithLocation(14, 21),
10578
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "ptr").WithLocation(14, 37),
10581
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "ptr").WithLocation(14, 45),
10584
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "delegate*").WithLocation(18, 23),
10587
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "a").WithLocation(18, 42),
10590
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "a").WithLocation(18, 48)
10628
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "ptr").WithLocation(11, 17),
10631
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "ptr").WithLocation(11, 25),
10634
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "a").WithLocation(15, 17),
10637
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "a").WithLocation(15, 23),
10640
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "ptr").WithLocation(19, 17),
10643
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "ptr").WithLocation(19, 25),
10646
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "a").WithLocation(23, 17),
10649
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "a").WithLocation(23, 23)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (28)
Attributes\AttributeTests.cs (7)
10182
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "F").WithLocation(8, 28)
10220
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "F").WithLocation(9, 28)
10840
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(5, 7),
10846
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "delegate*").WithLocation(8, 7),
10901
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(5, 7));
10907
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(5, 7));
11582
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(2, 4));
PartialEventsAndConstructorsTests.cs (3)
2916
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(8, 15),
2919
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(9, 43),
2922
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(10, 43));
Semantics\CollectionExpressionTests.cs (3)
42817
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "[2, 3]").WithLocation(5, 24)
42897
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "2").WithLocation(5, 25),
42900
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "3").WithLocation(5, 28)
Semantics\ExtensionTests.cs (1)
18556
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "object.M").WithLocation(1, 7));
Semantics\OutVarTests.cs (2)
32029
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "a[2]").WithLocation(3, 12)
32060
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "a[2]").WithLocation(3, 12),
Semantics\ParamsCollectionTests.cs (6)
13558
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "Params.Test()").WithLocation(5, 9),
13561
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "Params.Test(1)").WithLocation(6, 9),
13564
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "Params.Test(2, 3)").WithLocation(7, 9)
13659
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "1").WithLocation(6, 21),
13662
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "2").WithLocation(7, 21),
13665
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "3").WithLocation(7, 24)
Semantics\PatternMatchingTests_Global.cs (2)
6192
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "a[2]").WithLocation(3, 12)
6221
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "a[2]").WithLocation(3, 12),
Semantics\PrimaryConstructorTests.cs (4)
21981
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(2, 11),
21984
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "x").WithLocation(4, 22),
21987
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(7, 10),
21990
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "x").WithLocation(9, 22)
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (16)
IOperation\IOperationTests_StackAllocArrayCreationAndInitializer.cs (16)
36
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "stackalloc int[1]").WithLocation(6, 27)
64
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "stackalloc M[1]").WithLocation(8, 27)
93
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "stackalloc M[dimension]").WithLocation(9, 27)
121
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "stackalloc M[dimension]").WithLocation(8, 27)
152
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "stackalloc M[dimension]").WithLocation(8, 27)
183
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "stackalloc M[(int)dimension]").WithLocation(8, 27)
210
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "stackalloc int[] { 42 }").WithLocation(6, 27)
237
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "stackalloc int[1] { 42 }").WithLocation(6, 27)
323
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "stackalloc M[] { new M() }").WithLocation(8, 27)
355
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "stackalloc[] { new M() }").WithLocation(8, 27)
455
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "stackalloc[] { 2, a, default }").WithLocation(7, 27)
509
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "stackalloc int[] { 1 }").WithLocation(6, 27)
541
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "stackalloc int[b]").WithLocation(6, 27)
572
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "stackalloc int[M()]").WithLocation(6, 27)
606
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "stackalloc int[(int)M()]").WithLocation(6, 27)
704
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "stackalloc int[0.0]").WithLocation(6, 27)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (371)
Semantics\BindingAsyncTests.cs (2)
749
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(8, 26),
752
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "delegate*").WithLocation(9, 26)
Semantics\FunctionPointerTests.cs (2)
73
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "delegate*").WithLocation(2, 11),
132
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "delegate*").WithLocation(2, 43));
Semantics\GlobalUsingDirectiveTests.cs (2)
5066
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "X").WithLocation(4, 5));
5085
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(2, 18));
Semantics\LocalFunctionTests.cs (6)
2431
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(37, 40),
2437
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "Local(&x)").WithLocation(39, 17),
2440
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "&x").WithLocation(39, 23)
3180
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "&x").WithLocation(11, 32)
4546
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "void*").WithLocation(11, 29),
4549
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "(void*)null").WithLocation(11, 28),
Semantics\RefFieldTests.cs (18)
756
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "S*").WithLocation(14, 9),
759
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "S2*").WithLocation(15, 9),
765
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "C*").WithLocation(16, 9),
1032
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "void*").WithLocation(13, 12),
1035
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "_ = (S*)p").WithLocation(15, 9),
1038
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "(S*)p").WithLocation(15, 13),
1041
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "S*").WithLocation(15, 14),
1044
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "p").WithLocation(15, 17),
1047
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "_ = (S2*)p").WithLocation(16, 9),
1050
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "(S2*)p").WithLocation(16, 13),
1053
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "S2*").WithLocation(16, 14),
1059
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "p").WithLocation(16, 18),
1062
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "_ = (C*)p").WithLocation(17, 9),
1065
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "(C*)p").WithLocation(17, 13),
1068
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "C*").WithLocation(17, 14),
1074
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "p").WithLocation(17, 17),
1266
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "&s").WithLocation(15, 17),
1272
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "&s").WithLocation(19, 17),
Semantics\ScriptSemanticsTests.cs (2)
1143
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "x[3]").WithLocation(1, 11)
1169
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "x[3]").WithLocation(1, 11)
Semantics\SemanticErrorTests.cs (2)
16117
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "inst.field.buffer").WithLocation(13, 30),
16120
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "field.buffer").WithLocation(20, 17)
Semantics\StackAllocInitializerTests.cs (4)
1509
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "stackalloc int [3] { 1, 2, 3 }").WithLocation(6, 18),
1512
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "stackalloc int [ ] { 1, 2, 3 }").WithLocation(7, 18),
1515
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "stackalloc [ ] { 1, 2, 3 }").WithLocation(8, 18)
1845
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "stackalloc [ ] { d }").WithLocation(9, 18)
Semantics\StackAllocSpanExpressionsTests.cs (1)
415
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "stackalloc int[10]").WithLocation(6, 17));
Semantics\TopLevelStatementsTests.cs (3)
8463
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "fixed(int *p = &new C().i) {}").WithLocation(2, 1),
8466
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int *").WithLocation(2, 7),
8469
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "&new C().i").WithLocation(2, 16)
Semantics\UnsafeTests.cs (329)
394
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(13, 9)
961
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(7, 24)
1012
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(9, 28)
1040
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(7, 24)
1072
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(10, 29)
1104
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(10, 29)
1135
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(5, 9)
1176
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(3, 12)
1289
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(3, 51)
1459
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(3, 36)
1572
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(3, 78)
1680
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(3, 14)
1733
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(6, 15)
1801
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(3, 54)
1828
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(6, 15));
1902
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(6, 15)
1951
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(3, 5)
2004
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(6, 15)
2072
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(3, 44)
2099
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(6, 15));
2173
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(6, 15)
2213
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(2, 8)
2325
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(2, 47)
2417
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(1, 12),
2420
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "p").WithLocation(1, 17)
2507
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(1, 12),
2510
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "p").WithLocation(1, 19),
2703
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*")
2725
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*"));
2745
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "long*"),
2747
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "byte*"),
2749
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*"),
2752
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "long*"),
2754
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "byte*"),
2756
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*"));
2771
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "long*"),
2773
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "byte*"),
2775
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*"));
2790
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "long*"),
2792
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "byte*"));
2807
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*"));
2825
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*"),
2827
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "byte*"),
2829
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "short*"),
2831
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "long*"));
2851
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*"),
2853
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*"));
2873
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*"),
2875
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "long*"),
2877
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "byte*"),
2879
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*"),
2881
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "long*"),
2883
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "byte*"));
2936
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(3, 18),
2942
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(8, 18),
2996
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*"),
2999
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*"),
3002
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "Unsafe()"),
3005
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "Unsafe()"),
3008
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "Unsafe()"),
3011
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "Unsafe()"),
3014
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "null"),
3017
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "Unsafe(null)")
3079
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*"),
3082
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "Unsafe()"),
3085
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "Unsafe()"),
3088
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "Unsafe()"),
3091
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "Unsafe()"),
3094
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "Unsafe()"),
3097
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "Unsafe()"),
3100
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "Unsafe()"),
3103
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "Unsafe()"),
3106
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "Unsafe()"),
3109
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "Unsafe()"),
3112
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*"));
3139
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*"),
3142
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "Unsafe()"),
3148
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "Unsafe()"),
3151
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "Unsafe()"),
3154
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*")
3188
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*"),
3252
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(4, 59)
3444
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*"),
3447
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "Goo()"),
3450
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "null"),
3453
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "Goo(null)"),
3456
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*"),
3459
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "(int*)1"),
3462
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "Goo((int*)1)"),
3465
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*"),
3468
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "new int*[2]"),
3471
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "Goo(new int*[2])")
3496
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*"),
3499
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "Goo()"),
3502
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "null"),
3505
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "Goo(null)"),
3508
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*"),
3511
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "(int*)1"),
3514
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "Goo((int*)1)")
3541
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*"),
3544
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "d()"),
3547
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "null"),
3550
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "d(null)"),
3553
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*"),
3556
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "(int*)1"),
3559
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "d((int*)1)"),
3562
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*"),
3565
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "new int*[2]"),
3568
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "d(new int*[2])")
3594
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(13, 39),
3597
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "d()").WithLocation(8, 11),
3600
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "null").WithLocation(9, 13),
3603
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "d(null)").WithLocation(9, 11),
3606
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(10, 27),
3609
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "new Container<int*[]>[2]").WithLocation(10, 13),
3612
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "d(new Container<int*[]>[2])").WithLocation(10, 11)
3638
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*"),
3641
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "d()"),
3644
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "null"),
3647
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "d(null)"),
3650
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*"),
3653
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "(int*)1"),
3656
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "d((int*)1)")
3683
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*"),
3686
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "new C()"),
3689
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "null"),
3692
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "new C(null)"),
3695
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*"),
3698
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "(int*)1"),
3701
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "new C((int*)1)"),
3704
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*"),
3707
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "new int*[2]"),
3710
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "new C(new int*[2])")
3736
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(13, 25),
3739
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "new C()").WithLocation(8, 15),
3742
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "null").WithLocation(9, 21),
3745
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "new C(null)").WithLocation(9, 15),
3748
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(10, 35),
3751
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "new Container<int*[]>[2]").WithLocation(10, 21),
3754
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "new C(new Container<int*[]>[2])").WithLocation(10, 15)
3780
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*"),
3783
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "new C()"),
3786
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "null"),
3789
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "new C(null)"),
3792
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*"),
3795
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "(int*)1"),
3798
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "new C((int*)1)")
3825
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*"),
3828
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*"),
3831
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "(int*)1"),
3834
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*"),
3837
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "new int*[2]")
3864
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(14, 39),
3867
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(11, 38),
3870
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "new Container<int*[]>[2]").WithLocation(11, 24)
3896
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*"),
3899
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*"),
3902
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "(int*)1")
3928
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*")
3961
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*")
3995
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "Goo"),
3999
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*"),
4002
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*"));
4027
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "Goo"),
4031
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*"),
4034
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*"));
4059
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(13, 22),
4062
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(12, 22),
4065
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "Goo").WithLocation(9, 15));
4090
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(13, 13),
4093
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(12, 15),
4096
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "Goo").WithLocation(9, 15));
4121
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(13, 24),
4124
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(12, 24),
4127
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "Goo").WithLocation(9, 15));
4152
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(13, 15),
4155
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(12, 17),
4158
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "Goo").WithLocation(9, 15));
4201
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "void*"),
4204
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "null"),
4207
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "Goo(null)")
4228
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "void*").WithLocation(4, 20),
4231
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "M(null)").WithLocation(7, 9),
4234
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "null").WithLocation(7, 11)
4256
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "void*").WithLocation(5, 22),
4259
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "M(null)").WithLocation(8, 9),
4262
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "null").WithLocation(8, 11)
4294
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*"),
4297
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*"),
4300
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "null"),
4303
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "M(null)"),
4306
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "null"),
4309
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "null"),
4312
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "M(null, null)"),
4315
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "this"),
4318
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "M(this)")
4350
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(6, 38),
4353
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(5, 19),
4356
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "null").WithLocation(11, 23),
4359
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "M(null)").WithLocation(11, 21),
4362
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "null").WithLocation(14, 23),
4365
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "null").WithLocation(14, 29),
4368
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "M(null, null)").WithLocation(14, 21),
4371
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "this").WithLocation(17, 23),
4374
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "M(this)").WithLocation(17, 21)
4406
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*"),
4409
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*"));
4440
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(5, 24),
4443
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(6, 40)
4466
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*"),
4469
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "null"),
4472
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "base")
4494
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(4, 18),
4497
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "base").WithLocation(9, 25),
4500
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "null").WithLocation(9, 30)
4523
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(5, 20),
4526
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "base").WithLocation(10, 25),
4529
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "null").WithLocation(10, 30)
4552
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*"),
4555
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "x"));
10404
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*"),
10410
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*"),
10413
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int**"),
10419
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "void*"),
10425
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "void*"),
10428
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "void**"),
10800
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*"),
10803
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "stackalloc int[1]")
10825
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "stackalloc int[1]").WithLocation(6, 17)
11414
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "T*").WithLocation(8, 22),
11518
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "T*").WithLocation(17, 22),
11521
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "T*").WithLocation(10, 22),
11681
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "string*").WithLocation(13, 22),
11684
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "string*").WithLocation(10, 22),
11989
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*"),
11992
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "B"),
11995
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "base"));
12018
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(6, 24),
12021
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "B").WithLocation(11, 6),
12024
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "base").WithLocation(12, 20)
12881
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(3, 11),
12884
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "X").WithLocation(7, 13),
12887
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "Y").WithLocation(10, 13));
12907
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "X").WithLocation(5, 15));
12945
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(2, 11),
12948
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(6, 12));
13002
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "X").WithLocation(6, 12));
13031
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(2, 11));
13050
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "X").WithLocation(6, 13));
13069
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "X").WithLocation(6, 13));
13121
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "X").WithLocation(6, 13));
13140
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "delegate*").WithLocation(2, 11),
13143
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "X").WithLocation(6, 13));
13164
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "delegate*").WithLocation(2, 11),
13167
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(6, 12));
13193
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "X").WithLocation(8, 13));
13213
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "delegate*").WithLocation(3, 11));
13232
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "X").WithLocation(6, 13));
13251
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "X").WithLocation(6, 13));
13345
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(2, 43)
13375
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "X").WithLocation(6, 12),
13394
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(2, 43),
13397
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "X").WithLocation(6, 12),
13451
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(2, 43),
13463
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(2, 43),
13498
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(2, 43)
13524
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "X").WithLocation(6, 12));
13530
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "X").WithLocation(6, 12));
13536
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(2, 43),
13539
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "X").WithLocation(6, 12)
13575
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(2, 43));
13581
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(2, 43),
13637
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "X").WithLocation(6, 5),
13640
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "X").WithLocation(6, 9),
13643
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "X").WithLocation(9, 9),
13646
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "X").WithLocation(11, 17),
13649
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "X").WithLocation(11, 20),
13652
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "x").WithLocation(11, 22),
13655
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "y").WithLocation(12, 9),
13658
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "y = delegate { throw null; }").WithLocation(12, 9));
13667
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "X").WithLocation(6, 5),
13670
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "X").WithLocation(6, 9),
13673
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "X").WithLocation(9, 9),
13676
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "X").WithLocation(11, 17),
13679
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "X").WithLocation(11, 20),
13682
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "x").WithLocation(11, 22),
13685
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "y").WithLocation(12, 9),
13688
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "y = delegate { throw null; }").WithLocation(12, 9));
13694
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "X").WithLocation(6, 5),
13697
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "X").WithLocation(6, 9),
13700
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "X").WithLocation(9, 9),
13703
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "X").WithLocation(11, 17),
13706
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "X").WithLocation(11, 20),
13709
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "x").WithLocation(11, 22),
13712
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "y").WithLocation(12, 9),
13715
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "y = delegate { throw null; }").WithLocation(12, 9)
13755
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "X").WithLocation(6, 5),
13758
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "X").WithLocation(6, 9),
13761
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "X").WithLocation(9, 9),
13764
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "X").WithLocation(11, 17),
13767
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "X").WithLocation(11, 20),
13770
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "x").WithLocation(11, 22),
13773
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "y").WithLocation(12, 9),
13776
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "y = delegate { throw null; }").WithLocation(12, 9),
13779
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(13, 17),
13782
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(13, 25),
13785
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "x").WithLocation(13, 32));
13794
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "X").WithLocation(6, 5),
13797
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "X").WithLocation(6, 9),
13800
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "X").WithLocation(9, 9),
13803
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "X").WithLocation(11, 17),
13806
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "X").WithLocation(11, 20),
13809
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "x").WithLocation(11, 22),
13812
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "y").WithLocation(12, 9),
13815
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "y = delegate { throw null; }").WithLocation(12, 9),
13818
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(13, 17),
13821
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(13, 25),
13824
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "x").WithLocation(13, 32));
13830
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "X").WithLocation(6, 5),
13833
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "X").WithLocation(6, 9),
13836
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "X").WithLocation(9, 9),
13839
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "X").WithLocation(11, 17),
13842
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "X").WithLocation(11, 20),
13845
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "x").WithLocation(11, 22),
13848
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "y").WithLocation(12, 9),
13851
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "y = delegate { throw null; }").WithLocation(12, 9),
13854
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(13, 17),
13857
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(13, 25),
13860
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "x").WithLocation(13, 32)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (79)
Compilation\UsedAssembliesTests.cs (26)
3588
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "_ = C1<S<C0>*[]>.E1.F1 + 1").WithLocation(6, 9),
3591
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "C1<S<C0>*[]>").WithLocation(6, 13),
3594
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "C1<S<C0>*[]>.E1").WithLocation(6, 13),
3597
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "C1<S<C0>*[]>.E1.F1").WithLocation(6, 13),
3600
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "C1<S<C0>*[]>.E1.F1 + 1").WithLocation(6, 13));
3615
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "E1.F1").WithLocation(7, 13),
3618
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "E1.F1 + 1").WithLocation(7, 13),
3621
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "_ = E1.F1 + 1").WithLocation(7, 9));
3636
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "_ = F1 + 1").WithLocation(7, 9),
3639
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "F1").WithLocation(7, 13),
3642
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "F1 + 1").WithLocation(7, 13));
3657
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "_ = alias.F1 + 1").WithLocation(7, 9),
3660
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "alias.F1").WithLocation(7, 13),
3663
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "alias.F1 + 1").WithLocation(7, 13));
3678
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "_ = alias.E1.F1 + 1").WithLocation(7, 9),
3681
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "alias.E1").WithLocation(7, 13),
3684
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "alias.E1.F1").WithLocation(7, 13),
3687
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "alias.E1.F1 + 1").WithLocation(7, 13));
3748
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "S<C0>*").WithLocation(2, 17),
3751
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "_ = E1.F1 + 1").WithLocation(7, 9),
3754
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "E1.F1").WithLocation(7, 13),
3757
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "E1.F1 + 1").WithLocation(7, 13));
3784
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "S<C0>*").WithLocation(2, 17),
3787
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "_ = F1 + 1").WithLocation(7, 9),
3790
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "F1").WithLocation(7, 13),
3793
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "F1 + 1").WithLocation(7, 13));
Symbols\FunctionPointerTypeSymbolTests.cs (8)
1094
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "delegate*").WithLocation(4, 5),
1100
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "delegate*").WithLocation(5, 5),
1103
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "delegate*").WithLocation(6, 5),
1106
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "delegate*").WithLocation(6, 23),
1109
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "delegate*").WithLocation(8, 9),
1115
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "delegate/**/*").WithLocation(9, 13),
1789
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "delegate*").WithLocation(15, 9),
1792
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "ptr(1)").WithLocation(16, 13)
Symbols\GenericConstraintTests.cs (5)
6510
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "C<int>.E*").WithLocation(4, 30),
6513
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "E*").WithLocation(9, 37));
6533
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "C<U>.E*").WithLocation(4, 33),
6536
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "C<V>.E*").WithLocation(9, 40));
7011
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(6, 15));
Symbols\PartialPropertiesTests.cs (1)
2079
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(9, 20));
Symbols\Source\ClsComplianceTests.cs (1)
408
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(10, 26),
Symbols\Source\EnumTests.cs (2)
937
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(2, 11),
961
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(2, 11),
Symbols\Source\UsingAliasTests.cs (18)
776
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "X").WithLocation(7, 12));
781
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(3, 43),
784
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "X").WithLocation(7, 12));
806
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "X").WithLocation(7, 12),
809
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "x").WithLocation(9, 17),
812
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "x[0]").WithLocation(9, 17));
833
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "X").WithLocation(7, 12),
836
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "x").WithLocation(9, 17),
839
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "x[0]").WithLocation(9, 17),
842
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "x[0][0]").WithLocation(9, 17));
847
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(3, 43),
850
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "X").WithLocation(7, 12),
853
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "x").WithLocation(9, 17),
856
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "x[0]").WithLocation(9, 17),
859
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "x[0][0]").WithLocation(9, 17));
878
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "X").WithLocation(6, 12));
884
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(2, 43),
887
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "X").WithLocation(6, 12)
Symbols\SymbolErrorTests.cs (18)
2849
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "S*"),
2852
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "&s"),
2855
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "s2"));
2879
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "s.x"),
2882
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "s.x"));
2896
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "buf[10]"));
2918
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "stackalloc int[10]").WithLocation(8, 21));
4411
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "new C<int*>()").WithLocation(7, 9),
4446
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "new C<int*>()").WithLocation(7, 9),
4449
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(7, 15),
4467
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(11, 11),
4556
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "COfIntPtr").WithLocation(9, 13),
4559
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "new COfIntPtr()").WithLocation(9, 9),
4570
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(2, 21),
4579
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "COfIntPtr").WithLocation(9, 13),
4582
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "new COfIntPtr()").WithLocation(9, 9),
4585
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(10, 21),
15511
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "ab[10]");
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (30)
Parsing\AnonymousFunctionParsingTests.cs (8)
1879
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "delegate*").WithLocation(1, 22),
1895
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "delegate*").WithLocation(1, 22),
1985
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "delegate*").WithLocation(1, 22),
2013
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "delegate*").WithLocation(1, 22),
2108
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "delegate*").WithLocation(1, 1),
2121
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "delegate*").WithLocation(1, 1),
2197
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "delegate*").WithLocation(1, 22),
2207
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "delegate*").WithLocation(1, 22),
Parsing\ExtensionsParsingTests.cs (1)
2228
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "field[10]").WithLocation(5, 19),
Parsing\FileModifierParsingTests.cs (1)
736
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "delegate*").WithLocation(3, 10),
Parsing\FunctionPointerTests.cs (1)
519
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "delegate*").WithLocation(1, 1),
Parsing\ParserErrorMessageTests.cs (3)
1121
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "T*").WithLocation(2, 15),
1124
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "T*").WithLocation(9, 19));
4051
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "Test1*").WithLocation(6, 15),
Parsing\ParsingErrorRecoveryTests.cs (1)
4092
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "fixed(t v;").WithLocation(1, 22),
Parsing\StackAllocInitializerParsingTests.cs (3)
31
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "stackalloc int[] { 42 }").WithLocation(1, 30));
78
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "stackalloc int[1] { 42 }").WithLocation(1, 30));
125
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "stackalloc[] { 42 }").WithLocation(1, 30));
Parsing\UsingDirectiveParsingTests.cs (10)
614
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "A*").WithLocation(1, 11));
718
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "delegate*").WithLocation(1, 11));
1073
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(1, 11));
1162
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "X").WithLocation(6, 15));
1307
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(2, 11),
1385
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "X").WithLocation(6, 15));
2099
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "VP").WithLocation(5, 12));
2251
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "void*").WithLocation(1, 12));
5103
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(1, 46));
5183
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "int*").WithLocation(1, 46));
Syntax\SyntaxFactoryTests.cs (2)
641
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "delegate*").WithLocation(1, 1),
652
Diagnostic(ErrorCode.
ERR_UnsafeNeeded
, "delegate*").WithLocation(1, 1),