585 references to ERR_EscapeVariable
Microsoft.CodeAnalysis.CSharp (6)
Binder\Binder.ValueChecks.cs (5)
1128
Error(diagnostics, inUnsafeRegion ? ErrorCode.WRN_EscapeVariable : ErrorCode.
ERR_EscapeVariable
, node, localSymbol);
1288
Error(diagnostics, _inUnsafeRegion ? ErrorCode.WRN_EscapeVariable : ErrorCode.
ERR_EscapeVariable
, node, parameter);
4933
Error(diagnostics, inUnsafeRegion ? ErrorCode.WRN_EscapeVariable : ErrorCode.
ERR_EscapeVariable
, node, expr.Syntax);
4942
Error(diagnostics, inUnsafeRegion ? ErrorCode.WRN_EscapeVariable : ErrorCode.
ERR_EscapeVariable
, node, localSymbol);
5752
Error(diagnostics, _inUnsafeRegion ? ErrorCode.WRN_EscapeVariable : ErrorCode.
ERR_EscapeVariable
, initExpr.Syntax, expr.Syntax);
Errors\ErrorFacts.cs (1)
1867
or ErrorCode.
ERR_EscapeVariable
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (164)
FirstClassSpanTests.cs (2)
7258
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(7, 16));
7278
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(7, 16));
RefStructInterfacesTests.cs (37)
2673
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(10, 14));
4133
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "xyzw1").WithArguments("xyzw1").WithLocation(16, 16),
4136
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "xyzw2").WithArguments("xyzw2").WithLocation(23, 16)
4291
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "xyzw1").WithArguments("xyzw1").WithLocation(16, 16),
4294
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "xyzw2").WithArguments("xyzw2").WithLocation(23, 16),
4297
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "xyzw3").WithArguments("xyzw3").WithLocation(29, 16),
4300
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "xyzw4").WithArguments("xyzw4").WithLocation(36, 16)
26239
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(17, 16),
26245
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(20, 16),
26251
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(23, 30)
26288
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "sp").WithArguments("sp").WithLocation(24, 30),
26343
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rInner").WithArguments("rInner").WithLocation(20, 39),
26349
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(23, 27),
26371
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rInner").WithArguments("rInner").WithLocation(20, 39),
26377
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(23, 27),
26419
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r1").WithArguments("scoped T r1").WithLocation(11, 31),
26590
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r1").WithArguments("r1").WithLocation(11, 18)
26631
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(19, 33),
26637
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(20, 26)
26674
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rr0").WithArguments("rr0").WithLocation(19, 52),
26677
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rr1").WithArguments("rr1").WithLocation(23, 56)
26754
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(16, 42),
26757
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(24, 40),
26760
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(32, 41),
26763
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(40, 37),
26766
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(48, 37),
26769
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(56, 32),
26772
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(64, 35)
26838
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(21, 33),
26912
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(20, 32),
26918
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(25, 32),
26924
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(28, 50),
27029
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x1").WithArguments("x1").WithLocation(18, 20),
27032
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x2").WithArguments("x2").WithLocation(29, 20)
27106
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x1").WithArguments("x1").WithLocation(18, 16),
27109
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ [outer] = inner, Field2 = outer }").WithArguments("[outer] = inner").WithLocation(29, 27)
28179
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s1 ??= s2").WithArguments("s1").WithLocation(11, 15)
Semantics\CollectionExpressionTests.cs (2)
19686
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "items").WithArguments("scoped System.ReadOnlySpan<T> items").WithLocation(16, 82));
23950
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(12, 16),
Semantics\ExtensionOperatorsTests.cs (41)
3108
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(41, 16),
3111
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(47, 16)
8672
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c1++").WithArguments("scoped C c1").WithLocation(7, 13)
8793
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "++c1").WithArguments("scoped C c1").WithLocation(7, 13),
8796
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c1").WithArguments("scoped C c1").WithLocation(10, 13)
16455
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(41, 16),
16458
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(47, 16)
16715
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "local").WithArguments("local").WithLocation(22, 18),
16724
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "local").WithArguments("local").WithLocation(25, 26)
16785
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(6, 16),
16794
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(23, 16),
16797
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(29, 16)
24430
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c1").WithArguments("scoped C c1").WithLocation(7, 14),
24436
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c1").WithArguments("scoped C c1").WithLocation(8, 17),
24442
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c1").WithArguments("scoped C c1").WithLocation(9, 18)
24488
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c1").WithArguments("scoped C c1").WithLocation(8, 23),
24491
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c1").WithArguments("scoped C c1").WithLocation(8, 23),
24497
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c1").WithArguments("scoped C c1").WithLocation(12, 27)
24535
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c1").WithArguments("scoped C c1").WithLocation(7, 14),
24541
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c1").WithArguments("scoped C c1").WithLocation(8, 17),
24547
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c1").WithArguments("scoped C c1").WithLocation(9, 18)
24613
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "right").WithArguments("scoped C right").WithLocation(3, 70),
24616
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "right").WithArguments("scoped C right").WithLocation(4, 57)
24686
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c").WithArguments("scoped C c").WithLocation(8, 18),
24695
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c = X(c, c1)").WithArguments("scoped C c").WithLocation(12, 18)
24735
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c").WithArguments("scoped C c").WithLocation(8, 18),
24744
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c = X(c, c1)").WithArguments("scoped C c").WithLocation(12, 18)
24784
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c = X(c, c1)").WithArguments("scoped C c").WithLocation(12, 18)
24920
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackLocal").WithArguments("stackLocal").WithLocation(16, 22)
25028
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackLocal").WithArguments("stackLocal").WithLocation(16, 22),
25046
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackLocal").WithArguments("stackLocal").WithLocation(68, 22)
25114
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c1").WithArguments("scoped C c1").WithLocation(7, 14),
25120
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c1").WithArguments("scoped C c1").WithLocation(12, 13)
25155
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c").WithArguments("scoped C c").WithLocation(8, 16),
25158
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c").WithArguments("scoped C c").WithLocation(13, 16)
25193
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c").WithArguments("scoped C c").WithLocation(8, 16),
25196
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c").WithArguments("scoped C c").WithLocation(13, 16)
25277
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c").WithArguments("scoped C c").WithLocation(6, 16)
25308
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c1").WithArguments("scoped C c1").WithLocation(6, 21)
25359
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c").WithArguments("scoped C c").WithLocation(6, 16)
25391
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c").WithArguments("scoped C c").WithLocation(7, 18)
Semantics\ExtensionTests.cs (3)
39179
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rInner").WithArguments("rInner").WithLocation(13, 30),
39185
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rInner").WithArguments("rInner").WithLocation(14, 9),
39191
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rInner").WithArguments("rInner").WithLocation(15, 9),
Semantics\ExtensionTests2.cs (3)
114
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(6, 16),
117
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(11, 16),
120
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(16, 20));
Semantics\InlineArrayTests.cs (21)
6298
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(21, 16)
6336
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(11, 16)
6591
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(21, 16)
6629
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(11, 16)
9128
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(7, 19),
9134
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(14, 16),
10154
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(24, 16)
10265
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(16, 16)
15310
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(13, 16),
15316
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(20, 16)
15352
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(11, 16),
15358
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(19, 16)
15734
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(13, 16),
15740
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(20, 16)
15777
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(13, 16),
15783
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(20, 16)
15819
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(11, 16),
15825
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(19, 16)
15861
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(11, 16),
15867
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(19, 16)
19341
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(9, 20),
Semantics\ParamsCollectionTests.cs (2)
8905
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "paramsParameter").WithArguments("params System.Span<long> paramsParameter").WithLocation(100, 5)
8946
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "paramsParameter").WithArguments("params System.Span<long> paramsParameter").WithLocation(100, 5)
Semantics\PatternMatchingTests.cs (34)
6742
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(10, 24));
6770
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(10, 24)
6798
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(12, 28));
6825
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(12, 28));
6902
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(16, 42),
6905
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(24, 40),
6908
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(32, 41),
6911
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(40, 37),
6914
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(48, 37),
6917
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(56, 32),
6920
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(64, 35)
6998
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(16, 76),
7001
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(24, 74),
7004
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(32, 92),
7007
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(40, 88),
7010
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(48, 54),
7013
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(56, 49),
7016
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(64, 86)
7080
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(14, 46),
7083
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(20, 44),
7086
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(26, 45),
7089
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(32, 41),
7092
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(38, 41),
7095
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(44, 36),
7098
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(50, 39)
7164
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(14, 80),
7170
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(20, 78),
7176
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(26, 96),
7182
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(32, 92),
7188
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(38, 58),
7194
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(44, 53),
7200
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(50, 56)
7238
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rr0").WithArguments("rr0").WithLocation(19, 52),
7241
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rr1").WithArguments("rr1").WithLocation(23, 56));
Semantics\PatternMatchingTests_ListPatterns.cs (4)
2851
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "list").WithArguments("list").WithLocation(15, 35),
2854
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "element").WithArguments("element").WithLocation(22, 17),
2857
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "slice").WithArguments("slice").WithLocation(23, 17),
2860
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));
Symbols\UserDefinedCompoundAssignmentOperatorsTests.cs (14)
7904
Diagnostic(ErrorCode.
ERR_EscapeVariable
, $"{op}r2").WithArguments("scoped R r2").WithLocation(11, 14));
7937
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r1").WithArguments("r1").WithLocation(12, 16));
15552
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c1").WithArguments("scoped C c1").WithLocation(7, 14),
15558
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c1").WithArguments("scoped C c1").WithLocation(12, 13)
15585
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c").WithArguments("scoped C c").WithLocation(8, 16),
15588
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c").WithArguments("scoped C c").WithLocation(13, 16)
15615
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c").WithArguments("scoped C c").WithLocation(8, 16),
15618
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c").WithArguments("scoped C c").WithLocation(13, 16)
15673
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c").WithArguments("scoped C c").WithLocation(8, 16),
15676
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c").WithArguments("scoped C c").WithLocation(13, 16)
15712
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c").WithArguments("scoped C c").WithLocation(6, 16)
15735
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c1").WithArguments("scoped C c1").WithLocation(6, 21)
15771
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c").WithArguments("scoped C c").WithLocation(6, 16)
15795
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c").WithArguments("scoped C c").WithLocation(7, 18)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (413)
Semantics\IndexAndRangeTests.cs (21)
290
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(9, 16));
1914
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s1").WithArguments("s1").WithLocation(28, 26),
1923
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(34, 40),
1929
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s3").WithArguments("s3").WithLocation(40, 28),
1938
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s4").WithArguments("s4").WithLocation(46, 38),
1944
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s52").WithArguments("s52").WithLocation(52, 44),
1953
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s62").WithArguments("s62").WithLocation(58, 52),
1959
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s71").WithArguments("s71").WithLocation(64, 26),
1968
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s81").WithArguments("s81").WithLocation(70, 36),
1974
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s91").WithArguments("s91").WithLocation(77, 26),
1983
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s101").WithArguments("s101").WithLocation(84, 36)
2097
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r1").WithArguments("r1").WithLocation(29, 16),
2100
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r2").WithArguments("r2").WithLocation(36, 16),
2103
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r3").WithArguments("r3").WithLocation(43, 16),
2106
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r4").WithArguments("r4").WithLocation(50, 16),
2109
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r5").WithArguments("r5").WithLocation(57, 16),
2112
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r6").WithArguments("r6").WithLocation(64, 16),
2115
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r7").WithArguments("r7").WithLocation(71, 16),
2118
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r8").WithArguments("r8").WithLocation(78, 16),
2121
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r9").WithArguments("r9").WithLocation(86, 16),
2124
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r10").WithArguments("r10").WithLocation(94, 16)
Semantics\InterpolationTests.cs (20)
14637
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(17, 19)
14796
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(17, 23));
14811
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(17, 23));
14956
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c").WithArguments("c").WithLocation(16, 16)
14997
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(15, 23)
15004
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "this").WithArguments("out CustomHandler this").WithLocation(10, 100),
15016
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(15, 23)
15052
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "this").WithArguments("out CustomHandler this").WithLocation(5, 97),
15100
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(20, 28));
15174
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "h1").WithArguments("h1").WithLocation(15, 16),
15180
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(21, 28));
15225
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "h3").WithArguments("h3").WithLocation(29, 16));
15339
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r").WithArguments("r").WithLocation(13, 16));
15372
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "this").WithArguments("out CustomHandler this").WithLocation(5, 97),
15408
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "this").WithArguments("out CustomHandler this").WithLocation(5, 97),
15456
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "this").WithArguments("out CustomHandler this").WithLocation(5, 97),
15500
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "h2").WithArguments("h2").WithLocation(18, 16));
15783
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "span").WithArguments("span").WithLocation(10, 19));
15827
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r").WithArguments("r").WithLocation(8, 16));
15908
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "this").WithArguments("out CustomHandler this").WithLocation(5, 97),
Semantics\RawInterpolationTests_Handler.cs (6)
11019
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(17, 21));
11134
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(17, 25));
11276
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c").WithArguments("c").WithLocation(18, 16));
11314
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "this").WithArguments("out CustomHandler this").WithLocation(10, 107),
11320
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(15, 25));
11352
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "this").WithArguments("out CustomHandler this").WithLocation(5, 104));
Semantics\RecordStructTests.cs (3)
8016
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ Field1 = outer, Field2 = inner }").WithArguments("Field2 = inner").WithLocation(12, 30),
8019
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ Field1 = inner, Field2 = outer }").WithArguments("Field1 = inner").WithLocation(23, 32)
8055
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "local").WithArguments("local").WithLocation(9, 26),
Semantics\RefEscapingTests.cs (210)
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),
771
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "local").WithArguments("local").WithLocation(25, 26)
1454
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(13, 13));
1798
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(19, 33),
1814
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(19, 33),
1867
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(21, 33),
1931
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(20, 32),
1937
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(25, 32),
1943
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(28, 50),
1995
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(18, 31),
2142
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rInner").WithArguments("rInner").WithLocation(20, 39),
2148
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(23, 27),
2157
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rInner").WithArguments("rInner").WithLocation(20, 39),
2163
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(23, 27),
2310
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rInner").WithArguments("rInner").WithLocation(20, 46),
2316
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(23, 34),
2326
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rInner").WithArguments("rInner").WithLocation(20, 46),
2332
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(23, 34),
2474
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rInner").WithArguments("rInner").WithLocation(24, 29),
2480
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(27, 29),
2490
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rInner").WithArguments("rInner").WithLocation(24, 29),
2496
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(27, 29),
2573
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rInner").WithArguments("rInner").WithLocation(26, 43),
2579
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(29, 31),
2589
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rInner").WithArguments("rInner").WithLocation(26, 43),
2595
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(29, 31),
2640
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "span").WithArguments("span").WithLocation(14, 18));
2804
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(11, 19),
2810
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(43, 19),
2816
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(45, 15),
2822
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(48, 15),
2828
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(68, 15),
2834
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(71, 15),
2840
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(89, 19),
2846
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(94, 15),
2852
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(111, 19),
2858
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(113, 15),
2864
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(115, 15));
2954
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "span").WithArguments("span").WithLocation(14, 11),
2960
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "span").WithArguments("span").WithLocation(15, 11)
3048
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(15, 29),
3054
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(16, 19),
3060
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(17, 19),
3066
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(20, 25),
3072
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(21, 15),
3078
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(22, 15),
3084
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(38, 29),
3090
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(40, 30),
3096
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(43, 25),
3102
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(45, 26));
3153
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(13, 19),
3159
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(15, 15),
3165
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(17, 15),
3168
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(31, 20)
3514
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ Field1 = outer, Field2 = inner }").WithArguments("Field2 = inner").WithLocation(16, 29),
3517
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ Field1 = inner, Field2 = outer }").WithArguments("Field1 = inner").WithLocation(27, 31));
3582
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x1").WithArguments("x1").WithLocation(18, 20),
3585
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x2").WithArguments("x2").WithLocation(29, 20)
3657
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ [inner] = outer, Field2 = outer }").WithArguments("[inner] = outer").WithLocation(16, 25),
3660
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ [outer] = inner, Field2 = outer }").WithArguments("[outer] = inner").WithLocation(25, 25));
3740
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x1").WithArguments("x1").WithLocation(18, 16),
3743
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ [outer] = inner, Field2 = outer }").WithArguments("[outer] = inner").WithLocation(29, 27));
3788
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ [stackSpan] = 0, [heapSpan] = 1 }").WithArguments("[stackSpan] = 0").WithLocation(13, 26),
3791
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ [stackSpan] = 0, [heapSpan] = 1 }").WithArguments("[stackSpan] = 0").WithLocation(27, 26));
3890
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ [0] = stackSpan }").WithArguments("[0] = stackSpan").WithLocation(15, 26),
3893
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ [0] = stackT }").WithArguments("[0] = stackT").WithLocation(44, 27)
4001
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(14, 24),
4007
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(15, 24),
4010
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ [0] = stackSpan }").WithArguments("[0] = stackSpan").WithLocation(16, 34),
4013
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ [0] = stackSpan }").WithArguments("[0] = stackSpan").WithLocation(32, 35),
4016
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ [0] = stackSpan }").WithArguments("[0] = stackSpan").WithLocation(34, 34),
4022
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(50, 24),
4028
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(51, 24)
4078
Diagnostic(ErrorCode.
ERR_EscapeVariable
, @"{ [x] = """" }").WithArguments(@"[x] = """"").WithLocation(29, 23),
4081
Diagnostic(ErrorCode.
ERR_EscapeVariable
, @"{ [y] = """" }").WithArguments(@"[y] = """"").WithLocation(30, 23),
4122
Diagnostic(ErrorCode.
ERR_EscapeVariable
, @"{ [in x] = """" }").WithArguments(@"[in x] = """"").WithLocation(9, 40),
4125
Diagnostic(ErrorCode.
ERR_EscapeVariable
, @"{ [in x] = """" }").WithArguments(@"[in x] = """"").WithLocation(11, 50)
4188
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ Prop = stackSpan }").WithArguments("Prop = stackSpan").WithLocation(13, 24),
4191
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ Prop = stackSpan }").WithArguments("Prop = stackSpan").WithLocation(43, 24)
4342
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ Field2 = {[inner] = outer} }").WithArguments("Field2 = {[inner] = outer}").WithLocation(15, 25),
4345
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(25, 16),
4348
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ Field2 = {[outer] = inner} }").WithArguments("Field2 = {[outer] = inner}").WithLocation(33, 25),
4432
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rInner").WithArguments("rInner").WithLocation(20, 54),
4438
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(23, 42),
4448
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rInner").WithArguments("rInner").WithLocation(20, 54),
4454
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(23, 42),
4632
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "sInner").WithArguments("sInner").WithLocation(27, 44),
4635
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "sInner").WithArguments("sInner").WithLocation(30, 35),
4638
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "sInner").WithArguments("sInner").WithLocation(33, 60),
4644
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "sInner").WithArguments("sInner").WithLocation(36, 47),
4650
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "ternarySame1").WithArguments("ternarySame1").WithLocation(39, 47),
4793
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "local").WithArguments("local").WithLocation(19, 26),
4848
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "local").WithArguments("local").WithLocation(16, 30),
4854
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "sp1").WithArguments("sp1").WithLocation(22, 20)
4966
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "value1").WithArguments("value1").WithLocation(14, 33),
5025
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackAllocated").WithArguments("stackAllocated").WithLocation(17, 43),
5349
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "local").WithArguments("local").WithLocation(13, 56),
5355
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "local").WithArguments("local").WithLocation(14, 56),
5438
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "(global, global) = local").WithArguments("(global, global) = local").WithLocation(10, 9),
5444
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "(global, local) = local").WithArguments("(global, local) = local").WithLocation(11, 9),
5450
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "(global, _) = local").WithArguments("(global, _) = local").WithLocation(13, 9),
5482
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "(M(), M()) = local").WithArguments("(M(), M()) = local").WithLocation(9, 9),
5573
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "(global, global) = local").WithArguments("(global, global) = local").WithLocation(10, 9),
5589
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "(global, global) = local").WithArguments("(global, global) = local").WithLocation(10, 9),
5625
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "(x1, y1) = local").WithArguments("(x1, y1) = local").WithLocation(10, 9),
5660
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "(x1, y1) = local").WithArguments("(x1, y1) = local").WithLocation(10, 9),
6046
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "local1").WithArguments("local1").WithLocation(10, 18),
6049
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "local2").WithArguments("local2").WithLocation(11, 18));
6085
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(7, 16),
6088
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(12, 16),
6091
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(17, 20));
6199
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(6, 16),
6202
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(11, 16),
6205
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(16, 20));
6276
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(12, 16),
6279
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(17, 20));
6308
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(7, 20));
6334
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(7, 20));
6411
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(7, 20));
6464
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(8, 20));
6499
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(7, 20),
6502
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x2").WithArguments("x2").WithLocation(13, 20));
6537
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "local").WithArguments("local").WithLocation(11, 22)
6576
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "local1").WithArguments("local1").WithLocation(11, 22),
6579
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "local2").WithArguments("local2").WithLocation(12, 22));
6613
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "local1").WithArguments("local1").WithLocation(10, 18),
6616
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "local2").WithArguments("local2").WithLocation(11, 18));
6649
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "local2").WithArguments("local2").WithLocation(11, 18));
6864
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(17, 22),
6867
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(36, 22),
6870
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(54, 22),
6873
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(72, 22));
7283
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(8, 24)
7683
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "xyzw1").WithArguments("xyzw1").WithLocation(16, 16),
7686
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "xyzw2").WithArguments("xyzw2").WithLocation(23, 16)
7829
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "xyzw1").WithArguments("xyzw1").WithLocation(16, 16),
7832
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "xyzw2").WithArguments("xyzw2").WithLocation(23, 16)
8120
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "xyzw1").WithArguments("xyzw1").WithLocation(14, 25),
8123
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "xyzw2").WithArguments("xyzw2").WithLocation(22, 17),
8126
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "xyzw3").WithArguments("xyzw3").WithLocation(29, 13)
8301
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "xyzw2").WithArguments("xyzw2").WithLocation(18, 31),
8307
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "xyzw3").WithArguments("xyzw3").WithLocation(26, 23),
8313
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "xyzw4").WithArguments("xyzw4").WithLocation(33, 19)
8492
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "xyz2").WithArguments("xyz2").WithLocation(21, 35),
8498
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "xyz3").WithArguments("xyz3").WithLocation(29, 27)
8559
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "xyzw1").WithArguments("xyzw1").WithLocation(16, 16),
8562
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "xyzw2").WithArguments("xyzw2").WithLocation(23, 16),
8565
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "xyzw3").WithArguments("xyzw3").WithLocation(29, 16),
8568
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "xyzw4").WithArguments("xyzw4").WithLocation(36, 16)
8616
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rs4").WithArguments("rs4").WithLocation(19, 16),
8619
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rs4").WithArguments("rs4").WithLocation(25, 16),
8669
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rs4").WithArguments("rs4").WithLocation(16, 16),
8672
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rs4").WithArguments("rs4").WithLocation(22, 16),
8678
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rs3").WithArguments("scoped RS rs3").WithLocation(28, 12));
8742
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rs3").WithArguments("rs3").WithLocation(9, 15)
8825
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rs3").WithArguments("rs3").WithLocation(23, 16),
8828
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rs5").WithArguments("rs5").WithLocation(29, 16));
8869
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rs4").WithArguments("rs4").WithLocation(19, 16));
8959
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rs4").WithArguments("rs4").WithLocation(19, 16),
8962
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rs6").WithArguments("rs6").WithLocation(27, 16),
8965
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rs4").WithArguments("rs4").WithLocation(36, 16),
8968
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rs6").WithArguments("rs6").WithLocation(45, 16)
9108
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "z").WithArguments("z").WithLocation(20, 24));
9150
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(25, 20));
9329
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(41, 16),
9332
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(47, 16));
9428
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(41, 16),
9431
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(47, 16));
9464
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s1").WithArguments("s1").WithLocation(7, 20));
9601
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(35, 16),
9604
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(41, 16),
9607
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(47, 16));
9898
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(41, 16),
9901
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(47, 16));
10069
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c1").WithArguments("scoped C c1").WithLocation(7, 14),
10075
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c1").WithArguments("scoped C c1").WithLocation(8, 17),
10081
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c1").WithArguments("scoped C c1").WithLocation(9, 18));
10115
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c1").WithArguments("scoped C c1").WithLocation(8, 23),
10118
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c1").WithArguments("scoped C c1").WithLocation(8, 23),
10124
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c1").WithArguments("scoped C c1").WithLocation(12, 27)
10151
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c1").WithArguments("scoped C c1").WithLocation(7, 14),
10157
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c1").WithArguments("scoped C c1").WithLocation(8, 17),
10163
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c1").WithArguments("scoped C c1").WithLocation(9, 18));
10206
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "right").WithArguments("scoped C right").WithLocation(3, 66),
10209
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "right").WithArguments("scoped C right").WithLocation(4, 57));
10257
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c").WithArguments("scoped C c").WithLocation(8, 18),
10266
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c = X(c, c1)").WithArguments("scoped C c").WithLocation(12, 18)
10295
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c").WithArguments("scoped C c").WithLocation(8, 18),
10304
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c = X(c, c1)").WithArguments("scoped C c").WithLocation(12, 18)
10333
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c = X(c, c1)").WithArguments("scoped C c").WithLocation(12, 18)
10431
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackLocal").WithArguments("stackLocal").WithLocation(16, 22)
10518
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackLocal").WithArguments("stackLocal").WithLocation(16, 22),
10536
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackLocal").WithArguments("stackLocal").WithLocation(68, 22)
10633
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(41, 16),
10636
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(47, 16));
10748
Diagnostic(ErrorCode.
ERR_EscapeVariable
, $"r2{op}").WithArguments("scoped R r2").WithLocation(11, 14));
10781
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r1").WithArguments("r1").WithLocation(12, 16));
10831
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(6, 16),
10840
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(23, 16),
10843
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(29, 16));
Semantics\RefFieldTests.cs (136)
2572
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r2.F").WithArguments("r2").WithLocation(13, 20));
2578
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r2.F").WithArguments("r2").WithLocation(13, 20));
4146
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(11, 67),
4152
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("scoped R x").WithLocation(15, 71),
4158
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("scoped R x").WithLocation(16, 71));
4195
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r").WithArguments("r").WithLocation(15, 19),
4201
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r").WithArguments("r").WithLocation(21, 19));
4305
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(20, 23),
4311
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(21, 23),
4317
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(22, 23),
4323
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(24, 16),
4329
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(25, 16),
4335
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(26, 16));
4528
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(16, 33),
4534
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(17, 26));
4573
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(14, 33),
4579
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(15, 16));
4665
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y1").WithArguments("y1").WithLocation(12, 24),
4671
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y1").WithArguments("y1").WithLocation(13, 16));
4711
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "local").WithArguments("local").WithLocation(16, 20));
5450
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ [x] = 1 }").WithArguments("[x] = 1").WithLocation(13, 19),
5456
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(14, 11));
9287
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "(x1, y1) = s").WithArguments("(x1, y1) = s").WithLocation(9, 9),
9293
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(10, 9),
9331
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "(x1, y1) = s").WithArguments("(x1, y1) = s").WithLocation(9, 9),
9337
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(10, 9),
9377
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "(x, (y, z2)) = s").WithArguments("(x, (y, z2)) = s").WithLocation(20, 9),
9383
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "(z2, (y, z1)) = s").WithArguments("(z2, (y, z1)) = s").WithLocation(21, 9),
9541
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y1").WithArguments("y1").WithLocation(16, 16),
9544
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y2").WithArguments("y2").WithLocation(23, 16));
9587
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y1").WithArguments("y1").WithLocation(8, 16),
9590
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y2").WithArguments("y2").WithLocation(14, 16));
9635
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y1").WithArguments("y1").WithLocation(21, 20));
9687
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "(x1, y1) = span").WithArguments("(x1, y1) = span").WithLocation(11, 9),
9693
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y2").WithArguments("y2").WithLocation(18, 16),
9696
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y3").WithArguments("y3").WithLocation(24, 16),
9699
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y4").WithArguments("y4").WithLocation(30, 16));
10200
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s1").WithArguments("s1").WithLocation(7, 20));
10241
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s1").WithArguments("s1").WithLocation(7, 20));
10641
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r2").WithArguments("r2").WithLocation(13, 18));
10974
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(7, 25));
14151
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s1").WithArguments("s1").WithLocation(10, 18),
14154
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(14, 18));
14193
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s1").WithArguments("s1").WithLocation(10, 22),
14196
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(15, 18)
14234
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s1").WithArguments("s1").WithLocation(10, 18),
14237
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(13, 18)
14295
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s1").WithArguments("s1").WithLocation(10, 18),
14298
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(14, 18),
14301
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "(s11, d) = new S(ref i1)").WithArguments("(s11, d) = new S(ref i1)").WithLocation(24, 13),
14307
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s21").WithArguments("s21").WithLocation(31, 18),
14310
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "(s31, f) = s0").WithArguments("(s31, f) = s0").WithLocation(36, 13),
14373
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s1").WithArguments("s1").WithLocation(10, 18),
14376
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(14, 18),
14379
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s21").WithArguments("s21").WithLocation(23, 18),
14382
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s4").WithArguments("s4").WithLocation(29, 18),
14385
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s5").WithArguments("s5").WithLocation(34, 18),
14388
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s7").WithArguments("s7").WithLocation(39, 18)
15417
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r6").WithArguments("r6").WithLocation(28, 22));
15530
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(15, 18)
15631
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s1").WithArguments("s1").WithLocation(10, 22)
15686
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s1").WithArguments("s1").WithLocation(10, 22));
15850
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r").WithArguments("scoped R r").WithLocation(4, 39),
15853
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "(R)r").WithArguments("scoped R r").WithLocation(7, 39));
16569
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r").WithArguments("scoped R r").WithLocation(13, 35)
16609
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r").WithArguments("scoped R r").WithLocation(14, 28),
16902
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r8").WithArguments("scoped R r8").WithLocation(18, 36),
16908
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r9").WithArguments("scoped R r9").WithLocation(19, 28)
17909
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("scoped R y").WithLocation(4, 53),
17912
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("scoped R y").WithLocation(5, 49));
18009
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y1").WithArguments("scoped R y1").WithLocation(9, 15));
18245
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x1").WithArguments("x1").WithLocation(8, 33),
18366
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r1").WithArguments("scoped R<int> r1").WithLocation(5, 43));
18426
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "l1").WithArguments("l1").WithLocation(12, 16));
18505
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "l0").WithArguments("l0").WithLocation(7, 16),
18508
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "l1").WithArguments("l1").WithLocation(12, 16),
18511
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "l2").WithArguments("l2").WithLocation(17, 16),
18514
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "l3").WithArguments("l3").WithLocation(22, 16));
18593
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "l1").WithArguments("l1").WithLocation(12, 16));
18664
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r1").WithArguments("scoped R<int> r1").WithLocation(11, 36));
18702
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r1").WithArguments("scoped R<int> r1").WithLocation(11, 36),
18870
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ I2 = ref rs.I1 }").WithArguments("I2 = ref rs.I1").WithLocation(16, 23));
19001
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r.F").WithArguments("scoped R<T> r").WithLocation(12, 55));
19031
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r1.F").WithArguments("r1").WithLocation(11, 20),
19066
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r1.F").WithArguments("r1").WithLocation(11, 20),
19069
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r2.F").WithArguments("r2").WithLocation(16, 20));
19135
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r1.F1").WithArguments("scoped R1<T> r1").WithLocation(14, 44));
19647
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r1").WithArguments("r1").WithLocation(16, 16),
19650
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r2").WithArguments("r2").WithLocation(23, 16),
19656
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r4").WithArguments("r4").WithLocation(39, 16),
19659
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r5").WithArguments("r5").WithLocation(46, 16),
19662
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r6").WithArguments("r6").WithLocation(53, 16),
19668
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r8").WithArguments("r8").WithLocation(69, 16));
19742
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r1").WithArguments("r1").WithLocation(15, 16),
19745
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r2").WithArguments("r2").WithLocation(21, 16),
19751
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r4").WithArguments("r4").WithLocation(35, 16),
19754
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r5").WithArguments("r5").WithLocation(41, 16),
19757
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r6").WithArguments("r6").WithLocation(47, 16),
19763
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r8").WithArguments("r8").WithLocation(61, 16));
20080
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r1").WithArguments("r1").WithLocation(13, 9),
20109
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r1").WithArguments("r1").WithLocation(13, 9),
20144
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(12, 17));
20237
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r1").WithArguments("r1").WithLocation(12, 18));
20372
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ refField = ref this.@field }").WithArguments("refField = ref this.@field").WithLocation(18, 22),
20375
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ refField = ref this.field }").WithArguments("refField = ref this.field").WithLocation(23, 21),
20378
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ refField = ref s.field }").WithArguments("refField = ref s.field").WithLocation(28, 42));
21686
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r").WithArguments("r").WithLocation(8, 16),
21689
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ field = ref x }").WithArguments("field = ref x").WithLocation(20, 23),
21692
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ field = ref x }").WithArguments("field = ref x").WithLocation(29, 23),
21695
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ field = ref x }").WithArguments("field = ref x").WithLocation(36, 19));
21747
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r").WithArguments("r").WithLocation(8, 16),
21821
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ item = { field = ref x } }").WithArguments("item = { field = ref x }").WithLocation(18, 31),
21824
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ item = { field = ref x } }").WithArguments("item = { field = ref x }").WithLocation(25, 27),
21827
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r").WithArguments("r").WithLocation(31, 16));
21933
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r").WithArguments("r").WithLocation(8, 16),
21936
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ field = ref x }").WithArguments("field = ref x").WithLocation(20, 30),
21939
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ field = ref x }").WithArguments("field = ref x").WithLocation(29, 30),
21942
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ field = ref x }").WithArguments("field = ref x").WithLocation(36, 26));
23719
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r").WithArguments("r").WithLocation(7, 28),
23725
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r").WithArguments("r").WithLocation(13, 28)
24218
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r").WithArguments("r").WithLocation(32, 24),
24224
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r").WithArguments("r").WithLocation(44, 24),
24230
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r").WithArguments("r").WithLocation(50, 24));
28220
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s1").WithArguments("s1").WithLocation(10, 18),
28223
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(14, 18));
28267
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s1").WithArguments("s1").WithLocation(11, 22),
28270
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(17, 22)
29997
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(10, 14));
30103
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(14, 31)
30553
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r").WithArguments("r").WithLocation(19, 39),
30556
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r2").WithArguments("r2").WithLocation(20, 16));
30591
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r").WithArguments("r").WithLocation(20, 40),
30594
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r2").WithArguments("r2").WithLocation(21, 16));
30732
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(10, 32));
30761
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(12, 48));
30785
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));
2384
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(16, 24),
2390
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(17, 16),
2396
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(19, 24),
2402
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(20, 16),
2408
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(22, 19),
2414
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(23, 30),
2427
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(17, 16),
2433
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(20, 16),
2439
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(23, 30));
2472
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(16, 34),
2478
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(17, 26),
2595
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "span").WithArguments("span").WithLocation(36, 16),
2598
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "span").WithArguments("span").WithLocation(43, 16)
Semantics\StructConstructorTests.cs (2)
3749
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ Field = stackalloc byte[512] }").WithArguments("Field = stackalloc byte[512]").WithLocation(8, 43),
3752
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ Field = stackalloc byte[512] }").WithArguments("Field = stackalloc byte[512]").WithLocation(9, 55));
Semantics\TopLevelStatementsTests.cs (1)
8739
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(7, 13)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Symbols\PartialPropertiesTests.cs (2)
3298
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rs").WithArguments("scoped RS rs").WithLocation(6, 51),
3304
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rs").WithArguments("rs").WithLocation(18, 21));