65 references to ERR_FixedNeeded
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Operators.cs (1)
3975Error(diagnostics, isFixedStatementAddressOfExpression ? ErrorCode.ERR_FixedNotNeeded : ErrorCode.ERR_FixedNeeded, node);
Errors\ErrorFacts.cs (1)
788or ErrorCode.ERR_FixedNeeded
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (10)
CodeGen\CodeGenAsyncTests.cs (2)
1044Diagnostic(ErrorCode.ERR_FixedNeeded, "&prog.F").WithLocation(11, 20), 1070Diagnostic(ErrorCode.ERR_FixedNeeded, "&prog.F").WithLocation(11, 20),
CodeGen\CodeGenInParametersTests.cs (2)
1271Diagnostic(ErrorCode.ERR_FixedNeeded, "& arg1").WithLocation(6, 18), 1274Diagnostic(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.Emit3.UnitTests (22)
Semantics\InlineArrayTests.cs (2)
18335Diagnostic(ErrorCode.ERR_FixedNeeded, "&b[0]").WithLocation(14, 19), 18338Diagnostic(ErrorCode.ERR_FixedNeeded, "&b").WithLocation(18, 29)
Semantics\PrimaryConstructorTests.cs (20)
13018Diagnostic(ErrorCode.ERR_FixedNeeded, "&s").WithLocation(7, 18), 13021Diagnostic(ErrorCode.ERR_FixedNeeded, "&s_f").WithLocation(8, 18) 13121Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").WithLocation(4, 15), 13124Diagnostic(ErrorCode.ERR_FixedNeeded, "&s.f").WithLocation(5, 15) 13153Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").WithLocation(7, 36), 13156Diagnostic(ErrorCode.ERR_FixedNeeded, "&s.f").WithLocation(7, 40) 13378Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").WithLocation(6, 29), 13381Diagnostic(ErrorCode.ERR_FixedNeeded, "&s.f").WithLocation(7, 29) 13430Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").WithLocation(9, 50), 13433Diagnostic(ErrorCode.ERR_FixedNeeded, "&s.f").WithLocation(10, 50) 13471Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").WithLocation(4, 15), 13474Diagnostic(ErrorCode.ERR_FixedNeeded, "&s.f").WithLocation(5, 15) 13524Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").WithLocation(12, 15), 13527Diagnostic(ErrorCode.ERR_FixedNeeded, "&s.f").WithLocation(13, 15) 13566Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").WithLocation(7, 36), 13569Diagnostic(ErrorCode.ERR_FixedNeeded, "&s.f").WithLocation(7, 40) 14858Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").WithLocation(5, 19), 14861Diagnostic(ErrorCode.ERR_FixedNeeded, "&y").WithLocation(6, 19) 15295Diagnostic(ErrorCode.ERR_FixedNeeded, "&x.F").WithLocation(5, 19), 15298Diagnostic(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)
8336Diagnostic(ErrorCode.ERR_FixedNeeded, "&a.iField")); 20265Diagnostic(ErrorCode.ERR_FixedNeeded, "&x"),
Semantics\UnsafeTests.cs (23)
586Diagnostic(ErrorCode.ERR_FixedNeeded, "&_f").WithLocation(8, 22)); 6643Diagnostic(ErrorCode.ERR_FixedNeeded, "&this").WithLocation(76, 18), 6649Diagnostic(ErrorCode.ERR_FixedNeeded, "&array[0]").WithLocation(24, 13), 6658Diagnostic(ErrorCode.ERR_FixedNeeded, "&base.f").WithLocation(27, 13), 6685Diagnostic(ErrorCode.ERR_FixedNeeded, "&instanceField").WithLocation(36, 13), 6688Diagnostic(ErrorCode.ERR_FixedNeeded, "&staticField").WithLocation(37, 13), 6712Diagnostic(ErrorCode.ERR_FixedNeeded, "&this.instanceField").WithLocation(45, 13), 6733Diagnostic(ErrorCode.ERR_FixedNeeded, "&E").WithLocation(54, 17), 6873Diagnostic(ErrorCode.ERR_FixedNeeded, "&instanceField"), 6876Diagnostic(ErrorCode.ERR_FixedNeeded, "&this.instanceField"), 6879Diagnostic(ErrorCode.ERR_FixedNeeded, "&base.instanceField"), 6882Diagnostic(ErrorCode.ERR_FixedNeeded, "&d.instanceField"), 6885Diagnostic(ErrorCode.ERR_FixedNeeded, "&staticField"), 6888Diagnostic(ErrorCode.ERR_FixedNeeded, "&this.staticField"), 6891Diagnostic(ErrorCode.ERR_FixedNeeded, "&base.staticField"), 6894Diagnostic(ErrorCode.ERR_FixedNeeded, "&d.staticField"), 6897Diagnostic(ErrorCode.ERR_FixedNeeded, "&array[0]"), 6900Diagnostic(ErrorCode.ERR_FixedNeeded, "&refParam"), 6903Diagnostic(ErrorCode.ERR_FixedNeeded, "&outParam")); 9804Diagnostic(ErrorCode.ERR_FixedNeeded, "&p.x"), 12571Diagnostic(ErrorCode.ERR_FixedNeeded, "&p").WithLocation(6, 24) 12689Diagnostic(ErrorCode.ERR_FixedNeeded, "&s_f.Buf[0]").WithLocation(15, 18), 12692Diagnostic(ErrorCode.ERR_FixedNeeded, "&(s_f.Buf[0])").WithLocation(17, 18));