65 references to ERR_FixedNeeded
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Operators.cs (1)
4146Error(diagnostics, isFixedStatementAddressOfExpression ? ErrorCode.ERR_FixedNotNeeded : ErrorCode.ERR_FixedNeeded, node);
Errors\ErrorFacts.cs (1)
799or ErrorCode.ERR_FixedNeeded
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (10)
CodeGen\CodeGenAsyncTests.cs (2)
2188Diagnostic(ErrorCode.ERR_FixedNeeded, "&prog.F").WithLocation(10, 20), 2214Diagnostic(ErrorCode.ERR_FixedNeeded, "&prog.F").WithLocation(10, 20),
CodeGen\CodeGenInParametersTests.cs (2)
1274Diagnostic(ErrorCode.ERR_FixedNeeded, "& arg1").WithLocation(6, 18), 1277Diagnostic(ErrorCode.ERR_FixedNeeded, "& arg2.Alice").WithLocation(7, 18)
CodeGen\CodeGenRefReadonlyReturnTests.cs (4)
692Diagnostic(ErrorCode.ERR_FixedNeeded, "& M()").WithLocation(6, 18), 695Diagnostic(ErrorCode.ERR_FixedNeeded, "& M1().Alice").WithLocation(7, 18), 698Diagnostic(ErrorCode.ERR_FixedNeeded, "& P").WithLocation(9, 19), 701Diagnostic(ErrorCode.ERR_FixedNeeded, "& P1.Alice").WithLocation(10, 19)
CodeGen\FixedSizeBufferTests.cs (2)
1082Diagnostic(ErrorCode.ERR_FixedNeeded, "&this.Bar[0]").WithLocation(6, 23), 1085Diagnostic(ErrorCode.ERR_FixedNeeded, "&Bar[1]").WithLocation(7, 23));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (22)
Semantics\InlineArrayTests.cs (2)
18341Diagnostic(ErrorCode.ERR_FixedNeeded, "&b[0]").WithLocation(14, 19), 18344Diagnostic(ErrorCode.ERR_FixedNeeded, "&b").WithLocation(18, 29)
Semantics\PrimaryConstructorTests.cs (20)
13158Diagnostic(ErrorCode.ERR_FixedNeeded, "&s").WithLocation(7, 18), 13161Diagnostic(ErrorCode.ERR_FixedNeeded, "&s_f").WithLocation(8, 18) 13261Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").WithLocation(4, 15), 13264Diagnostic(ErrorCode.ERR_FixedNeeded, "&s.f").WithLocation(5, 15) 13293Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").WithLocation(7, 36), 13296Diagnostic(ErrorCode.ERR_FixedNeeded, "&s.f").WithLocation(7, 40) 13518Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").WithLocation(6, 29), 13521Diagnostic(ErrorCode.ERR_FixedNeeded, "&s.f").WithLocation(7, 29) 13570Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").WithLocation(9, 50), 13573Diagnostic(ErrorCode.ERR_FixedNeeded, "&s.f").WithLocation(10, 50) 13611Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").WithLocation(4, 15), 13614Diagnostic(ErrorCode.ERR_FixedNeeded, "&s.f").WithLocation(5, 15) 13664Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").WithLocation(12, 15), 13667Diagnostic(ErrorCode.ERR_FixedNeeded, "&s.f").WithLocation(13, 15) 13706Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").WithLocation(7, 36), 13709Diagnostic(ErrorCode.ERR_FixedNeeded, "&s.f").WithLocation(7, 40) 14998Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").WithLocation(5, 19), 15001Diagnostic(ErrorCode.ERR_FixedNeeded, "&y").WithLocation(6, 19) 15435Diagnostic(ErrorCode.ERR_FixedNeeded, "&x.F").WithLocation(5, 19), 15438Diagnostic(ErrorCode.ERR_FixedNeeded, "&y.F").WithLocation(6, 19)
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (2)
IOperation\IOperationTests_IFixedStatement.cs (2)
588Diagnostic(ErrorCode.ERR_FixedNeeded, "&i1").WithLocation(7, 29), 591Diagnostic(ErrorCode.ERR_FixedNeeded, "&i2").WithLocation(7, 35)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (29)
Semantics\RefFieldTests.cs (2)
1278Diagnostic(ErrorCode.ERR_FixedNeeded, "&s").WithLocation(23, 17), 1287Diagnostic(ErrorCode.ERR_FixedNeeded, "&s").WithLocation(39, 17)
Semantics\ScriptSemanticsTests.cs (2)
1038Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").WithLocation(1, 1)); 1049Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").WithLocation(1, 1));
Semantics\SemanticErrorTests.cs (2)
8381Diagnostic(ErrorCode.ERR_FixedNeeded, "&a.iField")); 20312Diagnostic(ErrorCode.ERR_FixedNeeded, "&x"),
Semantics\UnsafeTests.cs (23)
587Diagnostic(ErrorCode.ERR_FixedNeeded, "&_f").WithLocation(8, 22)); 6644Diagnostic(ErrorCode.ERR_FixedNeeded, "&this").WithLocation(76, 18), 6650Diagnostic(ErrorCode.ERR_FixedNeeded, "&array[0]").WithLocation(24, 13), 6659Diagnostic(ErrorCode.ERR_FixedNeeded, "&base.f").WithLocation(27, 13), 6686Diagnostic(ErrorCode.ERR_FixedNeeded, "&instanceField").WithLocation(36, 13), 6689Diagnostic(ErrorCode.ERR_FixedNeeded, "&staticField").WithLocation(37, 13), 6713Diagnostic(ErrorCode.ERR_FixedNeeded, "&this.instanceField").WithLocation(45, 13), 6734Diagnostic(ErrorCode.ERR_FixedNeeded, "&E").WithLocation(54, 17), 6874Diagnostic(ErrorCode.ERR_FixedNeeded, "&instanceField"), 6877Diagnostic(ErrorCode.ERR_FixedNeeded, "&this.instanceField"), 6880Diagnostic(ErrorCode.ERR_FixedNeeded, "&base.instanceField"), 6883Diagnostic(ErrorCode.ERR_FixedNeeded, "&d.instanceField"), 6886Diagnostic(ErrorCode.ERR_FixedNeeded, "&staticField"), 6889Diagnostic(ErrorCode.ERR_FixedNeeded, "&this.staticField"), 6892Diagnostic(ErrorCode.ERR_FixedNeeded, "&base.staticField"), 6895Diagnostic(ErrorCode.ERR_FixedNeeded, "&d.staticField"), 6898Diagnostic(ErrorCode.ERR_FixedNeeded, "&array[0]"), 6901Diagnostic(ErrorCode.ERR_FixedNeeded, "&refParam"), 6904Diagnostic(ErrorCode.ERR_FixedNeeded, "&outParam")); 9805Diagnostic(ErrorCode.ERR_FixedNeeded, "&p.x"), 12575Diagnostic(ErrorCode.ERR_FixedNeeded, "&p").WithLocation(6, 24) 12693Diagnostic(ErrorCode.ERR_FixedNeeded, "&s_f.Buf[0]").WithLocation(15, 18), 12696Diagnostic(ErrorCode.ERR_FixedNeeded, "&(s_f.Buf[0])").WithLocation(17, 18));