41 references to ERR_RefReturnOnlyParameter
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder.ValueChecks.cs (1)
1326
(checkingReceiver: false, isRefScoped: false, inUnsafeRegion: false, { IsReturnOnly: true }) => (ErrorCode.
ERR_RefReturnOnlyParameter
, node),
Errors\ErrorFacts.cs (1)
2320
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),
26355
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "arg1").WithArguments("arg1").WithLocation(28, 32),
Semantics\ExtensionOperatorsTests.cs (5)
3099
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "x").WithArguments("x").WithLocation(18, 14),
16443
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "x").WithArguments("x").WithLocation(18, 13),
25453
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "right").WithArguments("right").WithLocation(16, 22),
25459
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "right").WithArguments("right").WithLocation(20, 22)
25515
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)
4460
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "arg1").WithArguments("arg1").WithLocation(28, 32),
4515
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "arg2").WithArguments("arg2").WithLocation(25, 28));
9320
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "x").WithArguments("x").WithLocation(18, 16),
9416
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "x").WithArguments("x").WithLocation(18, 13),
9886
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "x").WithArguments("x").WithLocation(18, 13),
10624
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));
24632
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "i1").WithArguments("i1").WithLocation(7, 25),
24638
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "i2").WithArguments("i2").WithLocation(11, 25),
24650
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "i6").WithArguments("i6").WithLocation(29, 25));
25103
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "x").WithArguments("x").WithLocation(13, 31),
25211
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "x").WithArguments("x").WithLocation(13, 30),
26081
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "x").WithArguments("x").WithLocation(9, 18),
26087
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "x").WithArguments("x").WithLocation(17, 17));
27596
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "bc").WithArguments("bc").WithLocation(42, 15),
27599
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "bc").WithArguments("bc").WithLocation(47, 15),
28625
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "p1").WithArguments("p1").WithLocation(31, 21),
29004
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "i").WithArguments("i").WithLocation(9, 61));
29033
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "i").WithArguments("i").WithLocation(9, 59));