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