68 references to ERR_RefReturnScopedParameter
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder.ValueChecks.cs (1)
1595
(checkingReceiver: false, isRefScoped: true, inUnsafeRegion: false, _) => (ErrorCode.
ERR_RefReturnScopedParameter
, node),
Errors\ErrorFacts.cs (1)
2324
or ErrorCode.
ERR_RefReturnScopedParameter
Microsoft.CodeAnalysis.CSharp.CSharp15.UnitTests (2)
UnionsTests.cs (2)
11908
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "x").WithArguments("x").WithLocation(29, 19),
12006
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "x").WithArguments("x").WithLocation(29, 16),
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),
16504
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "x").WithArguments("x").WithLocation(29, 16),
Semantics\ExtensionTests.cs (1)
4599
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "receiver").WithArguments("receiver").WithLocation(8, 35));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (57)
Semantics\RefEscapingTests.cs (12)
812
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "x").WithArguments("x").WithLocation(18, 20)
904
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "x").WithArguments("x").WithLocation(24, 20)
969
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "x").WithArguments("x").WithLocation(38, 20)
1757
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "x").WithArguments("x").WithLocation(66, 20)
4604
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "y").WithArguments("y").WithLocation(33, 31));
6985
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "a").WithArguments("a").WithLocation(10, 26),
11787
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "rs3").WithArguments("rs3").WithLocation(31, 16));
12488
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "x").WithArguments("x").WithLocation(29, 19),
12584
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "x").WithArguments("x").WithLocation(29, 16),
13054
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "x").WithArguments("x").WithLocation(29, 16),
13800
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "x").WithArguments("x").WithLocation(29, 17),
15380
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "c2").WithArguments("c2").WithLocation(9, 26),
Semantics\RefFieldTests.cs (45)
3020
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "c").WithArguments("c").WithLocation(12, 56),
3023
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "s").WithArguments("s").WithLocation(13, 56),
3026
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "r").WithArguments("r").WithLocation(14, 56)
3140
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t").WithArguments("t").WithLocation(24, 84),
3146
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t").WithArguments("t").WithLocation(25, 83),
3152
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t").WithArguments("t").WithLocation(26, 80),
3258
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t").WithArguments("t").WithLocation(22, 60),
3264
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t").WithArguments("t").WithLocation(23, 59),
3270
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t").WithArguments("t").WithLocation(24, 56)
3834
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t").WithArguments("t").WithLocation(27, 79),
3840
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t").WithArguments("t").WithLocation(28, 78),
3846
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t").WithArguments("t").WithLocation(29, 75),
3937
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t").WithArguments("t").WithLocation(25, 52),
3943
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t").WithArguments("t").WithLocation(26, 51),
3949
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t").WithArguments("t").WithLocation(27, 48)
4180
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "x").WithArguments("x").WithLocation(13, 82),
4186
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "x").WithArguments("x").WithLocation(14, 82));
7829
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t").WithArguments("t").WithLocation(5, 59),
7838
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t").WithArguments("t").WithLocation(9, 68));
10738
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t").WithArguments("t").WithLocation(6, 20));
17983
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "x").WithArguments("x").WithLocation(3, 75),
17986
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "x").WithArguments("x").WithLocation(4, 83));
18425
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "r3").WithArguments("r3").WithLocation(7, 55));
19071
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t").WithArguments("t").WithLocation(16, 27));
19129
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t").WithArguments("t").WithLocation(9, 76),
19135
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t").WithArguments("t").WithLocation(10, 55),
19141
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t").WithArguments("t").WithLocation(11, 83));
20000
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "t2").WithArguments("t2").WithLocation(13, 29));
23641
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "x").WithArguments("x").WithLocation(8, 24));
23928
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "x").WithArguments("x").WithLocation(9, 24));
24622
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "i3").WithArguments("i3").WithLocation(16, 25),
24849
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "i2").WithArguments("i2").WithLocation(12, 20),
24890
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "i").WithArguments("i").WithLocation(11, 20));
27589
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "bc").WithArguments("bc").WithLocation(60, 12),
27592
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "bc").WithArguments("bc").WithLocation(64, 12));
28618
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "p1").WithArguments("p1").WithLocation(41, 21),
28624
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "p").WithArguments("p").WithLocation(46, 40)
29661
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "i1").WithArguments("i1").WithLocation(3, 48),
29667
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "i2").WithArguments("i2").WithLocation(6, 24),
29673
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "i3").WithArguments("i3").WithLocation(9, 51),
29679
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "i4").WithArguments("i4").WithLocation(12, 27));
29718
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "i1").WithArguments("i1").WithLocation(5, 51),
29724
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "i2").WithArguments("i2").WithLocation(8, 28),
29730
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "i3").WithArguments("i3").WithLocation(11, 54),
29736
Diagnostic(ErrorCode.
ERR_RefReturnScopedParameter
, "i4").WithArguments("i4").WithLocation(14, 31));