29 references to ERR_RefAssignReturnOnly
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Statements.cs (1)
1576
({ IsReturnOnly: true }, false) => ErrorCode.
ERR_RefAssignReturnOnly
,
Errors\ErrorFacts.cs (1)
2328
or ErrorCode.
ERR_RefAssignReturnOnly
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (3)
RefReadonlyParameterTests.cs (1)
2960
Diagnostic(ErrorCode.
ERR_RefAssignReturnOnly
, "rro = ref p").WithArguments("rro", "p").WithLocation(21, 9),
Symbols\UserDefinedCompoundAssignmentOperatorsTests.cs (2)
15890
Diagnostic(ErrorCode.
ERR_RefAssignReturnOnly
, "_i = ref right").WithArguments("_i", "right").WithLocation(4, 45),
15893
Diagnostic(ErrorCode.
ERR_RefAssignReturnOnly
, "left._i = ref right").WithArguments("_i", "right").WithLocation(5, 56),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (24)
Semantics\RefEscapingTests.cs (2)
15407
Diagnostic(ErrorCode.
ERR_RefAssignReturnOnly
, "s.refField = ref s.field").WithArguments("refField", "s.field").WithLocation(11, 9));
15462
Diagnostic(ErrorCode.
ERR_RefAssignReturnOnly
, "this.refField = ref this.field").WithArguments("refField", "this.field").WithLocation(13, 9));
Semantics\RefFieldTests.cs (22)
2580
Diagnostic(ErrorCode.
ERR_RefAssignReturnOnly
, "r2.F = ref r1").WithArguments("F", "r1").WithLocation(15, 9));
2726
Diagnostic(ErrorCode.
ERR_RefAssignReturnOnly
, "F = ref t").WithArguments("F", "t").WithLocation(7, 9),
2729
Diagnostic(ErrorCode.
ERR_RefAssignReturnOnly
, "r1.F = ref t").WithArguments("F", "t").WithLocation(12, 9),
2739
Diagnostic(ErrorCode.
ERR_RefAssignReturnOnly
, "F = ref t").WithArguments("F", "t").WithLocation(7, 9),
2742
Diagnostic(ErrorCode.
ERR_RefAssignReturnOnly
, "r1.F = ref t").WithArguments("F", "t").WithLocation(12, 9),
7256
Diagnostic(ErrorCode.
ERR_RefAssignReturnOnly
, "s.F = ref tRef").WithArguments("F", "tRef").WithLocation(10, 59),
7268
Diagnostic(ErrorCode.
ERR_RefAssignReturnOnly
, "sRef.F = ref tRef").WithArguments("F", "tRef").WithLocation(15, 64),
7379
Diagnostic(ErrorCode.
ERR_RefAssignReturnOnly
, "s.F = ref tRef").WithArguments("F", "tRef").WithLocation(10, 59),
7385
Diagnostic(ErrorCode.
ERR_RefAssignReturnOnly
, "s.F = ref tIn").WithArguments("F", "tIn").WithLocation(12, 59),
7391
Diagnostic(ErrorCode.
ERR_RefAssignReturnOnly
, "sRef.F = ref tRef").WithArguments("F", "tRef").WithLocation(15, 64),
7397
Diagnostic(ErrorCode.
ERR_RefAssignReturnOnly
, "sRef.F = ref tIn").WithArguments("F", "tIn").WithLocation(17, 64),
9961
Diagnostic(ErrorCode.
ERR_RefAssignReturnOnly
, "r.Next = ref r").WithArguments("Next", "r").WithLocation(11, 9));
20208
Diagnostic(ErrorCode.
ERR_RefAssignReturnOnly
, "_i = ref i").WithArguments("_i", "i").WithLocation(11, 9));
20234
Diagnostic(ErrorCode.
ERR_RefAssignReturnOnly
, "_i = ref i").WithArguments("_i", "i").WithLocation(12, 9));
23205
Diagnostic(ErrorCode.
ERR_RefAssignReturnOnly
, "value.F = ref this").WithArguments("F", "this").WithLocation(20, 15));
24671
Diagnostic(ErrorCode.
ERR_RefAssignReturnOnly
, "_i = ref i1").WithArguments("_i", "i1").WithLocation(7, 9),
24674
Diagnostic(ErrorCode.
ERR_RefAssignReturnOnly
, "_i = ref i2").WithArguments("_i", "i2").WithLocation(11, 9),
24680
Diagnostic(ErrorCode.
ERR_RefAssignReturnOnly
, "_i = ref i6").WithArguments("_i", "i6").WithLocation(29, 9));
28600
Diagnostic(ErrorCode.
ERR_RefAssignReturnOnly
, "p2.refField = ref p1.refField").WithArguments("refField", "p1.refField").WithLocation(20, 5),
28603
Diagnostic(ErrorCode.
ERR_RefAssignReturnOnly
, "p2.refField = ref p1.field").WithArguments("refField", "p1.field").WithLocation(26, 5),
28606
Diagnostic(ErrorCode.
ERR_RefAssignReturnOnly
, "p2.refField = ref p1.refField").WithArguments("refField", "p1.refField").WithLocation(27, 5),
28790
Diagnostic(ErrorCode.
ERR_RefAssignReturnOnly
, "p.refField = ref this.field").WithArguments("refField", "this.field").WithLocation(19, 9),