639 references to ERR_EscapeVariable
Microsoft.CodeAnalysis.CSharp (6)
Binder\Binder.ValueChecks.cs (5)
1398
Error(diagnostics, inUnsafeRegion ? ErrorCode.WRN_EscapeVariable : ErrorCode.
ERR_EscapeVariable
, node, localSymbol);
1558
Error(diagnostics, _inUnsafeRegion ? ErrorCode.WRN_EscapeVariable : ErrorCode.
ERR_EscapeVariable
, node, parameter);
5067
Error(diagnostics, inUnsafeRegion ? ErrorCode.WRN_EscapeVariable : ErrorCode.
ERR_EscapeVariable
, node, expr.Syntax);
5076
Error(diagnostics, inUnsafeRegion ? ErrorCode.WRN_EscapeVariable : ErrorCode.
ERR_EscapeVariable
, node, localSymbol);
5809
Error(diagnostics, _inUnsafeRegion ? ErrorCode.WRN_EscapeVariable : ErrorCode.
ERR_EscapeVariable
, initExpr.Syntax, expr.Syntax);
Errors\ErrorFacts.cs (1)
1869
or ErrorCode.
ERR_EscapeVariable
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (206)
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 (43)
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)
26635
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(17, 16),
26641
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(20, 16),
26647
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(23, 30)
26684
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "sp").WithArguments("sp").WithLocation(24, 30),
26739
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rInner").WithArguments("rInner").WithLocation(20, 39),
26745
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(23, 27),
26767
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rInner").WithArguments("rInner").WithLocation(20, 39),
26773
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(23, 27),
26815
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r1").WithArguments("scoped T r1").WithLocation(11, 31),
26986
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r1").WithArguments("r1").WithLocation(11, 18)
27027
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(19, 33),
27033
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(20, 26)
27070
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rr0").WithArguments("rr0").WithLocation(19, 52),
27073
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rr1").WithArguments("rr1").WithLocation(23, 56)
27150
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(16, 42),
27153
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(24, 40),
27156
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(32, 41),
27159
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(40, 37),
27162
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(48, 37),
27165
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(56, 32),
27168
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(64, 35)
27234
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(21, 33),
27308
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(20, 32),
27314
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(25, 32),
27320
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(28, 50),
27425
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x1").WithArguments("x1").WithLocation(18, 20),
27428
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x2").WithArguments("x2").WithLocation(29, 20)
27502
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x1").WithArguments("x1").WithLocation(18, 16),
27505
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ [outer] = inner, Field2 = outer }").WithArguments("[outer] = inner").WithLocation(29, 27)
28575
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s1 ??= s2").WithArguments("s1").WithLocation(11, 15)
28646
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c1 ??= c2").WithArguments("scoped T c2").WithLocation(5, 18),
28652
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c2 ??= c2").WithArguments("scoped T c2").WithLocation(13, 18),
28658
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c2 ??= c1").WithArguments("scoped T c2").WithLocation(17, 18),
28696
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c3").WithArguments("c3").WithLocation(6, 16),
28699
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c3").WithArguments("c3").WithLocation(16, 16),
28702
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c3").WithArguments("c3").WithLocation(21, 16));
Semantics\CollectionExpressionTests.cs (11)
21521
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "items").WithArguments("scoped System.ReadOnlySpan<T> items").WithLocation(16, 82));
25930
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(12, 16),
26438
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(19, 17));
26536
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(16, 26));
26570
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "items").WithArguments("items").WithLocation(12, 26),
26573
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "items").WithArguments("items").WithLocation(15, 26));
26778
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x1").WithArguments("x1").WithLocation(5, 74),
47006
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "spans").WithArguments("spans").WithLocation(9, 16));
47032
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "spans").WithArguments("spans").WithLocation(11, 16));
47056
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "spans").WithArguments("spans").WithLocation(9, 16));
47129
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "spans").WithArguments("spans").WithLocation(9, 16));
Semantics\CollectionExpressionTests_WithElement_Constructor.cs (2)
2969
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(17, 16),
2972
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(24, 16));
Semantics\CollectionExpressionTests_WithElement_Extra.cs (4)
5750
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "a").WithArguments("a").WithLocation(9, 17),
5756
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "a").WithArguments("a").WithLocation(10, 19));
9145
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(19, 16),
9148
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(26, 16));
Semantics\ExtensionOperatorsTests.cs (41)
3119
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(41, 16),
3122
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(47, 16)
8752
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c1++").WithArguments("scoped C c1").WithLocation(7, 13)
8873
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "++c1").WithArguments("scoped C c1").WithLocation(7, 13),
8876
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c1").WithArguments("scoped C c1").WithLocation(10, 13)
16593
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(41, 16),
16596
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(47, 16)
16853
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "local").WithArguments("local").WithLocation(22, 18),
16862
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "local").WithArguments("local").WithLocation(25, 26)
16923
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(6, 16),
16932
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(23, 16),
16935
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(29, 16)
24687
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c1").WithArguments("scoped C c1").WithLocation(7, 14),
24693
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c1").WithArguments("scoped C c1").WithLocation(8, 17),
24699
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c1").WithArguments("scoped C c1").WithLocation(9, 18)
24745
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c1").WithArguments("scoped C c1").WithLocation(8, 23),
24748
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c1").WithArguments("scoped C c1").WithLocation(8, 23),
24760
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c1").WithArguments("scoped C c1").WithLocation(12, 27),
24763
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c1").WithArguments("scoped C c1").WithLocation(12, 27)
24801
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c1").WithArguments("scoped C c1").WithLocation(7, 14),
24807
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c1").WithArguments("scoped C c1").WithLocation(8, 17),
24813
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c1").WithArguments("scoped C c1").WithLocation(9, 18)
24879
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "right").WithArguments("scoped C right").WithLocation(3, 70),
24882
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "right").WithArguments("scoped C right").WithLocation(4, 57)
24952
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c").WithArguments("scoped C c").WithLocation(8, 18),
24964
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c").WithArguments("scoped C c").WithLocation(12, 24)
25004
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c").WithArguments("scoped C c").WithLocation(8, 18),
25016
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c").WithArguments("scoped C c").WithLocation(12, 24)
25185
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackLocal").WithArguments("stackLocal").WithLocation(16, 22)
25293
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackLocal").WithArguments("stackLocal").WithLocation(16, 22),
25311
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackLocal").WithArguments("stackLocal").WithLocation(68, 22)
25379
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c1").WithArguments("scoped C c1").WithLocation(7, 14),
25385
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c1").WithArguments("scoped C c1").WithLocation(12, 13)
25420
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c").WithArguments("scoped C c").WithLocation(8, 16),
25423
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c").WithArguments("scoped C c").WithLocation(13, 16)
25458
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c").WithArguments("scoped C c").WithLocation(8, 16),
25461
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c").WithArguments("scoped C c").WithLocation(13, 16)
25542
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c").WithArguments("scoped C c").WithLocation(6, 16)
25573
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c1").WithArguments("scoped C c1").WithLocation(6, 21)
25624
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c").WithArguments("scoped C c").WithLocation(6, 16)
25656
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c").WithArguments("scoped C c").WithLocation(7, 18)
Semantics\ExtensionTests.cs (24)
23496
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ i = ref i }").WithArguments("i = ref i").WithLocation(6, 27),
23607
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ i = ref i }").WithArguments("i = ref i").WithLocation(6, 27)
23658
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "new MyStruct() { i = ref i }").WithArguments("new MyStruct() { i = ref i }").WithLocation(6, 12),
23715
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ i = ref h.i }").WithArguments("i = ref h.i").WithLocation(25, 26)
45202
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rInner").WithArguments("rInner").WithLocation(13, 30),
45208
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rInner").WithArguments("rInner").WithLocation(14, 9),
45214
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rInner").WithArguments("rInner").WithLocation(15, 9),
45915
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(24, 13),
45924
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(26, 28),
45930
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(28, 33),
45936
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(29, 42),
45939
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(30, 13),
45948
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(31, 43)
45996
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(23, 22),
45999
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(25, 29),
46002
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(28, 33),
46005
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(29, 13),
46011
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(30, 44),
46017
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(31, 43)
46085
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(29, 32),
46094
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(31, 28)
46150
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(24, 28),
46159
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(29, 34),
46168
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(31, 28)
Semantics\ExtensionTests2.cs (3)
211
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(6, 16),
214
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(11, 16),
217
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)
9134
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(7, 19),
9140
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(14, 16),
10160
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(24, 16)
10271
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(16, 16)
15316
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(13, 16),
15322
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(20, 16)
15358
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(11, 16),
15364
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(19, 16)
15740
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(13, 16),
15746
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(20, 16)
15783
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(13, 16),
15789
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(20, 16)
15825
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(11, 16),
15831
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(19, 16)
15867
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(11, 16),
15873
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(19, 16)
19347
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(9, 20),
Semantics\ParamsCollectionTests.cs (2)
8889
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "paramsParameter").WithArguments("params System.Span<long> paramsParameter").WithLocation(100, 5)
8930
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));
6828
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(12, 28));
6905
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(16, 42),
6908
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(24, 40),
6911
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(32, 41),
6914
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(40, 37),
6917
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(48, 37),
6920
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(56, 32),
6923
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(64, 35)
7002
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(17, 76),
7005
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(25, 74),
7008
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(33, 92),
7011
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(41, 88),
7014
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(49, 54),
7017
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(57, 49),
7020
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(65, 86)
7084
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(14, 46),
7087
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(20, 44),
7090
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(26, 45),
7093
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(32, 41),
7096
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(38, 41),
7099
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(44, 36),
7102
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(50, 39)
7168
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(14, 80),
7174
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(20, 78),
7180
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(26, 96),
7186
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(32, 92),
7192
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(38, 58),
7198
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(44, 53),
7204
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(50, 56)
7242
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rr0").WithArguments("rr0").WithLocation(19, 52),
7245
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rr1").WithArguments("rr1").WithLocation(23, 56));
Semantics\PatternMatchingTests_ListPatterns.cs (4)
2883
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "list").WithArguments("list").WithLocation(15, 35),
2886
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "element").WithArguments("element").WithLocation(22, 17),
2889
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "slice").WithArguments("slice").WithLocation(23, 17),
2892
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 (425)
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 (22)
14949
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(17, 19)
15111
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(17, 23));
15268
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c").WithArguments("c").WithLocation(16, 16)
15312
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(15, 23)
15319
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "this").WithArguments("out CustomHandler this").WithLocation(10, 100),
15364
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "this").WithArguments("out CustomHandler this").WithLocation(5, 97),
15415
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(20, 28));
15489
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "h1").WithArguments("h1").WithLocation(15, 16),
15495
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(21, 28));
15540
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "h3").WithArguments("h3").WithLocation(29, 16));
15595
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "h3").WithArguments("h3").WithLocation(23, 16),
15598
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "h4").WithArguments("h4").WithLocation(28, 16));
15673
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r").WithArguments("r").WithLocation(13, 16));
15706
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "this").WithArguments("out CustomHandler this").WithLocation(5, 97),
15742
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "this").WithArguments("out CustomHandler this").WithLocation(5, 97),
15787
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "this").WithArguments("out CustomHandler this").WithLocation(5, 97),
15834
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "h2").WithArguments("h2").WithLocation(18, 16));
15874
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "h2").WithArguments("h2").WithLocation(19, 16));
16178
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "span").WithArguments("span").WithLocation(10, 19),
16181
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "span").WithArguments("span").WithLocation(10, 19));
16225
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r").WithArguments("r").WithLocation(8, 16));
16306
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "this").WithArguments("out CustomHandler this").WithLocation(5, 97),
Semantics\RawInterpolationTests_Handler.cs (6)
11023
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(17, 21));
11141
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(17, 25));
11283
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c").WithArguments("c").WithLocation(18, 16));
11321
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "this").WithArguments("out CustomHandler this").WithLocation(10, 107),
11330
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(15, 25));
11362
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 (221)
146
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(10, 21));
241
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "local").WithArguments("local").WithLocation(23, 42),
290
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "sp").WithArguments("sp").WithLocation(24, 30),
357
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "sp").WithArguments("sp").WithLocation(23, 34),
423
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "spNr").WithArguments("spNr").WithLocation(33, 19),
426
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "ternary").WithArguments("ternary").WithLocation(39, 19)
475
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "sp").WithArguments("sp").WithLocation(31, 30),
571
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(18, 29),
617
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(18, 35),
678
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "local").WithArguments("local").WithLocation(32, 50),
764
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "local").WithArguments("local").WithLocation(22, 18),
773
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "local").WithArguments("local").WithLocation(25, 26)
1456
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(13, 13));
1800
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(19, 33),
1816
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(19, 33),
1869
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(21, 33),
1933
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(20, 32),
1939
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(25, 32),
1945
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(28, 50),
1997
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(18, 31),
2144
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rInner").WithArguments("rInner").WithLocation(20, 39),
2150
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(23, 27),
2159
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rInner").WithArguments("rInner").WithLocation(20, 39),
2165
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(23, 27),
2312
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rInner").WithArguments("rInner").WithLocation(20, 46),
2318
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(23, 34),
2328
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rInner").WithArguments("rInner").WithLocation(20, 46),
2334
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(23, 34),
2476
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rInner").WithArguments("rInner").WithLocation(24, 29),
2482
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(27, 29),
2492
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rInner").WithArguments("rInner").WithLocation(24, 29),
2498
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(27, 29),
2575
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rInner").WithArguments("rInner").WithLocation(26, 43),
2581
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(29, 31),
2591
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rInner").WithArguments("rInner").WithLocation(26, 43),
2597
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(29, 31),
2642
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "span").WithArguments("span").WithLocation(14, 18));
2806
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(11, 19),
2812
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(43, 19),
2818
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(45, 15),
2824
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(48, 15),
2830
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(68, 15),
2836
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(71, 15),
2842
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(89, 19),
2848
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(94, 15),
2854
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(111, 19),
2860
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(113, 15),
2866
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(115, 15));
2956
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "span").WithArguments("span").WithLocation(14, 11),
2962
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "span").WithArguments("span").WithLocation(15, 11)
3050
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(15, 29),
3056
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(16, 19),
3062
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(17, 19),
3068
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(20, 25),
3074
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(21, 15),
3080
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(22, 15),
3086
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(38, 29),
3092
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(40, 30),
3098
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(43, 25),
3104
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(45, 26));
3155
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(13, 19),
3161
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(15, 15),
3167
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(17, 15),
3170
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(31, 20)
3516
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ Field1 = outer, Field2 = inner }").WithArguments("Field2 = inner").WithLocation(16, 29),
3519
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ Field1 = inner, Field2 = outer }").WithArguments("Field1 = inner").WithLocation(27, 31));
3584
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x1").WithArguments("x1").WithLocation(18, 20),
3587
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x2").WithArguments("x2").WithLocation(29, 20)
3659
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ [inner] = outer, Field2 = outer }").WithArguments("[inner] = outer").WithLocation(16, 25),
3662
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ [outer] = inner, Field2 = outer }").WithArguments("[outer] = inner").WithLocation(25, 25));
3742
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x1").WithArguments("x1").WithLocation(18, 16),
3745
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ [outer] = inner, Field2 = outer }").WithArguments("[outer] = inner").WithLocation(29, 27));
3790
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ [stackSpan] = 0, [heapSpan] = 1 }").WithArguments("[stackSpan] = 0").WithLocation(13, 26),
3793
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ [stackSpan] = 0, [heapSpan] = 1 }").WithArguments("[stackSpan] = 0").WithLocation(27, 26));
3892
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ [0] = stackSpan }").WithArguments("[0] = stackSpan").WithLocation(15, 26),
3895
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ [0] = stackT }").WithArguments("[0] = stackT").WithLocation(44, 27)
4003
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(14, 24),
4009
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(15, 24),
4012
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ [0] = stackSpan }").WithArguments("[0] = stackSpan").WithLocation(16, 34),
4015
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ [0] = stackSpan }").WithArguments("[0] = stackSpan").WithLocation(32, 35),
4018
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ [0] = stackSpan }").WithArguments("[0] = stackSpan").WithLocation(34, 34),
4024
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(50, 24),
4030
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(51, 24)
4080
Diagnostic(ErrorCode.
ERR_EscapeVariable
, @"{ [x] = """" }").WithArguments(@"[x] = """"").WithLocation(29, 23),
4083
Diagnostic(ErrorCode.
ERR_EscapeVariable
, @"{ [y] = """" }").WithArguments(@"[y] = """"").WithLocation(30, 23),
4124
Diagnostic(ErrorCode.
ERR_EscapeVariable
, @"{ [in x] = """" }").WithArguments(@"[in x] = """"").WithLocation(9, 40),
4127
Diagnostic(ErrorCode.
ERR_EscapeVariable
, @"{ [in x] = """" }").WithArguments(@"[in x] = """"").WithLocation(11, 50)
4190
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ Prop = stackSpan }").WithArguments("Prop = stackSpan").WithLocation(13, 24),
4193
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ Prop = stackSpan }").WithArguments("Prop = stackSpan").WithLocation(43, 24)
4344
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ Field2 = {[inner] = outer} }").WithArguments("Field2 = {[inner] = outer}").WithLocation(15, 25),
4347
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(25, 16),
4350
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ Field2 = {[outer] = inner} }").WithArguments("Field2 = {[outer] = inner}").WithLocation(33, 25),
4523
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r").WithArguments("r").WithLocation(9, 16),
4595
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r").WithArguments("r").WithLocation(19, 16),
4598
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r").WithArguments("r").WithLocation(29, 16),
5587
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(12, 35));
5722
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "with(ref heapSpan)").WithArguments("with(ref heapSpan)").WithLocation(12, 16),
5761
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "with(ref heapSpan)").WithArguments("with(ref heapSpan)").WithLocation(12, 16),
5803
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(12, 35));
6636
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(10, 35));
6964
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r").WithArguments("r").WithLocation(9, 16),
7113
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rInner").WithArguments("rInner").WithLocation(20, 54),
7119
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(23, 42),
7129
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rInner").WithArguments("rInner").WithLocation(20, 54),
7135
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(23, 42),
7313
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "sInner").WithArguments("sInner").WithLocation(27, 44),
7316
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "sInner").WithArguments("sInner").WithLocation(30, 35),
7319
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "sInner").WithArguments("sInner").WithLocation(33, 60),
7325
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "sInner").WithArguments("sInner").WithLocation(36, 47),
7331
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "ternarySame1").WithArguments("ternarySame1").WithLocation(39, 47),
7474
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "local").WithArguments("local").WithLocation(19, 26),
7529
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "local").WithArguments("local").WithLocation(16, 30),
7535
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "sp1").WithArguments("sp1").WithLocation(22, 20)
7647
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "value1").WithArguments("value1").WithLocation(14, 33),
7706
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackAllocated").WithArguments("stackAllocated").WithLocation(17, 43),
8030
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "local").WithArguments("local").WithLocation(13, 56),
8036
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "local").WithArguments("local").WithLocation(14, 56),
8119
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "(global, global) = local").WithArguments("(global, global) = local").WithLocation(10, 9),
8125
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "(global, local) = local").WithArguments("(global, local) = local").WithLocation(11, 9),
8131
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "(global, _) = local").WithArguments("(global, _) = local").WithLocation(13, 9),
8163
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "(M(), M()) = local").WithArguments("(M(), M()) = local").WithLocation(9, 9),
8254
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "(global, global) = local").WithArguments("(global, global) = local").WithLocation(10, 9),
8270
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "(global, global) = local").WithArguments("(global, global) = local").WithLocation(10, 9),
8306
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "(x1, y1) = local").WithArguments("(x1, y1) = local").WithLocation(10, 9),
8341
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "(x1, y1) = local").WithArguments("(x1, y1) = local").WithLocation(10, 9),
8727
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "local1").WithArguments("local1").WithLocation(10, 18),
8730
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "local2").WithArguments("local2").WithLocation(11, 18));
8766
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(7, 16),
8769
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(12, 16),
8772
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(17, 20));
8880
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(6, 16),
8883
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(11, 16),
8886
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(16, 20));
8957
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(12, 16),
8960
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(17, 20));
8989
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(7, 20));
9015
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(7, 20));
9092
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(7, 20));
9145
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(8, 20));
9180
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(7, 20),
9183
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x2").WithArguments("x2").WithLocation(13, 20));
9218
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "local").WithArguments("local").WithLocation(11, 22)
9257
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "local1").WithArguments("local1").WithLocation(11, 22),
9260
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "local2").WithArguments("local2").WithLocation(12, 22));
9294
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "local1").WithArguments("local1").WithLocation(10, 18),
9297
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "local2").WithArguments("local2").WithLocation(11, 18));
9330
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "local2").WithArguments("local2").WithLocation(11, 18));
9545
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(17, 22),
9548
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(36, 22),
9551
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(54, 22),
9554
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackSpan").WithArguments("stackSpan").WithLocation(72, 22));
9964
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x").WithArguments("x").WithLocation(8, 24)
10364
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "xyzw1").WithArguments("xyzw1").WithLocation(16, 16),
10367
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "xyzw2").WithArguments("xyzw2").WithLocation(23, 16)
10510
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "xyzw1").WithArguments("xyzw1").WithLocation(16, 16),
10513
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "xyzw2").WithArguments("xyzw2").WithLocation(23, 16)
10801
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "xyzw1").WithArguments("xyzw1").WithLocation(14, 25),
10804
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "xyzw2").WithArguments("xyzw2").WithLocation(22, 17),
10807
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "xyzw3").WithArguments("xyzw3").WithLocation(29, 13)
10982
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "xyzw2").WithArguments("xyzw2").WithLocation(18, 31),
10988
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "xyzw3").WithArguments("xyzw3").WithLocation(26, 23),
10994
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "xyzw4").WithArguments("xyzw4").WithLocation(33, 19)
11173
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "xyz2").WithArguments("xyz2").WithLocation(21, 35),
11179
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "xyz3").WithArguments("xyz3").WithLocation(29, 27)
11240
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "xyzw1").WithArguments("xyzw1").WithLocation(16, 16),
11243
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "xyzw2").WithArguments("xyzw2").WithLocation(23, 16),
11246
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "xyzw3").WithArguments("xyzw3").WithLocation(29, 16),
11249
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "xyzw4").WithArguments("xyzw4").WithLocation(36, 16)
11297
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rs4").WithArguments("rs4").WithLocation(19, 16),
11300
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rs4").WithArguments("rs4").WithLocation(25, 16),
11350
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rs4").WithArguments("rs4").WithLocation(16, 16),
11353
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rs4").WithArguments("rs4").WithLocation(22, 16),
11359
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rs3").WithArguments("scoped RS rs3").WithLocation(28, 12));
11423
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rs3").WithArguments("rs3").WithLocation(9, 15)
11506
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rs3").WithArguments("rs3").WithLocation(23, 16),
11509
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rs5").WithArguments("rs5").WithLocation(29, 16));
11550
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rs4").WithArguments("rs4").WithLocation(19, 16));
11640
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rs4").WithArguments("rs4").WithLocation(19, 16),
11643
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rs6").WithArguments("rs6").WithLocation(27, 16),
11646
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rs4").WithArguments("rs4").WithLocation(36, 16),
11649
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rs6").WithArguments("rs6").WithLocation(45, 16)
11789
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "z").WithArguments("z").WithLocation(20, 24));
11831
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("y").WithLocation(25, 20));
12010
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(41, 16),
12013
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(47, 16));
12109
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(41, 16),
12112
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(47, 16));
12145
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s1").WithArguments("s1").WithLocation(7, 20));
12282
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(35, 16),
12285
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(41, 16),
12288
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(47, 16));
12579
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(41, 16),
12582
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(47, 16));
12750
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c1").WithArguments("scoped C c1").WithLocation(7, 14),
12756
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c1").WithArguments("scoped C c1").WithLocation(8, 17),
12762
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c1").WithArguments("scoped C c1").WithLocation(9, 18));
12796
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c1").WithArguments("scoped C c1").WithLocation(8, 23),
12799
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c1").WithArguments("scoped C c1").WithLocation(8, 23),
12811
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c1").WithArguments("scoped C c1").WithLocation(12, 27),
12814
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c1").WithArguments("scoped C c1").WithLocation(12, 27)
12841
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c1").WithArguments("scoped C c1").WithLocation(7, 14),
12847
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c1").WithArguments("scoped C c1").WithLocation(8, 17),
12853
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c1").WithArguments("scoped C c1").WithLocation(9, 18));
12896
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "right").WithArguments("scoped C right").WithLocation(3, 66),
12899
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "right").WithArguments("scoped C right").WithLocation(4, 57));
12947
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c").WithArguments("scoped C c").WithLocation(8, 18),
12959
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c").WithArguments("scoped C c").WithLocation(12, 24)
12988
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c").WithArguments("scoped C c").WithLocation(8, 18),
13000
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c").WithArguments("scoped C c").WithLocation(12, 24)
13120
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackLocal").WithArguments("stackLocal").WithLocation(16, 22)
13207
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackLocal").WithArguments("stackLocal").WithLocation(16, 22),
13225
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "stackLocal").WithArguments("stackLocal").WithLocation(68, 22)
13322
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(41, 16),
13325
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(47, 16));
13437
Diagnostic(ErrorCode.
ERR_EscapeVariable
, $"r2{op}").WithArguments("scoped R r2").WithLocation(11, 14));
13470
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r1").WithArguments("r1").WithLocation(12, 16));
13520
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(6, 16),
13529
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(23, 16),
13532
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(29, 16));
14826
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c3").WithArguments("c3").WithLocation(11, 16));
14849
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "c2").WithArguments("scoped C c2").WithLocation(9, 18),
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));
14114
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s1").WithArguments("s1").WithLocation(10, 18),
14117
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(14, 18));
14156
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s1").WithArguments("s1").WithLocation(10, 22),
14159
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(15, 18)
14197
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s1").WithArguments("s1").WithLocation(10, 18),
14200
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(13, 18)
14258
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s1").WithArguments("s1").WithLocation(10, 18),
14261
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(14, 18),
14264
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "(s11, d) = new S(ref i1)").WithArguments("(s11, d) = new S(ref i1)").WithLocation(24, 13),
14270
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s21").WithArguments("s21").WithLocation(31, 18),
14273
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "(s31, f) = s0").WithArguments("(s31, f) = s0").WithLocation(36, 13),
14336
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s1").WithArguments("s1").WithLocation(10, 18),
14339
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(14, 18),
14342
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s21").WithArguments("s21").WithLocation(23, 18),
14345
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s4").WithArguments("s4").WithLocation(29, 18),
14348
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s5").WithArguments("s5").WithLocation(34, 18),
14351
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s7").WithArguments("s7").WithLocation(39, 18)
15380
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r6").WithArguments("r6").WithLocation(28, 22));
15493
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(15, 18)
15594
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s1").WithArguments("s1").WithLocation(10, 22)
15649
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s1").WithArguments("s1").WithLocation(10, 22));
15813
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r").WithArguments("scoped R r").WithLocation(4, 39),
15816
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "(R)r").WithArguments("scoped R r").WithLocation(7, 39));
16532
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r").WithArguments("scoped R r").WithLocation(13, 35)
16572
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r").WithArguments("scoped R r").WithLocation(14, 28),
16865
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r8").WithArguments("scoped R r8").WithLocation(18, 36),
16871
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r9").WithArguments("scoped R r9").WithLocation(19, 28)
17872
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("scoped R y").WithLocation(4, 53),
17875
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y").WithArguments("scoped R y").WithLocation(5, 49));
17972
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "y1").WithArguments("scoped R y1").WithLocation(9, 15));
18208
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "x1").WithArguments("x1").WithLocation(8, 33),
18328
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r1").WithArguments("scoped R<int> r1").WithLocation(5, 43));
18388
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "l1").WithArguments("l1").WithLocation(12, 16));
18467
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "l0").WithArguments("l0").WithLocation(7, 16),
18470
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "l1").WithArguments("l1").WithLocation(12, 16),
18473
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "l2").WithArguments("l2").WithLocation(17, 16),
18476
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "l3").WithArguments("l3").WithLocation(22, 16));
18555
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "l1").WithArguments("l1").WithLocation(12, 16));
18626
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r1").WithArguments("scoped R<int> r1").WithLocation(11, 36));
18664
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r1").WithArguments("scoped R<int> r1").WithLocation(11, 36),
18832
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ I2 = ref rs.I1 }").WithArguments("I2 = ref rs.I1").WithLocation(16, 23));
18963
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r.F").WithArguments("scoped R<T> r").WithLocation(12, 55));
18993
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r1.F").WithArguments("r1").WithLocation(11, 20),
19028
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r1.F").WithArguments("r1").WithLocation(11, 20),
19031
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r2.F").WithArguments("r2").WithLocation(16, 20));
19097
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r1.F1").WithArguments("scoped R1<T> r1").WithLocation(14, 44));
19609
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r1").WithArguments("r1").WithLocation(16, 16),
19612
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r2").WithArguments("r2").WithLocation(23, 16),
19618
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r4").WithArguments("r4").WithLocation(39, 16),
19621
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r5").WithArguments("r5").WithLocation(46, 16),
19624
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r6").WithArguments("r6").WithLocation(53, 16),
19630
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r8").WithArguments("r8").WithLocation(69, 16));
19704
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r1").WithArguments("r1").WithLocation(15, 16),
19707
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r2").WithArguments("r2").WithLocation(21, 16),
19713
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r4").WithArguments("r4").WithLocation(35, 16),
19716
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r5").WithArguments("r5").WithLocation(41, 16),
19719
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r6").WithArguments("r6").WithLocation(47, 16),
19725
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r8").WithArguments("r8").WithLocation(61, 16));
20042
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r1").WithArguments("r1").WithLocation(13, 9),
20071
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r1").WithArguments("r1").WithLocation(13, 9),
20106
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s").WithArguments("s").WithLocation(12, 17));
20199
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r1").WithArguments("r1").WithLocation(12, 18));
20334
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ refField = ref this.@field }").WithArguments("refField = ref this.@field").WithLocation(18, 22),
20337
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ refField = ref this.field }").WithArguments("refField = ref this.field").WithLocation(23, 21),
20340
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ refField = ref s.field }").WithArguments("refField = ref s.field").WithLocation(28, 42));
21648
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r").WithArguments("r").WithLocation(8, 16),
21651
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ field = ref x }").WithArguments("field = ref x").WithLocation(20, 23),
21654
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ field = ref x }").WithArguments("field = ref x").WithLocation(29, 23),
21657
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ field = ref x }").WithArguments("field = ref x").WithLocation(36, 19));
21709
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r").WithArguments("r").WithLocation(8, 16),
21783
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ item = { field = ref x } }").WithArguments("item = { field = ref x }").WithLocation(18, 31),
21786
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ item = { field = ref x } }").WithArguments("item = { field = ref x }").WithLocation(25, 27),
21789
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r").WithArguments("r").WithLocation(31, 16));
21895
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r").WithArguments("r").WithLocation(8, 16),
21898
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ field = ref x }").WithArguments("field = ref x").WithLocation(20, 30),
21901
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ field = ref x }").WithArguments("field = ref x").WithLocation(29, 30),
21904
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "{ field = ref x }").WithArguments("field = ref x").WithLocation(36, 26));
23625
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r").WithArguments("r").WithLocation(7, 28),
23631
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r").WithArguments("r").WithLocation(13, 28)
24124
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r").WithArguments("r").WithLocation(32, 24),
24130
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r").WithArguments("r").WithLocation(44, 24),
24136
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r").WithArguments("r").WithLocation(50, 24));
28126
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s1").WithArguments("s1").WithLocation(10, 18),
28129
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(14, 18));
28173
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s1").WithArguments("s1").WithLocation(11, 22),
28176
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(17, 22)
29903
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(10, 14));
30009
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(14, 31)
30698
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r").WithArguments("r").WithLocation(19, 39),
30701
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r2").WithArguments("r2").WithLocation(20, 16));
30736
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r").WithArguments("r").WithLocation(20, 40),
30739
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "r2").WithArguments("r2").WithLocation(21, 16));
30877
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(10, 32));
30906
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(12, 48));
30930
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(9, 32));
Semantics\SpanStackSafetyTests.cs (13)
2381
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(16, 24),
2387
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(17, 16),
2393
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(19, 24),
2399
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(20, 16),
2405
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(22, 19),
2411
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(23, 30),
2424
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(17, 16),
2430
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(20, 16),
2436
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(23, 30));
2469
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(16, 34),
2475
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "s2").WithArguments("s2").WithLocation(17, 26),
2592
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "span").WithArguments("span").WithLocation(36, 16),
2595
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)
8874
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "inner").WithArguments("inner").WithLocation(7, 13)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Symbols\PartialPropertiesTests.cs (2)
3325
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rs").WithArguments("scoped RS rs").WithLocation(6, 51),
3331
Diagnostic(ErrorCode.
ERR_EscapeVariable
, "rs").WithArguments("rs").WithLocation(18, 21));