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