52 references to ERR_RefReturnScopedParameter
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder.ValueChecks.cs (1)
1103
(checkingReceiver: false, isRefScoped: true, inUnsafeRegion: false, _) => (ErrorCode.
ERR_RefReturnScopedParameter
, node),
Errors\ErrorFacts.cs (1)
2263
case ErrorCode.
ERR_RefReturnScopedParameter
:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (50)
Semantics\RefEscapingTests.cs (5)
804
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "x").WithArguments("x").WithLocation(18, 20)
896
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "x").WithArguments("x").WithLocation(24, 20)
961
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "x").WithArguments("x").WithLocation(38, 20)
1749
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "x").WithArguments("x").WithLocation(66, 20)
6645
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "rs3").WithArguments("rs3").WithLocation(31, 16));
Semantics\RefFieldTests.cs (45)
2885
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "c").WithArguments("c").WithLocation(12, 56),
2888
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "s").WithArguments("s").WithLocation(13, 56),
2891
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "r").WithArguments("r").WithLocation(14, 56)
3005
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t").WithArguments("t").WithLocation(24, 84),
3011
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t").WithArguments("t").WithLocation(25, 83),
3017
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t").WithArguments("t").WithLocation(26, 80),
3123
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t").WithArguments("t").WithLocation(22, 60),
3129
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t").WithArguments("t").WithLocation(23, 59),
3135
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t").WithArguments("t").WithLocation(24, 56)
3699
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t").WithArguments("t").WithLocation(27, 79),
3705
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t").WithArguments("t").WithLocation(28, 78),
3711
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t").WithArguments("t").WithLocation(29, 75),
3802
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t").WithArguments("t").WithLocation(25, 52),
3808
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t").WithArguments("t").WithLocation(26, 51),
3814
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t").WithArguments("t").WithLocation(27, 48)
4045
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "x").WithArguments("x").WithLocation(13, 82),
4051
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "x").WithArguments("x").WithLocation(14, 82));
7279
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t").WithArguments("t").WithLocation(5, 59),
7288
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t").WithArguments("t").WithLocation(9, 68));
10154
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t").WithArguments("t").WithLocation(6, 20));
17333
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "x").WithArguments("x").WithLocation(3, 75),
17336
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "x").WithArguments("x").WithLocation(4, 83));
17779
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "r3").WithArguments("r3").WithLocation(7, 55));
18421
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t").WithArguments("t").WithLocation(16, 27));
18479
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t").WithArguments("t").WithLocation(9, 76),
18485
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t").WithArguments("t").WithLocation(10, 55),
18491
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t").WithArguments("t").WithLocation(11, 83));
19350
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t2").WithArguments("t2").WithLocation(13, 29));
22516
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "x").WithArguments("x").WithLocation(8, 24));
22803
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "x").WithArguments("x").WithLocation(9, 24));
23497
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "i3").WithArguments("i3").WithLocation(16, 25),
23724
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "i2").WithArguments("i2").WithLocation(12, 20),
23765
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "i").WithArguments("i").WithLocation(11, 20));
26230
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "bc").WithArguments("bc").WithLocation(60, 12),
26233
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "bc").WithArguments("bc").WithLocation(64, 12));
27259
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "p1").WithArguments("p1").WithLocation(41, 21),
27265
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "p").WithArguments("p").WithLocation(46, 40)
28319
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "i1").WithArguments("i1").WithLocation(3, 48),
28325
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "i2").WithArguments("i2").WithLocation(6, 24),
28331
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "i3").WithArguments("i3").WithLocation(9, 51),
28337
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "i4").WithArguments("i4").WithLocation(12, 27));
28376
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "i1").WithArguments("i1").WithLocation(5, 51),
28382
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "i2").WithArguments("i2").WithLocation(8, 28),
28388
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "i3").WithArguments("i3").WithLocation(11, 54),
28394
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "i4").WithArguments("i4").WithLocation(14, 31));