63 references to ERR_RefReturnScopedParameter
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder.ValueChecks.cs (1)
1324
(checkingReceiver: false, isRefScoped: true, inUnsafeRegion: false, _) => (ErrorCode.
ERR_RefReturnScopedParameter
, node),
Errors\ErrorFacts.cs (1)
2318
or ErrorCode.
ERR_RefReturnScopedParameter
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (7)
RefStructInterfacesTests.cs (4)
3264
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "bc").WithArguments("bc").WithLocation(58, 12),
3267
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "bc").WithArguments("bc").WithLocation(62, 12)
3427
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "bc").WithArguments("bc").WithLocation(60, 12),
3430
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "bc").WithArguments("bc").WithLocation(64, 12));
Semantics\ExtensionOperatorsTests.cs (2)
3105
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "x").WithArguments("x").WithLocation(29, 17),
16449
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "x").WithArguments("x").WithLocation(29, 16),
Semantics\ExtensionTests.cs (1)
4156
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "receiver").WithArguments("receiver").WithLocation(8, 35));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (54)
Semantics\RefEscapingTests.cs (9)
810
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "x").WithArguments("x").WithLocation(18, 20)
902
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "x").WithArguments("x").WithLocation(24, 20)
967
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "x").WithArguments("x").WithLocation(38, 20)
1755
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "x").WithArguments("x").WithLocation(66, 20)
8625
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "rs3").WithArguments("rs3").WithLocation(31, 16));
9326
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "x").WithArguments("x").WithLocation(29, 19),
9422
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "x").WithArguments("x").WithLocation(29, 16),
9892
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "x").WithArguments("x").WithLocation(29, 16),
10630
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "x").WithArguments("x").WithLocation(29, 17),
Semantics\RefFieldTests.cs (45)
2948
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "c").WithArguments("c").WithLocation(12, 56),
2951
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "s").WithArguments("s").WithLocation(13, 56),
2954
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "r").WithArguments("r").WithLocation(14, 56)
3068
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t").WithArguments("t").WithLocation(24, 84),
3074
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t").WithArguments("t").WithLocation(25, 83),
3080
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t").WithArguments("t").WithLocation(26, 80),
3186
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t").WithArguments("t").WithLocation(22, 60),
3192
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t").WithArguments("t").WithLocation(23, 59),
3198
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t").WithArguments("t").WithLocation(24, 56)
3762
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t").WithArguments("t").WithLocation(27, 79),
3768
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t").WithArguments("t").WithLocation(28, 78),
3774
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t").WithArguments("t").WithLocation(29, 75),
3865
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t").WithArguments("t").WithLocation(25, 52),
3871
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t").WithArguments("t").WithLocation(26, 51),
3877
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t").WithArguments("t").WithLocation(27, 48)
4108
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "x").WithArguments("x").WithLocation(13, 82),
4114
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "x").WithArguments("x").WithLocation(14, 82));
7757
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t").WithArguments("t").WithLocation(5, 59),
7766
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t").WithArguments("t").WithLocation(9, 68));
10666
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t").WithArguments("t").WithLocation(6, 20));
17948
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "x").WithArguments("x").WithLocation(3, 75),
17951
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "x").WithArguments("x").WithLocation(4, 83));
18391
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "r3").WithArguments("r3").WithLocation(7, 55));
19037
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t").WithArguments("t").WithLocation(16, 27));
19095
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t").WithArguments("t").WithLocation(9, 76),
19101
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t").WithArguments("t").WithLocation(10, 55),
19107
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t").WithArguments("t").WithLocation(11, 83));
19966
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t2").WithArguments("t2").WithLocation(13, 29));
23663
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "x").WithArguments("x").WithLocation(8, 24));
23950
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "x").WithArguments("x").WithLocation(9, 24));
24644
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "i3").WithArguments("i3").WithLocation(16, 25),
24871
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "i2").WithArguments("i2").WithLocation(12, 20),
24912
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "i").WithArguments("i").WithLocation(11, 20));
27602
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "bc").WithArguments("bc").WithLocation(60, 12),
27605
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "bc").WithArguments("bc").WithLocation(64, 12));
28631
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "p1").WithArguments("p1").WithLocation(41, 21),
28637
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "p").WithArguments("p").WithLocation(46, 40)
29674
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "i1").WithArguments("i1").WithLocation(3, 48),
29680
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "i2").WithArguments("i2").WithLocation(6, 24),
29686
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "i3").WithArguments("i3").WithLocation(9, 51),
29692
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "i4").WithArguments("i4").WithLocation(12, 27));
29731
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "i1").WithArguments("i1").WithLocation(5, 51),
29737
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "i2").WithArguments("i2").WithLocation(8, 28),
29743
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "i3").WithArguments("i3").WithLocation(11, 54),
29749
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "i4").WithArguments("i4").WithLocation(14, 31));