41 references to ERR_RefReturnOnlyParameter
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder.ValueChecks.cs (1)
1551
(checkingReceiver: false, isRefScoped: false, inUnsafeRegion: false, { IsReturnOnly: true }) => (ErrorCode.
ERR_RefReturnOnlyParameter
, node),
Errors\ErrorFacts.cs (1)
2319
or ErrorCode.
ERR_RefReturnOnlyParameter
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (13)
RefStructInterfacesTests.cs (5)
3258
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "bc").WithArguments("bc").WithLocation(40, 15),
3261
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "bc").WithArguments("bc").WithLocation(45, 15),
3421
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "bc").WithArguments("bc").WithLocation(42, 15),
3424
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "bc").WithArguments("bc").WithLocation(47, 15),
26751
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "arg1").WithArguments("arg1").WithLocation(28, 32),
Semantics\ExtensionOperatorsTests.cs (5)
3110
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "x").WithArguments("x").WithLocation(18, 14),
16581
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "x").WithArguments("x").WithLocation(18, 13),
25718
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "right").WithArguments("right").WithLocation(16, 22),
25724
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "right").WithArguments("right").WithLocation(20, 22)
25780
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "right").WithArguments("right").WithLocation(20, 22)
Symbols\UserDefinedCompoundAssignmentOperatorsTests.cs (3)
15850
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "right").WithArguments("right").WithLocation(16, 22),
15856
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "right").WithArguments("right").WithLocation(20, 22)
15911
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "right").WithArguments("right").WithLocation(20, 22)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (26)
Semantics\RefEscapingTests.cs (10)
2169
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "arg1").WithArguments("arg1").WithLocation(28, 32),
2502
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "arg1").WithArguments("arg1").WithLocation(44, 32),
2601
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "arg1").WithArguments("arg1").WithLocation(34, 32),
4093
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "y").WithArguments("y").WithLocation(33, 15)
5041
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "arg1").WithArguments("arg1").WithLocation(28, 32),
5096
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "arg2").WithArguments("arg2").WithLocation(25, 28));
9901
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "x").WithArguments("x").WithLocation(18, 16),
9997
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "x").WithArguments("x").WithLocation(18, 13),
10467
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "x").WithArguments("x").WithLocation(18, 13),
11213
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "x").WithArguments("x").WithLocation(18, 14),
Semantics\RefFieldTests.cs (16)
4774
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "i2").WithArguments("i2").WithLocation(22, 24),
4780
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "i2").WithArguments("i2").WithLocation(24, 24));
4844
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "i2").WithArguments("i2").WithLocation(22, 23),
4850
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "i2").WithArguments("i2").WithLocation(24, 23));
24621
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "i1").WithArguments("i1").WithLocation(7, 25),
24627
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "i2").WithArguments("i2").WithLocation(11, 25),
24639
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "i6").WithArguments("i6").WithLocation(29, 25));
25092
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "x").WithArguments("x").WithLocation(13, 31),
25200
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "x").WithArguments("x").WithLocation(13, 30),
26070
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "x").WithArguments("x").WithLocation(9, 18),
26076
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "x").WithArguments("x").WithLocation(17, 17));
27585
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "bc").WithArguments("bc").WithLocation(42, 15),
27588
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "bc").WithArguments("bc").WithLocation(47, 15),
28614
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "p1").WithArguments("p1").WithLocation(31, 21),
28993
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "i").WithArguments("i").WithLocation(9, 61));
29022
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "i").WithArguments("i").WithLocation(9, 59));