338 references to ERR_EscapeVariable
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder.ValueChecks.cs (4)
904
Error(diagnostics, inUnsafeRegion ? ErrorCode.WRN_EscapeVariable : ErrorCode.
ERR_EscapeVariable
, node, localSymbol);
1067
Error(diagnostics, _inUnsafeRegion ? ErrorCode.WRN_EscapeVariable : ErrorCode.
ERR_EscapeVariable
, node, parameter);
3934
Error(diagnostics, inUnsafeRegion ? ErrorCode.WRN_EscapeVariable : ErrorCode.
ERR_EscapeVariable
, node, expr.Syntax);
3943
Error(diagnostics, inUnsafeRegion ? ErrorCode.WRN_EscapeVariable : ErrorCode.
ERR_EscapeVariable
, node, localSymbol);
Errors\ErrorFacts.cs (1)
1808
case ErrorCode.
ERR_EscapeVariable
:
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (39)
Semantics\PatternMatchingTests.cs (34)
6740
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(10, 24));
6768
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(10, 24)
6796
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(12, 28));
6823
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(12, 28));
6900
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(16, 42),
6903
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(24, 40),
6906
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(32, 41),
6909
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(40, 37),
6912
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(48, 37),
6915
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(56, 32),
6918
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(64, 35)
6996
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(16, 76),
6999
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(24, 74),
7002
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(32, 92),
7005
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(40, 88),
7008
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(48, 54),
7011
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(56, 49),
7014
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(64, 86)
7078
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(14, 46),
7081
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(20, 44),
7084
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(26, 45),
7087
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(32, 41),
7090
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(38, 41),
7093
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(44, 36),
7096
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(50, 39)
7162
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(14, 80),
7168
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(20, 78),
7174
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(26, 96),
7180
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(32, 92),
7186
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(38, 58),
7192
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(44, 53),
7198
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(50, 56)
7236
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rr0").WithArguments("rr0").WithLocation(19, 52),
7239
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rr1").WithArguments("rr1").WithLocation(23, 56));
Semantics\PatternMatchingTests_ListPatterns.cs (4)
2853
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "list").WithArguments("list").WithLocation(15, 35),
2856
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "element").WithArguments("element").WithLocation(22, 17),
2859
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "slice").WithArguments("slice").WithLocation(23, 17),
2862
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "list").WithArguments("list").WithLocation(24, 17));
Semantics\PatternMatchingTests3.cs (1)
508
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "span").WithArguments("span").WithLocation(17, 31));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (294)
Semantics\IndexAndRangeTests.cs (21)
289
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(9, 16));
1913
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s1").WithArguments("s1").WithLocation(28, 26),
1922
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(34, 40),
1928
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s3").WithArguments("s3").WithLocation(40, 28),
1937
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s4").WithArguments("s4").WithLocation(46, 38),
1943
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s52").WithArguments("s52").WithLocation(52, 44),
1952
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s62").WithArguments("s62").WithLocation(58, 52),
1958
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s71").WithArguments("s71").WithLocation(64, 26),
1967
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s81").WithArguments("s81").WithLocation(70, 36),
1973
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s91").WithArguments("s91").WithLocation(77, 26),
1982
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s101").WithArguments("s101").WithLocation(84, 36)
2096
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r1").WithArguments("r1").WithLocation(29, 16),
2099
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r2").WithArguments("r2").WithLocation(36, 16),
2102
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r3").WithArguments("r3").WithLocation(43, 16),
2105
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r4").WithArguments("r4").WithLocation(50, 16),
2108
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r5").WithArguments("r5").WithLocation(57, 16),
2111
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r6").WithArguments("r6").WithLocation(64, 16),
2114
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r7").WithArguments("r7").WithLocation(71, 16),
2117
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r8").WithArguments("r8").WithLocation(78, 16),
2120
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r9").WithArguments("r9").WithLocation(86, 16),
2123
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r10").WithArguments("r10").WithLocation(94, 16)
Semantics\InterpolationTests.cs (16)
14253
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(17, 19)
14412
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(17, 23));
14427
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(17, 23));
14572
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c").WithArguments("c").WithLocation(16, 16)
14613
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(15, 23)
14620
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "this").WithArguments("out CustomHandler this").WithLocation(10, 100),
14632
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(15, 23)
14668
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "this").WithArguments("out CustomHandler this").WithLocation(5, 97),
14716
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(20, 28));
14790
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "h1").WithArguments("h1").WithLocation(15, 16),
14796
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(21, 28));
14841
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "h3").WithArguments("h3").WithLocation(29, 16));
14955
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r").WithArguments("r").WithLocation(13, 16));
14988
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "this").WithArguments("out CustomHandler this").WithLocation(5, 97),
15024
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "this").WithArguments("out CustomHandler this").WithLocation(5, 97),
15072
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "this").WithArguments("out CustomHandler this").WithLocation(5, 97),
Semantics\RawInterpolationTests_Handler.cs (6)
10992
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(17, 21));
11107
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(17, 25));
11249
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c").WithArguments("c").WithLocation(18, 16));
11287
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "this").WithArguments("out CustomHandler this").WithLocation(10, 107),
11293
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(15, 25));
11325
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "this").WithArguments("out CustomHandler this").WithLocation(5, 104));
Semantics\RecordStructTests.cs (3)
7904
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "Field2 = inner").WithArguments("inner").WithLocation(12, 48),
7907
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "Field1 = inner").WithArguments("inner").WithLocation(23, 34)
7943
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "local").WithArguments("local").WithLocation(9, 26),
Semantics\RefEscapingTests.cs (109)
144
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(10, 21));
239
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "local").WithArguments("local").WithLocation(23, 42),
288
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "sp").WithArguments("sp").WithLocation(24, 30),
355
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "sp").WithArguments("sp").WithLocation(23, 34),
421
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "spNr").WithArguments("spNr").WithLocation(33, 19),
424
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "ternary").WithArguments("ternary").WithLocation(39, 19)
473
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "sp").WithArguments("sp").WithLocation(31, 30),
569
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(18, 29),
615
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(18, 35),
676
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "local").WithArguments("local").WithLocation(32, 50),
762
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "local").WithArguments("local").WithLocation(22, 18),
765
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "local").WithArguments("local").WithLocation(25, 26)
1448
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(13, 13));
1792
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(19, 33),
1808
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(19, 33),
1861
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(21, 33),
1925
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(20, 32),
1931
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(25, 32),
1937
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(28, 50),
1989
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(18, 31),
2136
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rInner").WithArguments("rInner").WithLocation(20, 39),
2142
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(23, 27),
2151
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rInner").WithArguments("rInner").WithLocation(20, 39),
2157
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(23, 27),
2304
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rInner").WithArguments("rInner").WithLocation(20, 46),
2310
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(23, 34),
2320
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rInner").WithArguments("rInner").WithLocation(20, 46),
2326
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(23, 34),
2468
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rInner").WithArguments("rInner").WithLocation(24, 29),
2474
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(27, 29),
2484
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rInner").WithArguments("rInner").WithLocation(24, 29),
2490
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(27, 29),
2567
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rInner").WithArguments("rInner").WithLocation(26, 43),
2573
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(29, 31),
2583
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rInner").WithArguments("rInner").WithLocation(26, 43),
2589
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(29, 31),
2661
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "Field2 = inner").WithArguments("inner").WithLocation(16, 47),
2664
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "Field1 = inner").WithArguments("inner").WithLocation(27, 33)
2730
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x1").WithArguments("x1").WithLocation(18, 20),
2733
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x2").WithArguments("x2").WithLocation(29, 20)
2805
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(16, 28),
2808
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "[outer] = inner").WithArguments("inner").WithLocation(25, 27)
2889
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x1").WithArguments("x1").WithLocation(18, 16),
2892
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "[outer] = inner").WithArguments("inner").WithLocation(29, 29)
2979
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(15, 38),
2982
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(25, 16),
2985
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "[outer] = inner").WithArguments("inner").WithLocation(33, 37),
3070
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rInner").WithArguments("rInner").WithLocation(20, 54),
3076
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(23, 42),
3086
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rInner").WithArguments("rInner").WithLocation(20, 54),
3092
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(23, 42),
3270
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "sInner").WithArguments("sInner").WithLocation(27, 44),
3273
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "sInner").WithArguments("sInner").WithLocation(30, 35),
3276
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "sInner").WithArguments("sInner").WithLocation(33, 60),
3282
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "sInner").WithArguments("sInner").WithLocation(36, 47),
3288
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "ternarySame1").WithArguments("ternarySame1").WithLocation(39, 47),
3431
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "local").WithArguments("local").WithLocation(19, 26),
3486
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "local").WithArguments("local").WithLocation(16, 30),
3492
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "sp1").WithArguments("sp1").WithLocation(22, 20)
3604
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "value1").WithArguments("value1").WithLocation(14, 33)
3660
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackAllocated").WithArguments("stackAllocated").WithLocation(17, 43),
3987
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "local").WithArguments("local").WithLocation(13, 56),
3993
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "local").WithArguments("local").WithLocation(14, 56),
4076
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "(global, global) = local").WithArguments("(global, global) = local").WithLocation(10, 9),
4082
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "(global, local) = local").WithArguments("(global, local) = local").WithLocation(11, 9),
4088
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "(global, _) = local").WithArguments("(global, _) = local").WithLocation(13, 9),
4120
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "(M(), M()) = local").WithArguments("(M(), M()) = local").WithLocation(9, 9),
4211
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "(global, global) = local").WithArguments("(global, global) = local").WithLocation(10, 9),
4227
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "(global, global) = local").WithArguments("(global, global) = local").WithLocation(10, 9),
4263
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "(x1, y1) = local").WithArguments("(x1, y1) = local").WithLocation(10, 9),
4298
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "(x1, y1) = local").WithArguments("(x1, y1) = local").WithLocation(10, 9),
4683
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "local1").WithArguments("local1").WithLocation(10, 18),
4686
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "local2").WithArguments("local2").WithLocation(11, 18));
4721
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "local").WithArguments("local").WithLocation(11, 22)
4760
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "local1").WithArguments("local1").WithLocation(11, 22),
4763
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "local2").WithArguments("local2").WithLocation(12, 22));
4797
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "local1").WithArguments("local1").WithLocation(10, 18),
4800
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "local2").WithArguments("local2").WithLocation(11, 18));
4833
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "local2").WithArguments("local2").WithLocation(11, 18));
5303
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(8, 24)
5703
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "xyzw1").WithArguments("xyzw1").WithLocation(16, 16),
5706
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "xyzw2").WithArguments("xyzw2").WithLocation(23, 16)
5849
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "xyzw1").WithArguments("xyzw1").WithLocation(16, 16),
5852
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "xyzw2").WithArguments("xyzw2").WithLocation(23, 16)
6140
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "xyzw1").WithArguments("xyzw1").WithLocation(14, 25),
6143
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "xyzw2").WithArguments("xyzw2").WithLocation(22, 17),
6146
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "xyzw3").WithArguments("xyzw3").WithLocation(29, 13)
6321
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "xyzw2").WithArguments("xyzw2").WithLocation(18, 31),
6327
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "xyzw3").WithArguments("xyzw3").WithLocation(26, 23),
6333
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "xyzw4").WithArguments("xyzw4").WithLocation(33, 19)
6512
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "xyz2").WithArguments("xyz2").WithLocation(21, 35),
6518
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "xyz3").WithArguments("xyz3").WithLocation(29, 27)
6579
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "xyzw1").WithArguments("xyzw1").WithLocation(16, 16),
6582
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "xyzw2").WithArguments("xyzw2").WithLocation(23, 16),
6585
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "xyzw3").WithArguments("xyzw3").WithLocation(29, 16),
6588
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "xyzw4").WithArguments("xyzw4").WithLocation(36, 16)
6636
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rs4").WithArguments("rs4").WithLocation(19, 16),
6639
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rs4").WithArguments("rs4").WithLocation(25, 16),
6689
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rs4").WithArguments("rs4").WithLocation(16, 16),
6692
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rs4").WithArguments("rs4").WithLocation(22, 16),
6698
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rs3").WithArguments("scoped RS rs3").WithLocation(28, 12));
6762
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rs3").WithArguments("rs3").WithLocation(9, 15)
6845
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rs3").WithArguments("rs3").WithLocation(23, 16),
6848
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rs5").WithArguments("rs5").WithLocation(29, 16));
6889
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rs4").WithArguments("rs4").WithLocation(19, 16));
6979
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rs4").WithArguments("rs4").WithLocation(19, 16),
6982
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rs6").WithArguments("rs6").WithLocation(27, 16),
6985
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rs4").WithArguments("rs4").WithLocation(36, 16),
6988
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rs6").WithArguments("rs6").WithLocation(45, 16)
Semantics\RefFieldTests.cs (124)
2509
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r2.F").WithArguments("r2").WithLocation(13, 20));
2515
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r2.F").WithArguments("r2").WithLocation(13, 20));
4083
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(11, 67),
4089
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("scoped R x").WithLocation(15, 71),
4095
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("scoped R x").WithLocation(16, 71));
4132
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r").WithArguments("r").WithLocation(15, 19),
4138
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r").WithArguments("r").WithLocation(21, 19));
4242
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(20, 23),
4248
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(21, 23),
4254
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(22, 23),
4260
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(24, 16),
4266
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(25, 16),
4272
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(26, 16));
4465
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(16, 33),
4471
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(17, 26));
4510
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(14, 33),
4516
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(15, 16));
4602
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y1").WithArguments("y1").WithLocation(12, 24),
4608
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y1").WithArguments("y1").WithLocation(13, 16));
4648
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "local").WithArguments("local").WithLocation(16, 20));
5381
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(13, 22),
5387
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(14, 11));
8785
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "(x1, y1) = s").WithArguments("(x1, y1) = s").WithLocation(9, 9),
8791
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(10, 9),
8829
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "(x1, y1) = s").WithArguments("(x1, y1) = s").WithLocation(9, 9),
8835
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(10, 9),
8875
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "(x, (y, z2)) = s").WithArguments("(x, (y, z2)) = s").WithLocation(20, 9),
8881
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "(z2, (y, z1)) = s").WithArguments("(z2, (y, z1)) = s").WithLocation(21, 9),
9038
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y1").WithArguments("y1").WithLocation(16, 16),
9041
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y2").WithArguments("y2").WithLocation(23, 16));
9084
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y1").WithArguments("y1").WithLocation(8, 16),
9087
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y2").WithArguments("y2").WithLocation(14, 16));
9132
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y1").WithArguments("y1").WithLocation(21, 20));
9184
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "(x1, y1) = span").WithArguments("(x1, y1) = span").WithLocation(11, 9),
9190
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y2").WithArguments("y2").WithLocation(18, 16),
9193
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y3").WithArguments("y3").WithLocation(24, 16),
9196
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y4").WithArguments("y4").WithLocation(30, 16));
9688
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s1").WithArguments("s1").WithLocation(7, 20));
9729
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s1").WithArguments("s1").WithLocation(7, 20));
10129
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r2").WithArguments("r2").WithLocation(13, 18));
10462
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(7, 25));
13591
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s1").WithArguments("s1").WithLocation(10, 18),
13594
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(14, 18));
13633
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s1").WithArguments("s1").WithLocation(10, 22),
13636
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(15, 18)
13674
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s1").WithArguments("s1").WithLocation(10, 18),
13677
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(13, 18)
13735
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s1").WithArguments("s1").WithLocation(10, 18),
13738
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(14, 18),
13741
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "(s11, d) = new S(ref i1)").WithArguments("(s11, d) = new S(ref i1)").WithLocation(24, 13),
13747
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s21").WithArguments("s21").WithLocation(31, 18),
13750
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "(s31, f) = s0").WithArguments("(s31, f) = s0").WithLocation(36, 13),
13813
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s1").WithArguments("s1").WithLocation(10, 18),
13816
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(14, 18),
13819
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s21").WithArguments("s21").WithLocation(23, 18),
13822
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s4").WithArguments("s4").WithLocation(29, 18),
13825
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s5").WithArguments("s5").WithLocation(34, 18),
13828
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s7").WithArguments("s7").WithLocation(39, 18)
14857
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r6").WithArguments("r6").WithLocation(28, 22));
14970
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(15, 18)
15071
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s1").WithArguments("s1").WithLocation(10, 22)
15126
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s1").WithArguments("s1").WithLocation(10, 22));
15290
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r").WithArguments("scoped R r").WithLocation(4, 39),
15293
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "(R)r").WithArguments("scoped R r").WithLocation(7, 39));
16009
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r").WithArguments("scoped R r").WithLocation(13, 35)
16049
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r").WithArguments("scoped R r").WithLocation(14, 28),
16345
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r8").WithArguments("scoped R r8").WithLocation(18, 36),
16351
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r9").WithArguments("scoped R r9").WithLocation(19, 28)
17294
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("scoped R y").WithLocation(4, 53),
17297
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("scoped R y").WithLocation(5, 49));
17394
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y1").WithArguments("scoped R y1").WithLocation(9, 15));
17630
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x1").WithArguments("x1").WithLocation(8, 33),
17754
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r1").WithArguments("scoped R<int> r1").WithLocation(5, 43));
17814
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "l1").WithArguments("l1").WithLocation(12, 16));
17893
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "l0").WithArguments("l0").WithLocation(7, 16),
17896
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "l1").WithArguments("l1").WithLocation(12, 16),
17899
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "l2").WithArguments("l2").WithLocation(17, 16),
17902
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "l3").WithArguments("l3").WithLocation(22, 16));
17981
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "l1").WithArguments("l1").WithLocation(12, 16));
18052
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r1").WithArguments("scoped R<int> r1").WithLocation(11, 36));
18090
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r1").WithArguments("scoped R<int> r1").WithLocation(11, 36),
18385
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r.F").WithArguments("scoped R<T> r").WithLocation(12, 55));
18415
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r1.F").WithArguments("r1").WithLocation(11, 20),
18450
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r1.F").WithArguments("r1").WithLocation(11, 20),
18453
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r2.F").WithArguments("r2").WithLocation(16, 20));
18519
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r1.F1").WithArguments("scoped R1<T> r1").WithLocation(14, 44));
19031
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r1").WithArguments("r1").WithLocation(16, 16),
19034
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r2").WithArguments("r2").WithLocation(23, 16),
19040
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r4").WithArguments("r4").WithLocation(39, 16),
19043
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r5").WithArguments("r5").WithLocation(46, 16),
19046
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r6").WithArguments("r6").WithLocation(53, 16),
19052
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r8").WithArguments("r8").WithLocation(69, 16));
19126
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r1").WithArguments("r1").WithLocation(15, 16),
19129
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r2").WithArguments("r2").WithLocation(21, 16),
19135
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r4").WithArguments("r4").WithLocation(35, 16),
19138
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r5").WithArguments("r5").WithLocation(41, 16),
19141
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r6").WithArguments("r6").WithLocation(47, 16),
19147
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r8").WithArguments("r8").WithLocation(61, 16));
19464
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r1").WithArguments("r1").WithLocation(13, 9),
19493
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r1").WithArguments("r1").WithLocation(13, 9),
19528
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(12, 17));
19621
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r1").WithArguments("r1").WithLocation(12, 18));
21076
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r").WithArguments("r").WithLocation(8, 16),
21138
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r").WithArguments("r").WithLocation(8, 16),
21218
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r").WithArguments("r").WithLocation(31, 16)
21325
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r").WithArguments("r").WithLocation(8, 16),
22572
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r").WithArguments("r").WithLocation(7, 28),
22578
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r").WithArguments("r").WithLocation(13, 28)
23071
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r").WithArguments("r").WithLocation(32, 24),
23077
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r").WithArguments("r").WithLocation(44, 24),
23083
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r").WithArguments("r").WithLocation(50, 24));
26848
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s1").WithArguments("s1").WithLocation(10, 18),
26851
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(14, 18));
26895
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s1").WithArguments("s1").WithLocation(11, 22),
26898
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(17, 22)
28642
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(10, 14));
28748
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(14, 31)
29186
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r").WithArguments("r").WithLocation(19, 39),
29189
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r2").WithArguments("r2").WithLocation(20, 16));
29224
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r").WithArguments("r").WithLocation(20, 40),
29227
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r2").WithArguments("r2").WithLocation(21, 16));
29365
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(10, 32));
29394
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(12, 48));
29418
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(9, 32));
Semantics\SpanStackSafetyTests.cs (14)
40
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s1 = s2").WithArguments("s1").WithLocation(11, 15));
1892
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(16, 24),
1898
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(17, 16),
1904
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(19, 24),
1910
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(20, 16),
1916
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(22, 19),
1922
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(23, 30),
1935
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(17, 16),
1941
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(20, 16),
1947
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(23, 30));
1980
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(16, 34),
1986
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(17, 26),
2103
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "span").WithArguments("span").WithLocation(36, 16),
2106
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "span").WithArguments("span").WithLocation(43, 16)
Semantics\TopLevelStatementsTests.cs (1)
8726
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(7, 13)