269 references to ERR_EscapeCall
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder.ValueChecks.cs (1)
2653
return checkingReceiver ? ErrorCode.ERR_EscapeCall2 : ErrorCode.
ERR_EscapeCall
;
Errors\ErrorFacts.cs (1)
1803
case ErrorCode.
ERR_EscapeCall
:
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (8)
CodeGen\CodeGenRefReadonlyReturnTests.cs (7)
980
Diagnostic(ErrorCode.
ERR_EscapeCall
, "M(ref local)").WithArguments("Program.M(ref int)", "x").WithLocation(11, 24),
996
Diagnostic(ErrorCode.
ERR_EscapeCall
, "M(ref local)").WithArguments("Program.M(ref int)", "x").WithLocation(11, 24));
1024
Diagnostic(ErrorCode.
ERR_EscapeCall
, "this[local]").WithArguments("Program.this[in int]", "x").WithLocation(8, 20)
1051
Diagnostic(ErrorCode.
ERR_EscapeCall
, "this[42]").WithArguments("Program.this[in int]", "x").WithLocation(6, 20)
1131
Diagnostic(ErrorCode.
ERR_EscapeCall
, "M(42)").WithArguments("Program.M(in int)", "x").WithLocation(6, 20)
1158
Diagnostic(ErrorCode.
ERR_EscapeCall
, "M()").WithArguments("Program.M(in int)", "x").WithLocation(6, 20)
1186
Diagnostic(ErrorCode.
ERR_EscapeCall
, "M(b)").WithArguments("Program.M(in int)", "x").WithLocation(7, 20)
CodeGen\CodeGenRefReturnTests.cs (1)
3158
Diagnostic(ErrorCode.
ERR_EscapeCall
, "G(ref d.Length)").WithArguments("C.G(ref dynamic)", "d").WithLocation(14, 20)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
Semantics\PatternMatchingTests3.cs (1)
505
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new RGBColor(span)").WithArguments("Program.RGBColor.RGBColor(System.Span<int>)", "span").WithLocation(17, 18),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (258)
Semantics\IndexAndRangeTests.cs (15)
1910
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new Index(s1)").WithArguments("System.Index.Index(System.Span<int>)", "x").WithLocation(28, 16),
1916
Diagnostic(ErrorCode.
ERR_EscapeCall
, "Range.StartAt(new Index(s2))").WithArguments("System.Range.StartAt(System.Index)", "start").WithLocation(34, 16),
1919
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new Index(s2)").WithArguments("System.Index.Index(System.Span<int>)", "x").WithLocation(34, 30),
1925
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new Index(s3)").WithArguments("System.Index.Index(System.Span<int>)", "x").WithLocation(40, 18),
1931
Diagnostic(ErrorCode.
ERR_EscapeCall
, "Range.EndAt(new Index(s4))").WithArguments("System.Range.EndAt(System.Index)", "end").WithLocation(46, 16),
1934
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new Index(s4)").WithArguments("System.Index.Index(System.Span<int>)", "x").WithLocation(46, 28),
1940
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new Index(s52)").WithArguments("System.Index.Index(System.Span<int>)", "x").WithLocation(52, 34),
1946
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new Range(new Index(s61), new Index(s62))").WithArguments("System.Range.Range(System.Index, System.Index)", "end").WithLocation(58, 16),
1949
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new Index(s62)").WithArguments("System.Index.Index(System.Span<int>)", "x").WithLocation(58, 42),
1955
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new Index(s71)").WithArguments("System.Index.Index(System.Span<int>)", "x").WithLocation(64, 16),
1961
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new Range(new Index(s81), new Index(s82))").WithArguments("System.Range.Range(System.Index, System.Index)", "start").WithLocation(70, 16),
1964
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new Index(s81)").WithArguments("System.Index.Index(System.Span<int>)", "x").WithLocation(70, 26),
1970
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new Index(s91)").WithArguments("System.Index.Index(System.Span<int>)", "x").WithLocation(77, 16),
1976
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new Range(new Index(s101), new Index(s102))").WithArguments("System.Range.Range(System.Index, System.Index)", "start").WithLocation(84, 16),
1979
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new Index(s101)").WithArguments("System.Index.Index(System.Span<int>)", "x").WithLocation(84, 26),
Semantics\InterpolationTests.cs (6)
14424
Diagnostic(ErrorCode.
ERR_EscapeCall
, expression).WithArguments("CustomHandler.CustomHandler(int, int, ref S1)", "s1").WithLocation(17, 20),
14629
Diagnostic(ErrorCode.
ERR_EscapeCall
, @"$""{s2}""").WithArguments("CustomHandler.CustomHandler(int, int, ref S1)", "s1").WithLocation(15, 20),
14674
Diagnostic(ErrorCode.
ERR_EscapeCall
, @"$""{1}""").WithArguments("CustomHandler.CustomHandler(int, int, ref S)", "s").WithLocation(17, 18));
15036
Diagnostic(ErrorCode.
ERR_EscapeCall
, @"$""{1}""").WithArguments("CustomHandler.CustomHandler(int, int, ref R)", "r").WithLocation(18, 22),
15039
Diagnostic(ErrorCode.
ERR_EscapeCall
, @"$""{1}""").WithArguments("CustomHandler.CustomHandler(int, int, ref R)", "r").WithLocation(18, 22));
15078
Diagnostic(ErrorCode.
ERR_EscapeCall
, @"$""{1}""").WithArguments("CustomHandler.CustomHandler(int, int, ref R)", "r").WithLocation(18, 28));
Semantics\PrimaryConstructorTests.cs (1)
14677
Diagnostic(ErrorCode.
ERR_EscapeCall
, "M2(ref x)").WithArguments("C1.M2(ref int)", "x").WithLocation(4, 25),
Semantics\RecordStructTests.cs (1)
7946
Diagnostic(ErrorCode.
ERR_EscapeCall
, "MayWrap(ref local)").WithArguments("Program.MayWrap(ref System.Span<int>)", "arg").WithLocation(9, 14));
Semantics\RefEscapingTests.cs (43)
242
Diagnostic(ErrorCode.
ERR_EscapeCall
, "MayWrap(ref local)").WithArguments("Program.MayWrap(ref System.Span<int>)", "arg").WithLocation(23, 30),
245
Diagnostic(ErrorCode.
ERR_EscapeCall
, "Test1(MayWrap(ref local))").WithArguments("Program.Test1(Program.S1)", "arg").WithLocation(23, 24)
291
Diagnostic(ErrorCode.
ERR_EscapeCall
, "Test1(sp)").WithArguments("Program.Test1(Program.S1)", "arg").WithLocation(24, 24)
342
Diagnostic(ErrorCode.
ERR_EscapeCall
, "Test1(ref sp)").WithArguments("Program.Test1(ref Program.S1)", "arg").WithLocation(23, 24),
348
Diagnostic(ErrorCode.
ERR_EscapeCall
, "Test1(ref sp)").WithArguments("Program.Test1(ref Program.S1)", "arg").WithLocation(29, 24)
358
Diagnostic(ErrorCode.
ERR_EscapeCall
, "Test1(ref sp)").WithArguments("Program.Test1(ref Program.S1)", "arg").WithLocation(23, 24),
364
Diagnostic(ErrorCode.
ERR_EscapeCall
, "Test1(ref sp)").WithArguments("Program.Test1(ref Program.S1)", "arg").WithLocation(29, 24)
476
Diagnostic(ErrorCode.
ERR_EscapeCall
, "Test1(sp)").WithArguments("Program.Test1(Program.S1)", "arg").WithLocation(31, 24),
521
Diagnostic(ErrorCode.
ERR_EscapeCall
, "Test1(MayNotWrap())").WithArguments("Program.Test1(Program.S1)", "arg").WithLocation(21, 24),
527
Diagnostic(ErrorCode.
ERR_EscapeCall
, "MayNotWrap()").WithArguments("Program.MayNotWrap(in int)", "arg").WithLocation(21, 30));
572
Diagnostic(ErrorCode.
ERR_EscapeCall
, "MayWrap(inner)").WithArguments("Program.MayWrap(System.Span<int>)", "arg").WithLocation(18, 21)
618
Diagnostic(ErrorCode.
ERR_EscapeCall
, "MayWrap(__arglist(inner))").WithArguments("Program.MayWrap(__arglist)", "__arglist").WithLocation(18, 17)
679
Diagnostic(ErrorCode.
ERR_EscapeCall
, "ReturnsRefSpan1(__arglist(ref local))").WithArguments("Program.ReturnsRefSpan1(__arglist)", "__arglist").WithLocation(32, 20)
799
Diagnostic(ErrorCode.
ERR_EscapeCall
, "ReturnsRef1(out var _)").WithArguments("Program.ReturnsRef1(out int)", "x").WithLocation(12, 20)
835
Diagnostic(ErrorCode.
ERR_EscapeCall
, "ReturnsRef1(out var _)").WithArguments("Program.ReturnsRef1(out int)", "x").WithLocation(7, 20),
885
Diagnostic(ErrorCode.
ERR_EscapeCall
, "ReturnsRef(out var z)").WithArguments("Program.ReturnsRef(out int)", "x").WithLocation(12, 20),
891
Diagnostic(ErrorCode.
ERR_EscapeCall
, "ReturnsRef(out z)").WithArguments("Program.ReturnsRef(out int)", "x").WithLocation(17, 20)
1795
Diagnostic(ErrorCode.
ERR_EscapeCall
, "MayWrap(ref inner)").WithArguments("Program.MayWrap(ref System.Span<int>)", "arg").WithLocation(19, 21)
1805
Diagnostic(ErrorCode.
ERR_EscapeCall
, "MayWrap(ref outer)").WithArguments("Program.MayWrap(ref System.Span<int>)", "arg").WithLocation(16, 21),
1811
Diagnostic(ErrorCode.
ERR_EscapeCall
, "MayWrap(ref inner)").WithArguments("Program.MayWrap(ref System.Span<int>)", "arg").WithLocation(19, 21)
1864
Diagnostic(ErrorCode.
ERR_EscapeCall
, "MayWrap(ref inner)").WithArguments("Program.MayWrap(ref System.Span<int>)", "arg").WithLocation(21, 21)
1928
Diagnostic(ErrorCode.
ERR_EscapeCall
, "MayWrap(ref inner)").WithArguments("Program.MayWrap(ref System.Span<int>)", "arg").WithLocation(20, 20),
1934
Diagnostic(ErrorCode.
ERR_EscapeCall
, "MayWrap(ref inner)").WithArguments("Program.MayWrap(ref System.Span<int>)", "arg").WithLocation(25, 20),
1940
Diagnostic(ErrorCode.
ERR_EscapeCall
, "MayWrap(ref inner)").WithArguments("Program.MayWrap(ref System.Span<int>)", "arg").WithLocation(28, 38));
1992
Diagnostic(ErrorCode.
ERR_EscapeCall
, "MayWrap(inner)").WithArguments("Program.MayWrap(System.Span<int>)", "arg").WithLocation(18, 23)
2166
Diagnostic(ErrorCode.
ERR_EscapeCall
, "MayWrap(ref arg1)").WithArguments("Program.MayWrap(ref System.Span<int>)", "arg").WithLocation(28, 20)
2499
Diagnostic(ErrorCode.
ERR_EscapeCall
, "MayWrap(arg1)").WithArguments("Program.MayWrap(in System.Span<int>)", "arg").WithLocation(44, 24),
2505
Diagnostic(ErrorCode.
ERR_EscapeCall
, "MayWrap(arg1.field)").WithArguments("Program.MayWrap(in System.Span<int>)", "arg").WithLocation(54, 24)
2598
Diagnostic(ErrorCode.
ERR_EscapeCall
, "MayWrap(ref arg1)").WithArguments("Program.MayWrap(ref System.Span<int>)", "arg").WithLocation(34, 20)
3101
Diagnostic(ErrorCode.
ERR_EscapeCall
, "MayWrap(ref arg1)").WithArguments("Program.MayWrap(ref System.Span<int>)", "arg").WithLocation(28, 20)
3150
Diagnostic(ErrorCode.
ERR_EscapeCall
, "MayWrap(arg2)").WithArguments("Program.MayWrap(in System.Span<int>)", "arg").WithLocation(25, 20),
3489
Diagnostic(ErrorCode.
ERR_EscapeCall
, "MayWrap(ref local)").WithArguments("Program.MayWrap(ref System.Span<int>)", "arg").WithLocation(16, 18),
6318
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new S(xyzw2)").WithArguments("S.S(System.Span<float>)", "x").WithLocation(18, 25),
6324
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new S(xyzw3)").WithArguments("S.S(System.Span<float>)", "x").WithLocation(26, 17),
6330
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new S(xyzw4)").WithArguments("S.S(System.Span<float>)", "x").WithLocation(33, 13),
6380
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new S(ReadOnlyVec.Self2())").WithArguments("S.S(System.Span<float>)", "x").WithLocation(11, 45),
6386
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new S(ReadOnlyVec.Self2())").WithArguments("S.S(System.Span<float>)", "x").WithLocation(12, 25),
6436
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new S(ReadOnlyVec.Self2())").WithArguments("S.S(System.Span<float>)", "x").WithLocation(11, 52),
6442
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new S(ReadOnlyVec.Self2())").WithArguments("S.S(System.Span<float>)", "x").WithLocation(12, 32),
6509
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new S(xyz2)").WithArguments("S.S(System.Span<float>)", "x").WithLocation(21, 29),
6515
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new S(xyz3)").WithArguments("S.S(System.Span<float>)", "x").WithLocation(29, 21),
6839
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new RS(ref __refvalue(ai.GetNextArg(), int))").WithArguments("RS.RS(ref int)", "i").WithLocation(17, 15),
6916
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F1(out int i)").WithArguments("Program.F1(out int)", "i").WithLocation(12, 20),
Semantics\RefFieldTests.cs (187)
2944
Diagnostic(ErrorCode.
ERR_EscapeCall
, "s.F1(ref t)").WithArguments("S.F1<T>(ref T)", "t").WithLocation(11, 70),
2950
Diagnostic(ErrorCode.
ERR_EscapeCall
, "s.F2(in t)").WithArguments("S.F2<T>(in T)", "t").WithLocation(12, 70),
2956
Diagnostic(ErrorCode.
ERR_EscapeCall
, "s.F2(t)").WithArguments("S.F2<T>(in T)", "t").WithLocation(13, 70),
2962
Diagnostic(ErrorCode.
ERR_EscapeCall
, "s.F3(out t)").WithArguments("S.F3<T>(out T)", "t").WithLocation(14, 70),
2968
Diagnostic(ErrorCode.
ERR_EscapeCall
, "s.F1(ref t)").WithArguments("S.F1<T>(ref T)", "t").WithLocation(29, 61),
2974
Diagnostic(ErrorCode.
ERR_EscapeCall
, "s.F2(in t)").WithArguments("S.F2<T>(in T)", "t").WithLocation(30, 75),
2984
Diagnostic(ErrorCode.
ERR_EscapeCall
, "s.F1(ref t)").WithArguments("S.F1<T>(ref T)", "t").WithLocation(11, 70),
2990
Diagnostic(ErrorCode.
ERR_EscapeCall
, "s.F2(in t)").WithArguments("S.F2<T>(in T)", "t").WithLocation(12, 70),
2996
Diagnostic(ErrorCode.
ERR_EscapeCall
, "s.F2(t)").WithArguments("S.F2<T>(in T)", "t").WithLocation(13, 70),
3002
Diagnostic(ErrorCode.
ERR_EscapeCall
, "s.F1(ref t)").WithArguments("S.F1<T>(ref T)", "t").WithLocation(24, 75),
3008
Diagnostic(ErrorCode.
ERR_EscapeCall
, "s.F2(in t)").WithArguments("S.F2<T>(in T)", "t").WithLocation(25, 75),
3014
Diagnostic(ErrorCode.
ERR_EscapeCall
, "s.F2(t)").WithArguments("S.F2<T>(in T)", "t").WithLocation(26, 75),
3020
Diagnostic(ErrorCode.
ERR_EscapeCall
, "s.F1(ref t)").WithArguments("S.F1<T>(ref T)", "t").WithLocation(29, 61),
3026
Diagnostic(ErrorCode.
ERR_EscapeCall
, "s.F2(in t)").WithArguments("S.F2<T>(in T)", "t").WithLocation(30, 75),
3074
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F1(ref t)").WithArguments("C.F1<T>(ref T)", "t").WithLocation(9, 48),
3080
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F2(in t)").WithArguments("C.F2<T>(in T)", "t").WithLocation(10, 48),
3086
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F2(t)").WithArguments("C.F2<T>(in T)", "t").WithLocation(11, 48),
3092
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F3(out t)").WithArguments("C.F3<T>(out T)", "t").WithLocation(12, 48),
3102
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F1(ref t)").WithArguments("C.F1<T>(ref T)", "t").WithLocation(9, 48),
3108
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F2(in t)").WithArguments("C.F2<T>(in T)", "t").WithLocation(10, 48),
3114
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F2(t)").WithArguments("C.F2<T>(in T)", "t").WithLocation(11, 48),
3120
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F1(ref t)").WithArguments("C.F1<T>(ref T)", "t").WithLocation(22, 53),
3126
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F2(in t)").WithArguments("C.F2<T>(in T)", "t").WithLocation(23, 53),
3132
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F2(t)").WithArguments("C.F2<T>(in T)", "t").WithLocation(24, 53),
3251
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F1(t, ref u)").WithArguments("Program.F1<T, U>(T, ref U)", "u").WithLocation(23, 20),
3257
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F2(t, in u)").WithArguments("Program.F2<T, U>(T, in U)", "u").WithLocation(29, 20),
3263
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F2(t, u)").WithArguments("Program.F2<T, U>(T, in U)", "u").WithLocation(35, 20),
3269
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F3(t, out u)").WithArguments("Program.F3<T, U>(T, out U)", "u").WithLocation(41, 20),
3275
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F4(ref t, ref u)").WithArguments("Program.F4<T, U>(ref T, ref U)", "t").WithLocation(47, 20),
3281
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F5(ref t, in u)").WithArguments("Program.F5<T, U>(ref T, in U)", "t").WithLocation(53, 20),
3287
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F5(ref t, u)").WithArguments("Program.F5<T, U>(ref T, in U)", "t").WithLocation(59, 20),
3293
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F6(ref t, out u)").WithArguments("Program.F6<T, U>(ref T, out U)", "t").WithLocation(65, 20),
3299
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F7(in t, in u)").WithArguments("Program.F7<T, U>(in T, in U)", "t").WithLocation(71, 20),
3305
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F7(t, u)").WithArguments("Program.F7<T, U>(in T, in U)", "t").WithLocation(77, 20),
3311
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F8(in t, out u)").WithArguments("Program.F8<T, U>(in T, out U)", "t").WithLocation(83, 20),
3317
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F8(t, out u)").WithArguments("Program.F8<T, U>(in T, out U)", "t").WithLocation(89, 20),
3323
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F9(out t, out u)").WithArguments("Program.F9<T, U>(out T, out U)", "t").WithLocation(95, 20),
3333
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F1(t, ref u)").WithArguments("Program.F1<T, U>(T, ref U)", "u").WithLocation(23, 20),
3339
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F2(t, in u)").WithArguments("Program.F2<T, U>(T, in U)", "u").WithLocation(29, 20),
3345
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F2(t, u)").WithArguments("Program.F2<T, U>(T, in U)", "u").WithLocation(35, 20),
3351
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F4(ref t, ref u)").WithArguments("Program.F4<T, U>(ref T, ref U)", "t").WithLocation(47, 20),
3357
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F5(ref t, in u)").WithArguments("Program.F5<T, U>(ref T, in U)", "t").WithLocation(53, 20),
3363
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F5(ref t, u)").WithArguments("Program.F5<T, U>(ref T, in U)", "t").WithLocation(59, 20),
3369
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F6(ref t, out u)").WithArguments("Program.F6<T, U>(ref T, out U)", "t").WithLocation(65, 20),
3375
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F7(in t, in u)").WithArguments("Program.F7<T, U>(in T, in U)", "t").WithLocation(71, 20),
3381
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F7(t, u)").WithArguments("Program.F7<T, U>(in T, in U)", "t").WithLocation(77, 20),
3387
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F8(in t, out u)").WithArguments("Program.F8<T, U>(in T, out U)", "t").WithLocation(83, 20),
3393
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F8(t, out u)").WithArguments("Program.F8<T, U>(in T, out U)", "t").WithLocation(89, 20),
3678
Diagnostic(ErrorCode.
ERR_EscapeCall
, "s.F1(ref t)").WithArguments("S.F1<T>(ref T)", "t").WithLocation(14, 65),
3684
Diagnostic(ErrorCode.
ERR_EscapeCall
, "s.F2(in t)").WithArguments("S.F2<T>(in T)", "t").WithLocation(15, 65),
3690
Diagnostic(ErrorCode.
ERR_EscapeCall
, "s.F2(t)").WithArguments("S.F2<T>(in T)", "t").WithLocation(16, 65),
3696
Diagnostic(ErrorCode.
ERR_EscapeCall
, "s.F1(ref t)").WithArguments("S.F1<T>(ref T)", "t").WithLocation(27, 70),
3702
Diagnostic(ErrorCode.
ERR_EscapeCall
, "s.F2(in t)").WithArguments("S.F2<T>(in T)", "t").WithLocation(28, 70),
3708
Diagnostic(ErrorCode.
ERR_EscapeCall
, "s.F2(t)").WithArguments("S.F2<T>(in T)", "t").WithLocation(29, 70),
3714
Diagnostic(ErrorCode.
ERR_EscapeCall
, "s.F1(ref t)").WithArguments("S.F1<T>(ref T)", "t").WithLocation(32, 56),
3720
Diagnostic(ErrorCode.
ERR_EscapeCall
, "s.F2(in t)").WithArguments("S.F2<T>(in T)", "t").WithLocation(33, 70),
3726
Diagnostic(ErrorCode.
ERR_EscapeCall
, "s.F2(t)").WithArguments("S.F2<T>(in T)", "t").WithLocation(34, 70),
3781
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F1(ref t)").WithArguments("C.F1<T>(ref T)", "t").WithLocation(12, 40),
3787
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F2(in t)").WithArguments("C.F2<T>(in T)", "t").WithLocation(13, 40),
3793
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F2(t)").WithArguments("C.F2<T>(in T)", "t").WithLocation(14, 40),
3799
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F1(ref t)").WithArguments("C.F1<T>(ref T)", "t").WithLocation(25, 45),
3805
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F2(in t)").WithArguments("C.F2<T>(in T)", "t").WithLocation(26, 45),
3811
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F2(t)").WithArguments("C.F2<T>(in T)", "t").WithLocation(27, 45),
3937
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F1(t, ref u)").WithArguments("Program.F1<T, U>(T, ref U)", "u").WithLocation(26, 16),
3943
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F2(t, in u)").WithArguments("Program.F2<T, U>(T, in U)", "u").WithLocation(32, 16),
3949
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F2(t, u)").WithArguments("Program.F2<T, U>(T, in U)", "u").WithLocation(38, 16),
3955
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F4(ref t, ref u)").WithArguments("Program.F4<T, U>(ref T, ref U)", "t").WithLocation(50, 16),
3961
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F5(ref t, in u)").WithArguments("Program.F5<T, U>(ref T, in U)", "t").WithLocation(56, 16),
3967
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F5(ref t, u)").WithArguments("Program.F5<T, U>(ref T, in U)", "t").WithLocation(62, 16),
3973
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F6(ref t, out u)").WithArguments("Program.F6<T, U>(ref T, out U)", "t").WithLocation(68, 16),
3979
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F7(in t, in u)").WithArguments("Program.F7<T, U>(in T, in U)", "t").WithLocation(74, 16),
3985
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F7(t, u)").WithArguments("Program.F7<T, U>(in T, in U)", "t").WithLocation(80, 16),
3991
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F8(in t, out u)").WithArguments("Program.F8<T, U>(in T, out U)", "t").WithLocation(86, 16),
3997
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F8(t, out u)").WithArguments("Program.F8<T, U>(in T, out U)", "t").WithLocation(92, 16),
4036
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F0(ref x, ref y)").WithArguments("Program.F0<T>(ref R<T>, ref R<T>)", "y").WithLocation(9, 68),
4042
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F0(ref x, ref y)").WithArguments("Program.F0<T>(ref R<T>, ref R<T>)", "x").WithLocation(13, 75),
4048
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F2(ref x, ref y)").WithArguments("Program.F2<T>(ref R<T>, scoped ref R<T>)", "x").WithLocation(14, 75),
4080
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F0(x, y)").WithArguments("Program.F0(R, R)", "y").WithLocation(11, 61),
4086
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F0(x, y)").WithArguments("Program.F0(R, R)", "x").WithLocation(15, 68),
4092
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F1(x, y)").WithArguments("Program.F1(R, scoped R)", "x").WithLocation(16, 68),
4129
Diagnostic(ErrorCode.
ERR_EscapeCall
, "M1(r)").WithArguments("Program.M1(R, params object[])", "input").WithLocation(15, 16),
4135
Diagnostic(ErrorCode.
ERR_EscapeCall
, "M1(r, 0, 1, 2)").WithArguments("Program.M1(R, params object[])", "input").WithLocation(21, 16),
4998
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new R<int>(ref i)").WithArguments("R<int>.R(ref int)", "t").WithLocation(12, 16),
5075
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F(in i1)").WithArguments("Program.F<int>(in int)", "t").WithLocation(10, 20),
5081
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F(i2)").WithArguments("Program.F<int>(in int)", "t").WithLocation(15, 20),
5087
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F(3)").WithArguments("Program.F<int>(in int)", "t").WithLocation(19, 20),
5126
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F(in x1, in y1)").WithArguments("Program.F<int>(in int, scoped in int)", "x").WithLocation(11, 20),
5132
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F(x2, in y2)").WithArguments("Program.F<int>(in int, scoped in int)", "x").WithLocation(17, 20),
5138
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F(3, in y3)").WithArguments("Program.F<int>(in int, scoped in int)", "x").WithLocation(22, 20),
5268
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new S<T>(ref t0)").WithArguments("S<T>.S(ref T)", "t").WithLocation(12, 16),
5274
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new S<T>(ref t1)").WithArguments("S<T>.S(ref T)", "t").WithLocation(19, 16),
5280
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new S<T>(ref t2)").WithArguments("S<T>.S(ref T)", "t").WithLocation(27, 14),
5286
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new S<T>(ref t4)").WithArguments("S<T>.S(ref T)", "t").WithLocation(40, 13),
10261
Diagnostic(ErrorCode.
ERR_EscapeCall
, "MayCaptureArg(ref i)").WithArguments("A.MayCaptureArg(ref int)", "i").WithLocation(6, 16),
10270
Diagnostic(ErrorCode.
ERR_EscapeCall
, "MayCaptureDefaultArg()").WithArguments("A.MayCaptureDefaultArg(in int)", "i").WithLocation(10, 16));
10320
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new R1(ref o)").WithArguments("R1.R1(ref object)", "o").WithLocation(6, 16),
10326
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new R2(new object())").WithArguments("R2.R2(in object)", "o").WithLocation(10, 16),
17268
Diagnostic(ErrorCode.
ERR_EscapeCall
, "d2(new R(ref i))").WithArguments("D2.Invoke(R)", "x").WithLocation(18, 16),
17271
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new R(ref i)").WithArguments("R.R(ref int)", "i").WithLocation(18, 19),
17391
Diagnostic(ErrorCode.
ERR_EscapeCall
, "f(y1, x1)").WithArguments("<anonymous delegate>.Invoke(R, scoped R)", "arg1").WithLocation(9, 13),
18418
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new R<T>(ref t)").WithArguments("R<T>.R(ref T)", "t").WithLocation(16, 14),
18476
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new R<T>(ref t)").WithArguments("R<T>.R(ref T)", "t").WithLocation(9, 63),
18482
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new R<T>(ref t)").WithArguments("R<T>.R(ref T)", "t").WithLocation(10, 42),
18488
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new R<T>(ref t)").WithArguments("R<T>.R(ref T)", "t").WithLocation(11, 70),
18585
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F0(new R<T>(ref t))").WithArguments("Program.F0<T>(R<T>)", "r0").WithLocation(19, 20),
18588
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new R<T>(ref t)").WithArguments("R<T>.R(ref T)", "t").WithLocation(19, 23),
18629
Diagnostic(ErrorCode.
ERR_EscapeCall
, "this[x2, new R(ref i2)]").WithArguments("C.this[R, R]", "y").WithLocation(16, 16),
18632
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new R(ref i2)").WithArguments("R.R(ref int)", "i").WithLocation(16, 25),
18638
Diagnostic(ErrorCode.
ERR_EscapeCall
, "c[new R(ref i4), y4]").WithArguments("C.this[R, R]", "x").WithLocation(25, 16),
18641
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new R(ref i4)").WithArguments("R.R(ref int)", "i").WithLocation(25, 18),
18682
Diagnostic(ErrorCode.
ERR_EscapeCall
, "this[x2, y2]").WithArguments("C.this[in int, in int]", "y").WithLocation(16, 16),
18688
Diagnostic(ErrorCode.
ERR_EscapeCall
, "c[x4, y4]").WithArguments("C.this[in int, in int]", "x").WithLocation(25, 16),
18729
Diagnostic(ErrorCode.
ERR_EscapeCall
, "this[x2, new R(ref i2)]").WithArguments("C.this[R, R]", "y").WithLocation(16, 20),
18732
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new R(ref i2)").WithArguments("R.R(ref int)", "i").WithLocation(16, 29),
18738
Diagnostic(ErrorCode.
ERR_EscapeCall
, "c[new R(ref i4), y4]").WithArguments("C.this[R, R]", "x").WithLocation(25, 20),
18741
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new R(ref i4)").WithArguments("R.R(ref int)", "i").WithLocation(25, 22),
18777
Diagnostic(ErrorCode.
ERR_EscapeCall
, "this[x2, y2]").WithArguments("C.this[in int, in int]", "y").WithLocation(11, 20),
18783
Diagnostic(ErrorCode.
ERR_EscapeCall
, "c[x4, y4]").WithArguments("C.this[in int, in int]", "x").WithLocation(20, 20),
19249
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new R<T>(ref t1)").WithArguments("R<T>.R(ref T)", "t").WithLocation(11, 16),
19258
Diagnostic(ErrorCode.
ERR_EscapeCall
, "Create(ref t3)").WithArguments("R<T>.Create(ref T)", "t").WithLocation(24, 16),
19305
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new R<T>(ref t1)").WithArguments("R<T>.R(ref T)", "t").WithLocation(10, 16),
19314
Diagnostic(ErrorCode.
ERR_EscapeCall
, "Create(ref t3)").WithArguments("R<T>.Create(ref T)", "t").WithLocation(21, 16),
19347
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new R<T>(ref t2)").WithArguments("R<T>.R(ref T)", "t").WithLocation(13, 16),
19618
Diagnostic(ErrorCode.
ERR_EscapeCall
, "c[r1]").WithArguments("C.this[R<int>]", "r").WithLocation(12, 16),
19656
Diagnostic(ErrorCode.
ERR_EscapeCall
, "c[i1]").WithArguments("C.this[in int]", "i").WithLocation(10, 16),
19662
Diagnostic(ErrorCode.
ERR_EscapeCall
, "c[2]").WithArguments("C.this[in int]", "i").WithLocation(14, 16),
21141
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new R(ref x)").WithArguments("R.R(ref int)", "i").WithLocation(20, 17),
21147
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new R(ref x)").WithArguments("R.R(ref int)", "i").WithLocation(29, 17),
21153
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new R(ref x)").WithArguments("R.R(ref int)", "i").WithLocation(36, 13),
21909
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new R(ref this)").WithArguments("R.R(ref S1)", "s1").WithLocation(11, 14),
21915
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new R(ref this)").WithArguments("R.R(ref S1)", "s1").WithLocation(15, 14),
21921
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new R(in this)").WithArguments("R.R(in S2)", "s2").WithLocation(22, 14),
21927
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new R(in this)").WithArguments("R.R(in S2)", "s2").WithLocation(26, 14),
22569
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F1A(ref r)").WithArguments("A<int>.F1A(ref R<int>)", "r1").WithLocation(7, 20),
22575
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F2A(ref r)").WithArguments("A<int>.F2A(scoped ref R<int>)", "r2").WithLocation(13, 20),
22616
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F1A(ref r)").WithArguments("A<int>.F1A(ref R<int>)", "r1").WithLocation(6, 20),
22859
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F3A(out i)").WithArguments("A<int>.F3A(out int)", "t3").WithLocation(16, 20),
22912
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F1A(ref i)").WithArguments("A<int>.F1A(ref int)", "t1").WithLocation(14, 20),
22918
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F3A(ref i)").WithArguments("A<int>.F3A(ref int)", "t3").WithLocation(24, 20),
22924
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F4A(ref i)").WithArguments("A<int>.F4A(ref int)", "t4").WithLocation(29, 20),
22978
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F1A(in i)").WithArguments("A<int>.F1A(in int)", "t1").WithLocation(14, 20),
22984
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F3A(in i)").WithArguments("A<int>.F3A(in int)", "t3").WithLocation(24, 20),
22990
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F4A(in i)").WithArguments("A<int>.F4A(in int)", "t4").WithLocation(29, 20),
23068
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F1A(r)").WithArguments("A<int>.F1A(R<int>)", "r1").WithLocation(32, 20),
23074
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F3A(r)").WithArguments("A<int>.F3A(R<int>)", "r3").WithLocation(44, 20),
23080
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F4A(r)").WithArguments("A<int>.F4A(R<int>)", "r4").WithLocation(50, 20),
23482
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new R(in i1)").WithArguments("R.R(in int)", "i").WithLocation(7, 16),
23488
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new R(in i2)").WithArguments("R.R(in int)", "i").WithLocation(11, 16),
23494
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new R(in i3)").WithArguments("R.R(in int)", "i").WithLocation(16, 16),
23500
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new R(in i6)").WithArguments("R.R(in int)", "i").WithLocation(29, 16),
23657
Diagnostic(ErrorCode.
ERR_EscapeCall
, "UnscopedOut(out i6)").WithArguments("A<int>.UnscopedOut(out int)", "t6").WithLocation(31, 20),
23727
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F1(out i3)").WithArguments("Program.F1(out int)", "i1").WithLocation(17, 20),
23851
Diagnostic(ErrorCode.
ERR_EscapeCall
, "A.UnscopedRefOnly(out i)").WithArguments("A.UnscopedRefOnly(out int)", "i").WithLocation(16, 20),
25787
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F1(out T t)").WithArguments("Program.F1<T>(out T)", "t").WithLocation(4, 33),
27250
Diagnostic(ErrorCode.
ERR_EscapeCall
, "Inner1(ref p1)").WithArguments("Inner1(ref S)", "s").WithLocation(31, 10),
27256
Diagnostic(ErrorCode.
ERR_EscapeCall
, "Inner1(ref p1)").WithArguments("Inner1(ref S)", "s").WithLocation(41, 10),
27262
Diagnostic(ErrorCode.
ERR_EscapeCall
, "Inner1(ref p)").WithArguments("Inner1(ref S)", "s").WithLocation(46, 29),
27434
Diagnostic(ErrorCode.
ERR_EscapeCall
, "Inner1(ref this)").WithArguments("S.Inner1(ref S)", "s").WithLocation(31, 13),
27440
Diagnostic(ErrorCode.
ERR_EscapeCall
, "Inner1(ref this)").WithArguments("S.Inner1(ref S)", "s").WithLocation(36, 13),
27600
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new RS(ref i)").WithArguments("RS.RS(ref int)", "i").WithLocation(13, 16),
27629
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new RS(ref i)").WithArguments("RS.RS(ref int)", "i").WithLocation(9, 50),
27658
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new RS(in i)").WithArguments("RS.RS(in int)", "i").WithLocation(9, 49),
27690
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new RS(ref i.field)").WithArguments("RS.RS(ref int)", "i").WithLocation(11, 49),
27831
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F(stackalloc byte[1])").WithArguments("R.F(System.Span<byte>)", "s").WithLocation(4, 31),
27837
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F(stackalloc byte[1])").WithArguments("R.F(System.Span<byte>)", "s").WithLocation(5, 40),
27951
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F(stackalloc byte[1])").WithArguments("R.F<byte>(System.Span<byte>)", "s").WithLocation(4, 20),
27960
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F(stackalloc byte[1])").WithArguments("R.F<byte>(System.Span<byte>)", "s").WithLocation(5, 29),
27985
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F(stackalloc int[1])").WithArguments("R.F<int>(in System.Span<int>)", "s").WithLocation(4, 37),
28032
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F<byte>(out var b1)").WithArguments("R.F<byte>(out byte)", "t").WithLocation(4, 24),
28038
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F<byte>(out var b2)").WithArguments("R.F<byte>(out byte)", "t").WithLocation(5, 33),
28316
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new(ref i1)").WithArguments("RS.RS(ref int)", "i0").WithLocation(3, 40),
28322
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new(ref i2)").WithArguments("RS.RS(ref int)", "i0").WithLocation(6, 16),
28328
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new RS(ref i3)").WithArguments("RS.RS(ref int)", "i0").WithLocation(9, 40),
28334
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new RS(ref i4)").WithArguments("RS.RS(ref int)", "i0").WithLocation(12, 16),
28373
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new(ref i1)").WithArguments("RS.RS(ref int)", "i0").WithLocation(5, 43),
28379
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new(ref i2)").WithArguments("RS.RS(ref int)", "i0").WithLocation(8, 20),
28385
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new RS(ref i3)").WithArguments("RS.RS(ref int)", "i0").WithLocation(11, 43),
28391
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new RS(ref i4)").WithArguments("RS.RS(ref int)", "i0").WithLocation(14, 20),
28582
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new RefStruct(ref value)").WithArguments("Repro.RefStruct.RefStruct(ref int)", "i").WithLocation(7, 14),
28588
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new RefStruct(ref value)").WithArguments("Repro.RefStruct.RefStruct(ref int)", "i").WithLocation(12, 26),
28594
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new RefStruct(ref value)").WithArguments("Repro.RefStruct.RefStruct(ref int)", "i").WithLocation(17, 26),
28600
Diagnostic(ErrorCode.
ERR_EscapeCall
, "new RefStruct(ref value)").WithArguments("Repro.RefStruct.RefStruct(ref int)", "i").WithLocation(22, 26),
28677
Diagnostic(ErrorCode.
ERR_EscapeCall
, "M1(ref s1, ref s2)").WithArguments("Repro.M1(ref Repro.RefStruct, ref Repro.RefStruct)", "s2").WithLocation(14, 20),
29273
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F2(out _)").WithArguments("Program.F2(out int)", "i").WithLocation(5, 20),
29301
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F2(out _)").WithArguments("Program.F2(out int)", "i").WithLocation(6, 20),
29391
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F(x, y switch { Span<int> inner => inner })").WithArguments("Program.F(System.Span<int>, System.Span<int>)", "y").WithLocation(12, 13),
29499
Diagnostic(ErrorCode.
ERR_EscapeCall
, "F0(ref x1, ref y1)").WithArguments("Program.F0(ref int, ref int)", "y").WithLocation(12, 24),
Semantics\RefLocalsAndReturnsTests.cs (4)
2180
Diagnostic(ErrorCode.
ERR_EscapeCall
, "Goo(ref M1)").WithArguments("Test.Goo<char>(ref char)", "arg").WithLocation(36, 24),
2186
Diagnostic(ErrorCode.
ERR_EscapeCall
, "Goo(ref M2.x)").WithArguments("Test.Goo<char>(ref char)", "arg").WithLocation(41, 24),
3752
Diagnostic(ErrorCode.
ERR_EscapeCall
, "d(ref i, ref j, o)").WithArguments("D.Invoke(ref int, ref int, object)", "i").WithLocation(8, 20)
3776
Diagnostic(ErrorCode.
ERR_EscapeCall
, "M(ref j)").WithArguments("Program.M(ref int)", "i").WithLocation(7, 20)
Semantics\Utf8StringsLiteralsTests.cs (1)
3781
Diagnostic(ErrorCode.
ERR_EscapeCall
, @"Test3(""cat""u8)").WithArguments("C.Test3(in System.ReadOnlySpan<byte>)", "x").WithLocation(7, 20),