62 references to ERR_FixedNeeded
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Operators.cs (1)
2517Error(diagnostics, isFixedStatementAddressOfExpression ? ErrorCode.ERR_FixedNotNeeded : ErrorCode.ERR_FixedNeeded, node);
Errors\ErrorFacts.cs (1)
727case ErrorCode.ERR_FixedNeeded:
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (10)
CodeGen\CodeGenAsyncTests.cs (2)
1040Diagnostic(ErrorCode.ERR_FixedNeeded, "&prog.F").WithLocation(11, 20), 1066Diagnostic(ErrorCode.ERR_FixedNeeded, "&prog.F").WithLocation(11, 20),
CodeGen\CodeGenInParametersTests.cs (2)
1241Diagnostic(ErrorCode.ERR_FixedNeeded, "& arg1").WithLocation(6, 18), 1244Diagnostic(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)
1070Diagnostic(ErrorCode.ERR_FixedNeeded, "&this.Bar[0]").WithLocation(6, 23), 1073Diagnostic(ErrorCode.ERR_FixedNeeded, "&Bar[1]").WithLocation(7, 23));
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (2)
IOperation\IOperationTests_IFixedStatement.cs (2)
587Diagnostic(ErrorCode.ERR_FixedNeeded, "&i1").WithLocation(7, 29), 590Diagnostic(ErrorCode.ERR_FixedNeeded, "&i2").WithLocation(7, 35)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (48)
Semantics\PrimaryConstructorTests.cs (20)
12000Diagnostic(ErrorCode.ERR_FixedNeeded, "&s").WithLocation(7, 18), 12003Diagnostic(ErrorCode.ERR_FixedNeeded, "&s_f").WithLocation(8, 18) 12103Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").WithLocation(4, 15), 12106Diagnostic(ErrorCode.ERR_FixedNeeded, "&s.f").WithLocation(5, 15) 12135Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").WithLocation(7, 36), 12138Diagnostic(ErrorCode.ERR_FixedNeeded, "&s.f").WithLocation(7, 40) 12360Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").WithLocation(6, 29), 12363Diagnostic(ErrorCode.ERR_FixedNeeded, "&s.f").WithLocation(7, 29) 12412Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").WithLocation(9, 50), 12415Diagnostic(ErrorCode.ERR_FixedNeeded, "&s.f").WithLocation(10, 50) 12453Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").WithLocation(4, 15), 12456Diagnostic(ErrorCode.ERR_FixedNeeded, "&s.f").WithLocation(5, 15) 12506Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").WithLocation(12, 15), 12509Diagnostic(ErrorCode.ERR_FixedNeeded, "&s.f").WithLocation(13, 15) 12548Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").WithLocation(7, 36), 12551Diagnostic(ErrorCode.ERR_FixedNeeded, "&s.f").WithLocation(7, 40) 13840Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").WithLocation(5, 19), 13843Diagnostic(ErrorCode.ERR_FixedNeeded, "&y").WithLocation(6, 19) 14277Diagnostic(ErrorCode.ERR_FixedNeeded, "&x.F").WithLocation(5, 19), 14280Diagnostic(ErrorCode.ERR_FixedNeeded, "&y.F").WithLocation(6, 19)
Semantics\RefFieldTests.cs (2)
1251Diagnostic(ErrorCode.ERR_FixedNeeded, "&s").WithLocation(23, 17), 1260Diagnostic(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)
8332Diagnostic(ErrorCode.ERR_FixedNeeded, "&a.iField")); 20041Diagnostic(ErrorCode.ERR_FixedNeeded, "&x"),
Semantics\UnsafeTests.cs (22)
3805Diagnostic(ErrorCode.ERR_FixedNeeded, "&this").WithLocation(76, 18), 3811Diagnostic(ErrorCode.ERR_FixedNeeded, "&array[0]").WithLocation(24, 13), 3820Diagnostic(ErrorCode.ERR_FixedNeeded, "&base.f").WithLocation(27, 13), 3847Diagnostic(ErrorCode.ERR_FixedNeeded, "&instanceField").WithLocation(36, 13), 3850Diagnostic(ErrorCode.ERR_FixedNeeded, "&staticField").WithLocation(37, 13), 3874Diagnostic(ErrorCode.ERR_FixedNeeded, "&this.instanceField").WithLocation(45, 13), 3895Diagnostic(ErrorCode.ERR_FixedNeeded, "&E").WithLocation(54, 17), 4035Diagnostic(ErrorCode.ERR_FixedNeeded, "&instanceField"), 4038Diagnostic(ErrorCode.ERR_FixedNeeded, "&this.instanceField"), 4041Diagnostic(ErrorCode.ERR_FixedNeeded, "&base.instanceField"), 4044Diagnostic(ErrorCode.ERR_FixedNeeded, "&d.instanceField"), 4047Diagnostic(ErrorCode.ERR_FixedNeeded, "&staticField"), 4050Diagnostic(ErrorCode.ERR_FixedNeeded, "&this.staticField"), 4053Diagnostic(ErrorCode.ERR_FixedNeeded, "&base.staticField"), 4056Diagnostic(ErrorCode.ERR_FixedNeeded, "&d.staticField"), 4059Diagnostic(ErrorCode.ERR_FixedNeeded, "&array[0]"), 4062Diagnostic(ErrorCode.ERR_FixedNeeded, "&refParam"), 4065Diagnostic(ErrorCode.ERR_FixedNeeded, "&outParam")); 6966Diagnostic(ErrorCode.ERR_FixedNeeded, "&p.x"), 9689Diagnostic(ErrorCode.ERR_FixedNeeded, "&p").WithLocation(6, 24) 9807Diagnostic(ErrorCode.ERR_FixedNeeded, "&s_f.Buf[0]").WithLocation(15, 18), 9810Diagnostic(ErrorCode.ERR_FixedNeeded, "&(s_f.Buf[0])").WithLocation(17, 18));