23 references to ERR_RefReturnOnlyParameter
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder.ValueChecks.cs (1)
1105
(checkingReceiver: false, isRefScoped: false, inUnsafeRegion: false, ReturnOnlyScope) => (ErrorCode.
ERR_RefReturnOnlyParameter
, node),
Errors\ErrorFacts.cs (1)
2265
case ErrorCode.
ERR_RefReturnOnlyParameter
:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (21)
Semantics\RefEscapingTests.cs (5)
2163
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "arg1").WithArguments("arg1").WithLocation(28, 32),
2496
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "arg1").WithArguments("arg1").WithLocation(44, 32),
2595
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "arg1").WithArguments("arg1").WithLocation(34, 32),
3098
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "arg1").WithArguments("arg1").WithLocation(28, 32),
3153
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "arg2").WithArguments("arg2").WithLocation(25, 28));
Semantics\RefFieldTests.cs (16)
4711
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "i2").WithArguments("i2").WithLocation(22, 24),
4717
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "i2").WithArguments("i2").WithLocation(24, 24));
4781
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "i2").WithArguments("i2").WithLocation(22, 23),
4787
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "i2").WithArguments("i2").WithLocation(24, 23));
23485
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "i1").WithArguments("i1").WithLocation(7, 25),
23491
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "i2").WithArguments("i2").WithLocation(11, 25),
23503
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "i6").WithArguments("i6").WithLocation(29, 25));
23956
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "x").WithArguments("x").WithLocation(13, 31),
24064
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "x").WithArguments("x").WithLocation(13, 30),
24924
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "x").WithArguments("x").WithLocation(9, 18),
24930
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "x").WithArguments("x").WithLocation(17, 17));
26224
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "bc").WithArguments("bc").WithLocation(42, 15),
26227
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "bc").WithArguments("bc").WithLocation(47, 15),
27253
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "p1").WithArguments("p1").WithLocation(31, 21),
27632
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "i").WithArguments("i").WithLocation(9, 61));
27661
Diagnostic(ErrorCode.
ERR_RefReturnOnlyParameter
, "i").WithArguments("i").WithLocation(9, 59));