730 references to RelatedLocationType
Microsoft.CodeAnalysis.EditorFeatures (6)
InlineRename\IEditorInlineRenameService.cs (6)
90
case
RelatedLocationType
.NoConflict:
92
case
RelatedLocationType
.ResolvedReferenceConflict:
94
case
RelatedLocationType
.ResolvedNonReferenceConflict:
96
case
RelatedLocationType
.UnresolvableConflict:
97
case
RelatedLocationType
.UnresolvedConflict:
100
case
RelatedLocationType
.PossiblyResolvableConflict:
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (703)
Rename\CSharp\AliasTests.vb (20)
288
result.AssertLabeledSpansAre("stmt1", "C3 f = null;",
RelatedLocationType
.ResolvedReferenceConflict)
341
result.AssertLabeledSpansAre("stmt1", "BarBaz",
RelatedLocationType
.NoConflict)
394
result.AssertLabeledSpansAre("stmt1", "Attribute",
RelatedLocationType
.NoConflict)
395
result.AssertLabeledSpansAre("qualify", "System.Attribute",
RelatedLocationType
.ResolvedNonReferenceConflict)
481
result.AssertLabeledSpansAre("declconflict", type:=
RelatedLocationType
.UnresolvedConflict)
482
result.AssertLabeledSpansAre("stmt1", "A.C.B.Goo c;", type:=
RelatedLocationType
.ResolvedReferenceConflict)
528
result.AssertLabeledSpansAre("declconflict", type:=
RelatedLocationType
.UnresolvedConflict)
529
result.AssertLabeledSpansAre("stmt1", "A.C.B.Goo c;", type:=
RelatedLocationType
.ResolvedReferenceConflict)
575
result.AssertLabeledSpansAre("declconflict", type:=
RelatedLocationType
.UnresolvedConflict)
576
result.AssertLabeledSpansAre("stmt1", "A.C.B.Goo c;", type:=
RelatedLocationType
.ResolvedReferenceConflict)
603
result.AssertLabeledSpansAre("resolved", "List<X>", type:=
RelatedLocationType
.ResolvedReferenceConflict)
630
result.AssertLabeledSpansAre("resolved", "X", type:=
RelatedLocationType
.NoConflict)
631
result.AssertLabeledSpansAre("resolved_nonref", "A", type:=
RelatedLocationType
.ResolvedNonReferenceConflict)
664
result.AssertLabeledSpansAre("short", "Bar",
RelatedLocationType
.NoConflict)
665
result.AssertLabeledSpansAre("long", "BarAttribute",
RelatedLocationType
.NoConflict)
699
result.AssertLabeledSpansAre("short1", "BarAttribute",
RelatedLocationType
.ResolvedReferenceConflict)
700
result.AssertLabeledSpansAre("short2", "BarAttribute()",
RelatedLocationType
.ResolvedReferenceConflict)
701
result.AssertLabeledSpansAre("long1", "BarAttribute",
RelatedLocationType
.NoConflict)
702
result.AssertLabeledSpansAre("long2", "BarAttribute",
RelatedLocationType
.NoConflict)
731
result.AssertLabeledSpansAre("resolved", "var y = (x as int?) + 1;",
RelatedLocationType
.ResolvedNonReferenceConflict)
Rename\CSharp\DeclarationConflictTests.vb (23)
79
result.AssertLabeledSpansAre("Conflict", type:=
RelatedLocationType
.UnresolvedConflict)
99
result.AssertLabeledSpansAre("Conflict", type:=
RelatedLocationType
.UnresolvedConflict)
119
result.AssertLabeledSpansAre("Conflict", type:=
RelatedLocationType
.UnresolvedConflict)
139
result.AssertLabeledSpansAre("Conflict", type:=
RelatedLocationType
.UnresolvedConflict)
158
result.AssertLabeledSpansAre("Conflict", type:=
RelatedLocationType
.UnresolvedConflict)
197
result.AssertLabeledSpansAre("Conflict", type:=
RelatedLocationType
.UnresolvedConflict)
277
result.AssertLabeledSpansAre("stmt1", "var y = new ns.A();",
RelatedLocationType
.ResolvedNonReferenceConflict)
316
result.AssertLabeledSpansAre("declconflict", type:=
RelatedLocationType
.UnresolvedConflict)
338
result.AssertLabeledSpansAre("declconflict", type:=
RelatedLocationType
.UnresolvedConflict)
360
result.AssertLabeledSpansAre("declconflict", type:=
RelatedLocationType
.UnresolvedConflict)
382
result.AssertLabeledSpansAre("declconflict", type:=
RelatedLocationType
.UnresolvedConflict)
403
result.AssertLabeledSpansAre("declconflict", type:=
RelatedLocationType
.UnresolvedConflict)
443
result.AssertLabeledSpansAre("possibleImplicitConflict", type:=
RelatedLocationType
.UnresolvedConflict)
542
result.AssertLabeledSpansAre("first", "Method",
RelatedLocationType
.NoConflict)
543
result.AssertLabeledSpansAre("second", "DefaultValue(C.Method)", type:=
RelatedLocationType
.ResolvedReferenceConflict)
566
result.AssertLabeledSpansAre("first", "X(new { a = 1 }, a => (long)a.a);", type:=
RelatedLocationType
.ResolvedNonReferenceConflict)
567
result.AssertLabeledSpansAre("origin", "X", type:=
RelatedLocationType
.NoConflict)
591
result.AssertLabeledSpansAre("first", "M(new { }, (_, a) => (long)X(a))", type:=
RelatedLocationType
.ResolvedNonReferenceConflict)
592
result.AssertLabeledSpansAre("second", "M(new { }, (_, a) => (long)X(a))", type:=
RelatedLocationType
.ResolvedNonReferenceConflict)
593
result.AssertLabeledSpansAre("origin", "X", type:=
RelatedLocationType
.NoConflict)
622
result.AssertLabeledSpansAre("parameter0", "y",
RelatedLocationType
.NoConflict)
623
result.AssertLabeledSpansAre("parameter1", "y",
RelatedLocationType
.NoConflict)
624
result.AssertLabeledSpansAre("local0", type:=
RelatedLocationType
.UnresolvedConflict)
Rename\CSharp\EscapingTests.vb (8)
51
result.AssertLabeledSpecialSpansAre("escaped", "@if",
RelatedLocationType
.NoConflict)
77
result.AssertLabeledSpecialSpansAre("resolved", "ifAttribute()",
RelatedLocationType
.ResolvedReferenceConflict)
103
result.AssertLabeledSpecialSpansAre("escaped", "@if",
RelatedLocationType
.NoConflict)
122
result.AssertLabeledSpansAre("escaped", "type",
RelatedLocationType
.NoConflict)
141
result.AssertLabeledSpecialSpansAre("escaped", "@if",
RelatedLocationType
.NoConflict)
184
result.AssertLabeledSpansAre("stmt1", "b",
RelatedLocationType
.NoConflict)
213
result.AssertLabeledSpansAre("decl", "D",
RelatedLocationType
.NoConflict)
214
result.AssertLabeledSpansAre("stmt1", "D",
RelatedLocationType
.NoConflict)
Rename\CSharp\GenericTypeParameterTests.vb (1)
30
result.AssertLabeledSpansAre("stmt1", "U", Microsoft.CodeAnalysis.Rename.ConflictEngine.
RelatedLocationType
.NoConflict)
Rename\CSharp\ImplicitReferenceConflictTests.vb (6)
52
result.AssertLabeledSpansAre("foreachconflict", type:=
RelatedLocationType
.UnresolvedConflict)
75
result.AssertLabeledSpansAre("deconstructconflict", type:=
RelatedLocationType
.UnresolvedConflict)
100
result.AssertLabeledSpansAre("deconstructconflict", type:=
RelatedLocationType
.UnresolvedConflict)
125
result.AssertLabeledSpansAre("awaitconflict", type:=
RelatedLocationType
.UnresolvedConflict)
169
result.AssertLabeledSpansAre("foreachconflict", type:=
RelatedLocationType
.UnresolvedConflict)
220
result.AssertLabeledSpansAre("foreachconflict", type:=
RelatedLocationType
.UnresolvedConflict)
Rename\CSharp\LocalConflictTests.vb (38)
38
result.AssertLabeledSpansAre("stmt1", "y", type:=
RelatedLocationType
.NoConflict)
39
result.AssertLabeledSpansAre("Conflict", type:=
RelatedLocationType
.UnresolvedConflict)
62
result.AssertLabeledSpansAre("stmt1", "args",
RelatedLocationType
.NoConflict)
63
result.AssertLabeledSpansAre("Conflict", type:=
RelatedLocationType
.UnresolvedConflict)
87
result.AssertLabeledSpansAre("stmt1", "y",
RelatedLocationType
.NoConflict)
88
result.AssertLabeledSpansAre("Conflict", type:=
RelatedLocationType
.UnresolvedConflict)
112
result.AssertLabeledSpansAre("stmt1", "y",
RelatedLocationType
.NoConflict)
113
result.AssertLabeledSpansAre("Conflict", type:=
RelatedLocationType
.UnresolvedConflict)
137
result.AssertLabeledSpansAre("stmt1", "y",
RelatedLocationType
.NoConflict)
138
result.AssertLabeledSpansAre("Conflict", type:=
RelatedLocationType
.UnresolvedConflict)
163
result.AssertLabeledSpansAre("stmt1", "y",
RelatedLocationType
.NoConflict)
164
result.AssertLabeledSpansAre("Conflict", type:=
RelatedLocationType
.UnresolvedConflict)
189
result.AssertLabeledSpansAre("stmt1", "y",
RelatedLocationType
.NoConflict)
190
result.AssertLabeledSpansAre("Conflict", type:=
RelatedLocationType
.UnresolvedConflict)
216
result.AssertLabeledSpansAre("DeclarationConflict", type:=
RelatedLocationType
.UnresolvedConflict)
220
result.AssertLabeledSpansAre("Conflict", type:=
RelatedLocationType
.UnresolvedConflict)
246
result.AssertLabeledSpansAre("stmt1", "Goo",
RelatedLocationType
.NoConflict)
247
result.AssertLabeledSpansAre("Conflict", type:=
RelatedLocationType
.UnresolvedConflict)
273
result.AssertLabeledSpansAre("stmt1", "Goo",
RelatedLocationType
.NoConflict)
274
result.AssertLabeledSpansAre("Conflict", type:=
RelatedLocationType
.UnresolvedConflict)
299
result.AssertLabeledSpansAre("stmt1", "Goo",
RelatedLocationType
.NoConflict)
300
result.AssertLabeledSpansAre("Conflict", type:=
RelatedLocationType
.UnresolvedConflict)
325
result.AssertLabeledSpansAre("stmt1", "Goo",
RelatedLocationType
.NoConflict)
354
result.AssertLabeledSpansAre("stmt1", "j",
RelatedLocationType
.NoConflict)
379
result.AssertLabeledSpansAre("stmt1", "j",
RelatedLocationType
.NoConflict)
404
result.AssertLabeledSpansAre("stmt1", "j",
RelatedLocationType
.UnresolvableConflict)
405
result.AssertLabeledSpansAre("stmt2", "j",
RelatedLocationType
.UnresolvableConflict)
434
result.AssertLabeledSpansAre("stmt1", "j",
RelatedLocationType
.NoConflict)
464
result.AssertLabeledSpansAre("def", "list",
RelatedLocationType
.NoConflict)
465
result.AssertLabeledSpansAre("stmt1", "foreach (var i in this.list.OfType<int>()){}",
RelatedLocationType
.ResolvedReferenceConflict)
466
result.AssertLabeledSpansAre("stmt2", "this.list = list.ToList();",
RelatedLocationType
.ResolvedReferenceConflict)
497
result.AssertLabeledSpansAre("stmt1", "j",
RelatedLocationType
.NoConflict)
498
result.AssertLabeledSpansAre("stmt2", "j",
RelatedLocationType
.UnresolvableConflict)
533
result.AssertLabeledSpansAre("stmt1", "j",
RelatedLocationType
.NoConflict)
566
result.AssertLabeledSpansAre("stmt1", "j",
RelatedLocationType
.NoConflict)
567
result.AssertLabeledSpansAre("stmt2", "j",
RelatedLocationType
.UnresolvableConflict)
600
result.AssertLabeledSpansAre("stmt1", "j",
RelatedLocationType
.NoConflict)
601
result.AssertLabeledSpansAre("stmt2", "j",
RelatedLocationType
.UnresolvableConflict)
Rename\RenameEngineResult.vb (5)
158
AssertLocationReferencedAs(location,
RelatedLocationType
.NoConflict)
165
AssertLabeledSpansAre(label, replacement,
RelatedLocationType
.NoConflict, isRenameWithinStringOrComment:=True)
168
Public Sub AssertLabeledSpansAre(label As String, Optional replacement As String = Nothing, Optional type As
RelatedLocationType
? = Nothing, Optional isRenameWithinStringOrComment As Boolean = False)
183
Public Sub AssertLabeledSpecialSpansAre(label As String, replacement As String, type As
RelatedLocationType
?)
240
Private Sub AssertLocationReferencedAs(location As Location, type As
RelatedLocationType
)
Rename\RenameEngineTests.CSharpConflicts.vb (157)
42
result.AssertLabeledSpansAre("Conflict", type:=
RelatedLocationType
.UnresolvedConflict)
73
result.AssertLabeledSpansAre("Conflict", type:=
RelatedLocationType
.UnresolvedConflict)
103
result.AssertLabeledSpansAre("Conflict", type:=
RelatedLocationType
.UnresolvedConflict)
131
result.AssertLabeledSpansAre("Conflict", type:=
RelatedLocationType
.UnresolvedConflict)
163
result.AssertLabeledSpansAre("Conflict", "D",
RelatedLocationType
.UnresolvedConflict)
209
result.AssertLabeledSpansAre("resolve", "this.z = null;",
RelatedLocationType
.ResolvedNonReferenceConflict)
233
result.AssertLabeledSpansAre("direct", "z + this.z",
RelatedLocationType
.NoConflict)
234
result.AssertLabeledSpansAre("resolve", "z + this.z",
RelatedLocationType
.ResolvedNonReferenceConflict)
258
result.AssertLabeledSpansAre("direct", "z + B.z",
RelatedLocationType
.NoConflict)
259
result.AssertLabeledSpansAre("resolve", "z + B.z",
RelatedLocationType
.ResolvedNonReferenceConflict)
287
result.AssertLabeledSpansAre("resolve", "return this.z;",
RelatedLocationType
.ResolvedNonReferenceConflict)
335
result.AssertLabeledSpansAre("resolve0", outputResult,
RelatedLocationType
.NoConflict)
336
result.AssertLabeledSpansAre("resolve1", outputResult,
RelatedLocationType
.ResolvedNonReferenceConflict)
337
result.AssertLabeledSpansAre("resolve2", outputResult,
RelatedLocationType
.ResolvedNonReferenceConflict)
385
result.AssertLabeledSpansAre("resolve0", outputResult,
RelatedLocationType
.NoConflict)
386
result.AssertLabeledSpansAre("resolve1", outputResult,
RelatedLocationType
.ResolvedNonReferenceConflict)
387
result.AssertLabeledSpansAre("resolve2", outputResult,
RelatedLocationType
.ResolvedNonReferenceConflict)
435
result.AssertLabeledSpansAre("resolve0", outputResult,
RelatedLocationType
.NoConflict)
436
result.AssertLabeledSpansAre("resolve1", outputResult,
RelatedLocationType
.ResolvedNonReferenceConflict)
437
result.AssertLabeledSpansAre("resolve2", outputResult,
RelatedLocationType
.ResolvedNonReferenceConflict)
485
result.AssertLabeledSpansAre("resolve0", outputResult,
RelatedLocationType
.NoConflict)
486
result.AssertLabeledSpansAre("resolve1", outputResult,
RelatedLocationType
.ResolvedNonReferenceConflict)
487
result.AssertLabeledSpansAre("resolve2", outputResult,
RelatedLocationType
.ResolvedNonReferenceConflict)
535
result.AssertLabeledSpansAre("resolve0", outputResult,
RelatedLocationType
.NoConflict)
536
result.AssertLabeledSpansAre("resolve1", outputResult,
RelatedLocationType
.ResolvedNonReferenceConflict)
537
result.AssertLabeledSpansAre("resolve2", outputResult,
RelatedLocationType
.ResolvedNonReferenceConflict)
560
result.AssertLabeledSpansAre("stmt1", "this.foo = foo;",
RelatedLocationType
.NoConflict)
561
result.AssertLabeledSpansAre("stmt2", "this.foo = foo;",
RelatedLocationType
.ResolvedNonReferenceConflict)
585
result.AssertLabeledSpansAre("stmt1", "this.foo = foo;",
RelatedLocationType
.NoConflict)
586
result.AssertLabeledSpansAre("resolved", "this.foo = 23;",
RelatedLocationType
.ResolvedNonReferenceConflict)
587
result.AssertLabeledSpansAre("resolved2", "this.foo = foo;",
RelatedLocationType
.ResolvedNonReferenceConflict)
611
result.AssertLabeledSpansAre("Resolve", "this.@if = 23;",
RelatedLocationType
.ResolvedNonReferenceConflict)
612
result.AssertLabeledSpecialSpansAre("Escape1", "@if",
RelatedLocationType
.NoConflict)
613
result.AssertLabeledSpecialSpansAre("Escape2", "this.@if = @if;",
RelatedLocationType
.NoConflict)
614
result.AssertLabeledSpansAre("Resolve2", "this.@if = @if;",
RelatedLocationType
.ResolvedNonReferenceConflict)
638
result.AssertLabeledSpansAre("Resolved", "Foo.foo = 23;",
RelatedLocationType
.ResolvedNonReferenceConflict)
639
result.AssertLabeledSpansAre("stmt1", "Foo.foo = foo;",
RelatedLocationType
.NoConflict)
640
result.AssertLabeledSpansAre("Resolved2", "Foo.foo = foo;",
RelatedLocationType
.ResolvedNonReferenceConflict)
670
result.AssertLabeledSpansAre("Resolve", "base.bar = bar;",
RelatedLocationType
.ResolvedReferenceConflict)
715
result.AssertLabeledSpansAre("ReplacementCInt", "C<int>.Goo(i, i);",
RelatedLocationType
.ResolvedReferenceConflict)
716
result.AssertLabeledSpansAre("ReplacementCString", "C<string>.Goo(s, s);",
RelatedLocationType
.ResolvedReferenceConflict)
735
result.AssertLabeledSpansAre("Invalid", "`",
RelatedLocationType
.UnresolvedConflict)
756
result.AssertLabeledSpansAre("Invalid", "!",
RelatedLocationType
.UnresolvedConflict)
786
result.AssertLabeledSpansAre("Replacement", "Program.F();",
RelatedLocationType
.ResolvedNonReferenceConflict)
813
result.AssertLabeledSpansAre("Replacement", "this.foo();",
RelatedLocationType
.ResolvedReferenceConflict)
837
result.AssertLabeledSpansAre("Conflict", type:=
RelatedLocationType
.UnresolvedConflict)
856
result.AssertLabeledSpansAre("Conflict", type:=
RelatedLocationType
.UnresolvedConflict)
875
result.AssertLabeledSpansAre("Invalid", "Foo@",
RelatedLocationType
.UnresolvedConflict)
900
result.AssertLabeledSpansAre("Resolve", "X.B",
RelatedLocationType
.ResolvedReferenceConflict)
925
result.AssertLabeledSpansAre("Resolve", "X.A",
RelatedLocationType
.ResolvedNonReferenceConflict)
951
result.AssertLabeledSpecialSpansAre("Escape", "@if",
RelatedLocationType
.NoConflict)
952
result.AssertLabeledSpansAre("Replacement", "Foo.@if();",
RelatedLocationType
.ResolvedReferenceConflict)
986
result.AssertLabeledSpansAre("stmt1", "var type = typeof(A<>.B<>);",
RelatedLocationType
.ResolvedNonReferenceConflict)
1021
result.AssertLabeledSpansAre("Replacement", "var type = typeof(A<>.B<>.E);",
RelatedLocationType
.ResolvedNonReferenceConflict)
1063
result.AssertLabeledSpansAre("Replacement", "var type = typeof(A<>.B<>.E);",
RelatedLocationType
.ResolvedNonReferenceConflict)
1090
result.AssertLabeledSpansAre("Resolve", "A<int[]>",
RelatedLocationType
.ResolvedNonReferenceConflict)
1117
result.AssertLabeledSpansAre("Resolve", "A<int*>",
RelatedLocationType
.ResolvedNonReferenceConflict)
1146
result.AssertLabeledSpansAre("Resolve", "A<int>.E",
RelatedLocationType
.ResolvedNonReferenceConflict)
1176
result.AssertLabeledSpansAre("stmt1", "return E.Bar(E.Bar(this, 1), 2);",
RelatedLocationType
.ResolvedReferenceConflict)
1206
result.AssertLabeledSpansAre("Resolved", "E.Foo(E.Foo(this, 1), 2);",
RelatedLocationType
.ResolvedNonReferenceConflict)
1236
result.AssertLabeledSpansAre("Resolved", type:=
RelatedLocationType
.ResolvedNonReferenceConflict)
1267
result.AssertLabeledSpansAre("Resolved", type:=
RelatedLocationType
.ResolvedNonReferenceConflict)
1296
result.AssertLabeledSpansAre("stmt1", "y",
RelatedLocationType
.NoConflict)
1324
result.AssertLabeledSpansAre("stmt1", "x",
RelatedLocationType
.NoConflict)
1325
result.AssertLabeledSpansAre("stmt2", "x",
RelatedLocationType
.NoConflict)
1352
result.AssertLabeledSpansAre("stmt1", "x",
RelatedLocationType
.NoConflict)
1353
result.AssertLabeledSpansAre("stmt2", "x",
RelatedLocationType
.NoConflict)
1377
result.AssertLabeledSpansAre("Special", "Special", type:=
RelatedLocationType
.NoConflict)
1451
result.AssertLabeledSpansAre("Conflict", type:=
RelatedLocationType
.UnresolvedConflict)
1500
result.AssertLabeledSpansAre("Resolve", "global::A",
RelatedLocationType
.ResolvedNonReferenceConflict)
1526
result.AssertLabeledSpansAre("Stmt1", "x();",
RelatedLocationType
.ResolvedReferenceConflict)
1551
result.AssertLabeledSpansAre("Stmt1", "this.x();",
RelatedLocationType
.ResolvedReferenceConflict)
1574
result.AssertLabeledSpansAre("Conflict", "B",
RelatedLocationType
.UnresolvedConflict)
1599
result.AssertLabeledSpecialSpansAre("Escape", "@Special",
RelatedLocationType
.ResolvedReferenceConflict)
1623
result.AssertLabeledSpansAre("Resolve", "System.Attribute",
RelatedLocationType
.ResolvedNonReferenceConflict)
1655
result.AssertLabeledSpansAre("Resolve1", "A",
RelatedLocationType
.NoConflict)
1656
result.AssertLabeledSpansAre("Resolve2", "N.A<N.A<T>.B<S>>",
RelatedLocationType
.ResolvedNonReferenceConflict)
1657
result.AssertLabeledSpansAre("Resolve3", "N.A<N.A<T>.B<S>>",
RelatedLocationType
.ResolvedNonReferenceConflict)
1658
result.AssertLabeledSpansAre("Resolve4", "N.A<T>",
RelatedLocationType
.ResolvedNonReferenceConflict)
1680
result.AssertLabeledSpansAre("resolved", "@from",
RelatedLocationType
.NoConflict)
1717
result.AssertLabeledSpansAre("Resolve", "N",
RelatedLocationType
.ResolvedNonReferenceConflict)
1743
result.AssertLabeledSpansAre("Resolve", "A<int, int>",
RelatedLocationType
.ResolvedNonReferenceConflict)
1767
result.AssertLabeledSpansAre("Resolve", "Foo((object)1);",
RelatedLocationType
.ResolvedReferenceConflict)
1794
result.AssertLabeledSpansAre("stmt1", "doer",
RelatedLocationType
.NoConflict)
1795
result.AssertLabeledSpansAre("stmt2", "Program.doer(3);",
RelatedLocationType
.ResolvedNonReferenceConflict)
1824
result.AssertLabeledSpansAre("Stmt1", "Del d = new Del(A.Del);",
RelatedLocationType
.ResolvedReferenceConflict)
1825
result.AssertLabeledSpansAre("Stmt2", "Del",
RelatedLocationType
.NoConflict)
1854
result.AssertLabeledSpansAre("Stmt1", "Del d = new Del(A.Bar);",
RelatedLocationType
.ResolvedReferenceConflict)
1883
result.AssertLabeledSpansAre("decl1", "new Del(A.Boo)",
RelatedLocationType
.ResolvedReferenceConflict)
1884
result.AssertLabeledSpansAre("Stmt2", "Boo(A.Boo);",
RelatedLocationType
.ResolvedReferenceConflict)
1885
result.AssertLabeledSpansAre("Stmt3", "A.Boo(Boo);",
RelatedLocationType
.ResolvedReferenceConflict)
1917
result.AssertLabeledSpansAre("stmt1", "Del d = new Del(A.Foo);",
RelatedLocationType
.ResolvedNonReferenceConflict)
1945
result.AssertLabeledSpansAre("Stmt1", "A.Bar(3);",
RelatedLocationType
.ResolvedReferenceConflict)
1967
result.AssertLabeledSpansAre("escape", "@Bar",
RelatedLocationType
.ResolvedNonReferenceConflict)
1989
result.AssertLabeledSpecialSpansAre("Resolve", "A",
RelatedLocationType
.ResolvedReferenceConflict)
2019
result.AssertLabeledSpansAre("Resolve", "X.B",
RelatedLocationType
.ResolvedNonReferenceConflict)
2050
result.AssertLabeledSpansAre("stmt1", "Foo",
RelatedLocationType
.NoConflict)
2076
result.AssertLabeledSpansAre("conflict", "var",
RelatedLocationType
.UnresolvedConflict)
2115
result.AssertLabeledSpansAre("resolved", "Outer((string y) => Inner(x => x.Ex(), y), 0);",
RelatedLocationType
.ResolvedNonReferenceConflict)
2144
result.AssertLabeledSpansAre("resolve", "Bar((object)1, Console.WriteLine);",
RelatedLocationType
.ResolvedNonReferenceConflict)
2178
result.AssertLabeledSpansAre("resolve", "global::N",
RelatedLocationType
.ResolvedNonReferenceConflict)
2209
result.AssertLabeledSpansAre("stmt1", "global::N",
RelatedLocationType
.ResolvedNonReferenceConflict)
2246
result.AssertLabeledSpansAre("Resolve", "A.D",
RelatedLocationType
.ResolvedNonReferenceConflict)
2274
result.AssertLabeledSpansAre("stmt1", "F<int>(a => a);",
RelatedLocationType
.ResolvedNonReferenceConflict)
2303
result.AssertLabeledSpansAre("stmt1", "return Foo<int>(x);",
RelatedLocationType
.ResolvedNonReferenceConflict)
2333
result.AssertLabeledSpansAre("stmt1", "C.Bar<int>(1);",
RelatedLocationType
.ResolvedReferenceConflict)
2358
result.AssertLabeledSpansAre("stmt1", "Foo<string>(one);",
RelatedLocationType
.ResolvedNonReferenceConflict)
2387
result.AssertLabeledSpansAre("stmt1", "Foo<D<int>>(x);",
RelatedLocationType
.ResolvedNonReferenceConflict)
2414
result.AssertLabeledSpansAre("stmt1", "Foo<Expression<Func<int, int>>>(x);",
RelatedLocationType
.ResolvedNonReferenceConflict)
2440
result.AssertLabeledSpansAre("stmt1", "Bar<int[]>(x);",
RelatedLocationType
.ResolvedReferenceConflict)
2466
result.AssertLabeledSpansAre("stmt1", "Foo<int[,]>(x);",
RelatedLocationType
.ResolvedNonReferenceConflict)
2492
result.AssertLabeledSpansAre("stmt1", "Sub(Foo<int>(1));",
RelatedLocationType
.ResolvedNonReferenceConflict)
2518
result.AssertLabeledSpansAre("stmt1", "C c = new C(Foo<int>(1));",
RelatedLocationType
.ResolvedNonReferenceConflict)
2544
result.AssertLabeledSpansAre("stmt1", "c.Foo<int>(1);",
RelatedLocationType
.ResolvedNonReferenceConflict)
2570
result.AssertLabeledSpansAre("stmt1", "FooDel<int> foodel = new FooDel<int>(Foo<int>);",
RelatedLocationType
.ResolvedNonReferenceConflict)
2596
result.AssertLabeledSpansAre("stmt1", "FooDel foodel = new FooDel(Foo<int>);",
RelatedLocationType
.ResolvedNonReferenceConflict)
2622
result.AssertLabeledSpansAre("stmt1", "Foo<int[], C>(x, new C());",
RelatedLocationType
.ResolvedNonReferenceConflict)
2651
result.AssertLabeledSpansAre("stmt1", "base.Foo(1);",
RelatedLocationType
.ResolvedNonReferenceConflict)
2677
result.AssertLabeledSpansAre("stmt1", "F",
RelatedLocationType
.UnresolvedConflict)
2710
result.AssertLabeledSpansAre("stmt1", "C.Foo<int>(1);",
RelatedLocationType
.ResolvedNonReferenceConflict)
2737
result.AssertLabeledSpansAre("stmt1", "Foo<C<int>>(x);",
RelatedLocationType
.ResolvedNonReferenceConflict)
2762
result.AssertLabeledSpansAre("cref1", "Zoo{T}",
RelatedLocationType
.ResolvedNonReferenceConflict)
2791
result.AssertLabeledSpansAre("stmt1", "Foo<int>(1);",
RelatedLocationType
.ResolvedNonReferenceConflict)
2825
result.AssertLabeledSpansAre("stmt1", "Foo<int>(y, x);",
RelatedLocationType
.ResolvedNonReferenceConflict)
2854
result.AssertLabeledSpansAre("DeclConflict", type:=
RelatedLocationType
.UnresolvedConflict)
2855
result.AssertLabeledSpansAre("unresolved1", type:=
RelatedLocationType
.UnresolvedConflict)
2856
result.AssertLabeledSpansAre("unresolved2", type:=
RelatedLocationType
.UnresolvedConflict)
2881
result.AssertLabeledSpansAre("ref", "string x = nameof(C.zoo);",
RelatedLocationType
.ResolvedNonReferenceConflict)
2906
result.AssertLabeledSpansAre("ref", "string x = nameof(C.zoo);",
RelatedLocationType
.ResolvedNonReferenceConflict)
2931
result.AssertLabeledSpansAre("ref", "string x = nameof(C.zoo);",
RelatedLocationType
.ResolvedNonReferenceConflict)
2958
result.AssertLabeledSpansAre("ref", "string x = nameof(this.zoo);",
RelatedLocationType
.ResolvedNonReferenceConflict)
2980
result.AssertLabeledSpansAre("resolved", "N((long)1)",
RelatedLocationType
.ResolvedNonReferenceConflict)
3002
result.AssertLabeledSpansAre("resolved1", "new C().N((long)0)",
RelatedLocationType
.ResolvedNonReferenceConflict)
3003
result.AssertLabeledSpansAre("resolved2", "N((long)0)",
RelatedLocationType
.ResolvedNonReferenceConflict)
3021
result.AssertLabeledSpansAre("conflict", "C",
RelatedLocationType
.UnresolvableConflict)
3039
result.AssertLabeledSpansAre("conflict", "I",
RelatedLocationType
.UnresolvableConflict)
3057
result.AssertLabeledSpansAre("conflict", "N",
RelatedLocationType
.UnresolvableConflict)
3075
result.AssertLabeledSpansAre("conflict", "N",
RelatedLocationType
.UnresolvableConflict)
3093
result.AssertLabeledSpansAre("conflict", "C",
RelatedLocationType
.UnresolvableConflict)
3168
result.AssertLabeledSpansAre("conflict", "a",
RelatedLocationType
.UnresolvedConflict)
3211
result.AssertLabeledSpansAre("conflict", "Test",
RelatedLocationType
.UnresolvedConflict)
3272
result.AssertLabeledSpansAre("conflict", "Console",
RelatedLocationType
.UnresolvedConflict)
3289
result.AssertLabeledSpansAre("conflict", "C.D",
RelatedLocationType
.UnresolvedConflict)
3308
result.AssertLabeledSpansAre("conflict", renameTo,
RelatedLocationType
.UnresolvedConflict)
3339
result.AssertLabeledSpansAre("conflict", "B",
RelatedLocationType
.UnresolvedConflict)
3373
result.AssertLabeledSpansAre("conflict", "B",
RelatedLocationType
.UnresolvedConflict)
3404
result.AssertLabeledSpansAre("conflict", "Method",
RelatedLocationType
.UnresolvedConflict)
3431
result.AssertLabeledSpansAre("Conflict", replacement:="nameof(Program.field).ToString();", type:=
RelatedLocationType
.ResolvedNonReferenceConflict)
3458
result.AssertLabeledSpansAre("Conflict", replacement:="nameof(Program.field)?.ToString();", type:=
RelatedLocationType
.ResolvedNonReferenceConflict)
3487
result.AssertLabeledSpansAre("Conflict", replacement:="Program.nameof(Program.field);", type:=
RelatedLocationType
.ResolvedNonReferenceConflict)
3521
result.AssertLabeledSpansAre("Conflict", type:=
RelatedLocationType
.UnresolvedConflict)
3538
result.AssertLabeledSpansAre("current", type:=
RelatedLocationType
.NoConflict)
3563
result.AssertLabeledSpansAre("Conflict", type:=
RelatedLocationType
.UnresolvedConflict)
3583
result.AssertLabeledSpansAre("Conflict", type:=
RelatedLocationType
.UnresolvedConflict)
3604
result.AssertLabeledSpansAre("conflict", type:=
RelatedLocationType
.UnresolvedConflict)
3625
result.AssertLabeledSpansAre("conflict", type:=
RelatedLocationType
.UnresolvedConflict)
3646
result.AssertLabeledSpansAre("conflict", type:=
RelatedLocationType
.UnresolvedConflict)
Rename\RenameEngineTests.vb (172)
240
result.AssertLabeledSpansAre("unresolved", type:=
RelatedLocationType
.UnresolvedConflict)
262
result.AssertLabeledSpansAre("unresolved", type:=
RelatedLocationType
.UnresolvedConflict)
380
result.AssertLabeledSpansAre("DeclConflict", type:=
RelatedLocationType
.UnresolvedConflict)
381
result.AssertLabeledSpansAre("unresolve2", "x", type:=
RelatedLocationType
.UnresolvedConflict)
407
result.AssertLabeledSpansAre("DeclConflict", type:=
RelatedLocationType
.UnresolvedConflict)
408
result.AssertLabeledSpansAre("unresolve1", type:=
RelatedLocationType
.UnresolvedConflict)
409
result.AssertLabeledSpansAre("unresolve2", type:=
RelatedLocationType
.UnresolvedConflict)
410
result.AssertLabeledSpansAre("unresolve3", type:=
RelatedLocationType
.UnresolvedConflict)
520
result.AssertLabeledSpansAre("resolve", "global::A",
RelatedLocationType
.ResolvedNonReferenceConflict)
521
result.AssertLabeledSpansAre("resolve2", "X.A.Bar();",
RelatedLocationType
.ResolvedReferenceConflict)
548
result.AssertLabeledSpansAre("conflict1", type:=
RelatedLocationType
.UnresolvedConflict)
549
result.AssertLabeledSpansAre("conflict2", type:=
RelatedLocationType
.UnresolvedConflict)
550
result.AssertLabeledSpansAre("conflict3", type:=
RelatedLocationType
.UnresolvedConflict)
568
result.AssertLabeledSpansAre("conflict1", "y", type:=
RelatedLocationType
.UnresolvedConflict)
569
result.AssertLabeledSpansAre("conflict2", "y", type:=
RelatedLocationType
.UnresolvedConflict)
724
result.AssertLabeledSpansAre("stmt1", replacement:="BarBaz", type:=
RelatedLocationType
.NoConflict)
754
result.AssertLabeledSpansAre("stmt1", replacement:="BarBaz", type:=
RelatedLocationType
.NoConflict)
755
result.AssertLabeledSpansAre("stmt2", replacement:="BarBaz", type:=
RelatedLocationType
.NoConflict)
789
result.AssertLabeledSpansAre("stmt1", replacement:="BarBaz", type:=
RelatedLocationType
.NoConflict)
790
result.AssertLabeledSpansAre("stmt2", replacement:="BarBaz", type:=
RelatedLocationType
.NoConflict)
791
result.AssertLabeledSpansAre("conflict", type:=
RelatedLocationType
.UnresolvedConflict)
826
result.AssertLabeledSpansAre("csstmt1", "BarBaz",
RelatedLocationType
.NoConflict)
827
result.AssertLabeledSpansAre("vbstmt1", "BarBaz",
RelatedLocationType
.NoConflict)
852
result.AssertLabeledSpansAre("stmt1", replacement:="BarBaz", type:=
RelatedLocationType
.NoConflict)
877
result.AssertLabeledSpansAre("stmt1", replacement:="Bar", type:=
RelatedLocationType
.NoConflict)
917
result.AssertLabeledSpansAre("stmt1", replacement:="Bar", type:=
RelatedLocationType
.NoConflict)
940
result.AssertLabeledSpansAre("stmt1", "BarBaz",
RelatedLocationType
.NoConflict)
963
result.AssertLabeledSpansAre("stmt1", "BarBaz",
RelatedLocationType
.NoConflict)
986
result.AssertLabeledSpansAre("stmt1", "BarBaz",
RelatedLocationType
.NoConflict)
1005
result.AssertLabeledSpansAre("stmt1", "BarBaz",
RelatedLocationType
.NoConflict)
1024
result.AssertLabeledSpansAre("stmt1", "BarBaz",
RelatedLocationType
.NoConflict)
1043
result.AssertLabeledSpansAre("stmt1", "BarBaz",
RelatedLocationType
.NoConflict)
1102
result.AssertLabeledSpansAre("stmt1", "Bar",
RelatedLocationType
.NoConflict)
1121
result.AssertLabeledSpansAre("stmt1", "Bar",
RelatedLocationType
.NoConflict)
1222
result.AssertLabeledSpansAre("stmt1", replacement:="Blah", type:=
RelatedLocationType
.NoConflict)
1253
result.AssertLabeledSpansAre("stmt1", replacement:="Blah", type:=
RelatedLocationType
.NoConflict)
1280
result.AssertLabeledSpansAre("stmt1", replacement:="BarBaz", type:=
RelatedLocationType
.NoConflict)
1304
result.AssertLabeledSpansAre("stmt1", replacement:="BarBaz", type:=
RelatedLocationType
.NoConflict)
1328
result.AssertLabeledSpansAre("stmt1", replacement:="BarBaz", type:=
RelatedLocationType
.NoConflict)
1354
result.AssertLabeledSpansAre("stmt1", replacement:="BarBaz", type:=
RelatedLocationType
.NoConflict)
1382
result.AssertLabeledSpansAre("stmt1", "BarBaz",
RelatedLocationType
.NoConflict)
1404
result.AssertLabeledSpansAre("stmt1", replacement:="BarBaz", type:=
RelatedLocationType
.NoConflict)
1405
result.AssertLabeledSpansAre("stmt2", replacement:="BarBaz", type:=
RelatedLocationType
.NoConflict)
1427
result.AssertLabeledSpansAre("stmt1", replacement:="BarBaz", type:=
RelatedLocationType
.NoConflict)
1428
result.AssertLabeledSpansAre("stmt2", replacement:="BarBaz", type:=
RelatedLocationType
.NoConflict)
1450
result.AssertLabeledSpansAre("stmt1", replacement:="BarBaz", type:=
RelatedLocationType
.NoConflict)
1451
result.AssertLabeledSpansAre("stmt2", replacement:="BarBaz", type:=
RelatedLocationType
.NoConflict)
1594
result.AssertLabeledSpansAre("stmt1", replacement:="y", type:=
RelatedLocationType
.NoConflict)
1595
result.AssertLabeledSpansAre("stmt2", replacement:="y", type:=
RelatedLocationType
.NoConflict)
1625
result.AssertLabeledSpansAre("stmt1", replacement:="y", type:=
RelatedLocationType
.NoConflict)
1663
result.AssertLabeledSpansAre("stmt1", "Goo",
RelatedLocationType
.NoConflict)
1686
result.AssertLabeledSpansAre("stmt1", "y",
RelatedLocationType
.NoConflict)
2108
result.AssertLabeledSpansAre("stmt1", "bar",
RelatedLocationType
.NoConflict)
2129
result.AssertLabeledSpecialSpansAre("stmt1", "YEvent",
RelatedLocationType
.NoConflict)
2154
result.AssertLabeledSpecialSpansAre("stmt1", "YEventHandler",
RelatedLocationType
.NoConflict)
2176
result.AssertLabeledSpansAre("stmt1", "Bar",
RelatedLocationType
.NoConflict)
2200
result.AssertLabeledSpecialSpansAre("stmt1", "[Await]",
RelatedLocationType
.NoConflict)
2233
result.AssertLabeledSpansAre("stmt1", "@await",
RelatedLocationType
.NoConflict)
2265
result.AssertLabeledSpansAre("stmt1", "@await",
RelatedLocationType
.NoConflict)
2297
result.AssertLabeledSpansAre("stmt2", "@await",
RelatedLocationType
.NoConflict)
2329
result.AssertLabeledSpansAre("stmt3", "await",
RelatedLocationType
.NoConflict)
2359
result.AssertLabeledSpansAre("stmt1", "Bar",
RelatedLocationType
.NoConflict)
2389
result.AssertLabeledSpansAre("stmt1", "Bar",
RelatedLocationType
.NoConflict)
2420
result.AssertLabeledSpansAre("resolved", "XATTRIBUTe",
RelatedLocationType
.NoConflict)
2441
result.AssertLabeledSpecialSpansAre("escaped", "[Global]",
RelatedLocationType
.NoConflict)
2462
result.AssertLabeledSpansAre("escaped", "[global]",
RelatedLocationType
.NoConflict)
2504
result.AssertLabeledSpecialSpansAre("stmt1", "BazEventHandler",
RelatedLocationType
.NoConflict)
2534
result.AssertLabeledSpecialSpansAre("getaccessor", "get_Z",
RelatedLocationType
.NoConflict)
2564
result.AssertLabeledSpecialSpansAre("getaccessor", "Get_Z",
RelatedLocationType
.NoConflict)
2602
result.AssertLabeledSpecialSpansAre("getaccessor", "Get_Z",
RelatedLocationType
.NoConflict)
2603
result.AssertLabeledSpecialSpansAre("setaccessor", "Set_Z",
RelatedLocationType
.NoConflict)
2646
result.AssertLabeledSpecialSpansAre("getaccessor", "get_Z",
RelatedLocationType
.NoConflict)
2647
result.AssertLabeledSpecialSpansAre("setaccessor", "set_Z",
RelatedLocationType
.NoConflict)
2692
result.AssertLabeledSpecialSpansAre("getaccessor", "get_Z",
RelatedLocationType
.NoConflict)
2693
result.AssertLabeledSpecialSpansAre("setaccessor", "set_Z",
RelatedLocationType
.NoConflict)
2694
result.AssertLabeledSpecialSpansAre("getaccessorstmt", "get_Z",
RelatedLocationType
.NoConflict)
2695
result.AssertLabeledSpecialSpansAre("setaccessorstmt", "set_Z",
RelatedLocationType
.NoConflict)
2740
result.AssertLabeledSpecialSpansAre("getaccessor", "get_Z",
RelatedLocationType
.NoConflict)
2741
result.AssertLabeledSpecialSpansAre("setaccessor", "set_Z",
RelatedLocationType
.NoConflict)
2742
result.AssertLabeledSpecialSpansAre("getaccessorstmt", "get_Z",
RelatedLocationType
.NoConflict)
2743
result.AssertLabeledSpecialSpansAre("setaccessorstmt", "set_Z",
RelatedLocationType
.NoConflict)
2805
result.AssertLabeledSpecialSpansAre("getaccessor", "get_Z",
RelatedLocationType
.NoConflict)
2806
result.AssertLabeledSpecialSpansAre("setaccessor", "set_Z",
RelatedLocationType
.NoConflict)
2807
result.AssertLabeledSpecialSpansAre("getaccessorstmt", "get_Z",
RelatedLocationType
.NoConflict)
2808
result.AssertLabeledSpecialSpansAre("setaccessorstmt", "set_Z",
RelatedLocationType
.NoConflict)
2863
result.AssertLabeledSpecialSpansAre("getaccessor", "get_Z",
RelatedLocationType
.NoConflict)
2864
result.AssertLabeledSpecialSpansAre("setaccessor", "set_Z",
RelatedLocationType
.NoConflict)
2865
result.AssertLabeledSpecialSpansAre("getaccessorstmt", "get_Z",
RelatedLocationType
.NoConflict)
2866
result.AssertLabeledSpecialSpansAre("setaccessorstmt", "set_Z",
RelatedLocationType
.NoConflict)
2924
result.AssertLabeledSpansAre("conflict", "y",
RelatedLocationType
.NoConflict)
2925
result.AssertLabeledSpansAre("getaccessorstmt", "get_y",
RelatedLocationType
.UnresolvedConflict)
2926
result.AssertLabeledSpansAre("setaccessorstmt", "set_y",
RelatedLocationType
.UnresolvedConflict)
2927
result.AssertLabeledSpansAre("declconflict", "y",
RelatedLocationType
.UnresolvedConflict)
2928
result.AssertLabeledSpecialSpansAre("setaccessor", "set_y",
RelatedLocationType
.NoConflict)
2929
result.AssertLabeledSpecialSpansAre("getaccessor", "get_y",
RelatedLocationType
.NoConflict)
2983
result.AssertLabeledSpansAre("conflict", "y",
RelatedLocationType
.NoConflict)
2984
result.AssertLabeledSpansAre("declconflict", "y",
RelatedLocationType
.UnresolvedConflict)
2985
result.AssertLabeledSpecialSpansAre("getaccessor", "get_y",
RelatedLocationType
.NoConflict)
2986
result.AssertLabeledSpansAre("getaccessorstmt", "get_y",
RelatedLocationType
.UnresolvedConflict)
3043
result.AssertLabeledSpansAre("Stmt1", "Bar",
RelatedLocationType
.NoConflict)
3065
result.AssertLabeledSpansAre("stmt1", "M\u0061in",
RelatedLocationType
.NoConflict)
3087
result.AssertLabeledSpansAre("stmt1", "Bar",
RelatedLocationType
.NoConflict)
3115
result.AssertLabeledSpansAre("stmt1", "n",
RelatedLocationType
.NoConflict)
3116
result.AssertLabeledSpansAre("stmt2", "n",
RelatedLocationType
.NoConflict)
3154
result.AssertLabeledSpansAre("resolved", "Dim c = New N.M.D()", type:=
RelatedLocationType
.ResolvedReferenceConflict)
3228
result.AssertLabeledSpecialSpansAre("Resolve", "@if",
RelatedLocationType
.NoConflict)
3229
result.AssertLabeledSpansAre("ResolveWithoutAt", "if",
RelatedLocationType
.NoConflict)
3252
result.AssertLabeledSpansAre("Resolve", <![CDATA[[If]]]>.Value,
RelatedLocationType
.NoConflict)
3334
result.AssertLabeledSpansAre("fieldinit", "z",
RelatedLocationType
.NoConflict)
3355
result.AssertLabeledSpansAre("fieldinit", "z",
RelatedLocationType
.NoConflict)
3384
result.AssertLabeledSpansAre("stmt", "xxx",
RelatedLocationType
.NoConflict)
3499
result.AssertLabeledSpecialSpansAre("handler", "YEventHandler", type:=
RelatedLocationType
.NoConflict)
3545
result.AssertLabeledSpecialSpansAre("handler", "YEventHandler", type:=
RelatedLocationType
.NoConflict)
3591
result.AssertLabeledSpecialSpansAre("handler", "YEventHandler", type:=
RelatedLocationType
.NoConflict)
3619
result.AssertLabeledSpecialSpansAre("handler", "YEventHandler", type:=
RelatedLocationType
.NoConflict)
3647
result.AssertLabeledSpecialSpansAre("handler", "YEventHandler", type:=
RelatedLocationType
.NoConflict)
3674
result.AssertLabeledSpecialSpansAre("handler", "YEventHandler", type:=
RelatedLocationType
.NoConflict)
3730
result.AssertLabeledSpansAre("stmt", "bar",
RelatedLocationType
.NoConflict)
3779
result.AssertLabeledSpansAre("Conflict", type:=
RelatedLocationType
.UnresolvedConflict)
3802
result.AssertLabeledSpansAre("Conflict", type:=
RelatedLocationType
.UnresolvedConflict)
3826
result.AssertLabeledSpansAre("Conflict", type:=
RelatedLocationType
.UnresolvedConflict)
3850
result.AssertLabeledSpansAre("Conflict", type:=
RelatedLocationType
.UnresolvedConflict)
4032
result.AssertLabeledSpansAre("yAttribute", replacement:="yAttribute", type:=
RelatedLocationType
.NoConflict)
4033
result.AssertLabeledSpansAre("y", replacement:="y", type:=
RelatedLocationType
.NoConflict)
4058
result.AssertLabeledSpansAre("YAttribute", replacement:="YAttribute", type:=
RelatedLocationType
.NoConflict)
4059
result.AssertLabeledSpansAre("Y", replacement:="Y", type:=
RelatedLocationType
.NoConflict)
4085
result.AssertLabeledSpansAre("yAttribute", replacement:="yAttribute", type:=
RelatedLocationType
.NoConflict)
4086
result.AssertLabeledSpansAre("y", replacement:="y", type:=
RelatedLocationType
.NoConflict)
4110
result.AssertLabeledSpansAre("yAttribute", replacement:="yAttribute", type:=
RelatedLocationType
.NoConflict)
4111
result.AssertLabeledSpansAre("y", replacement:="y", type:=
RelatedLocationType
.NoConflict)
4129
result.AssertLabeledSpansAre("Conflict", type:=
RelatedLocationType
.UnresolvedConflict)
4164
result.AssertLabeledSpecialSpansAre("Resolve", "@if",
RelatedLocationType
.NoConflict)
4195
result.AssertLabeledSpecialSpansAre("Resolve1", "[If]",
RelatedLocationType
.NoConflict)
4196
result.AssertLabeledSpecialSpansAre("Resolve2", "If",
RelatedLocationType
.NoConflict)
4230
result.AssertLabeledSpansAre("Stmt1", "y",
RelatedLocationType
.NoConflict)
4231
result.AssertLabeledSpansAre("Stmt2", "y",
RelatedLocationType
.NoConflict)
4261
result.AssertLabeledSpansAre("Stmt1", "y",
RelatedLocationType
.NoConflict)
4262
result.AssertLabeledSpansAre("Stmt2", "y",
RelatedLocationType
.NoConflict)
4373
result.AssertLabeledSpecialSpansAre("Resolve", "@string",
RelatedLocationType
.NoConflict)
4395
result.AssertLabeledSpecialSpansAre("Resolve", "[String]",
RelatedLocationType
.NoConflict)
4802
result.AssertLabeledSpansAre("resolve", "global::Bar",
RelatedLocationType
.ResolvedNonReferenceConflict)
4832
result.AssertLabeledSpansAre("resolve", "Global.Bar",
RelatedLocationType
.ResolvedNonReferenceConflict)
4866
result.AssertLabeledSpansAre("resolve", "global::Bar",
RelatedLocationType
.ResolvedNonReferenceConflict)
4895
result.AssertLabeledSpansAre("resolve", "Global.Bar",
RelatedLocationType
.ResolvedNonReferenceConflict)
4931
result.AssertLabeledSpansAre("resolve", "B.D",
RelatedLocationType
.ResolvedNonReferenceConflict)
4958
result.AssertLabeledSpansAre("resolve", "B.D",
RelatedLocationType
.ResolvedNonReferenceConflict)
4989
result.AssertLabeledSpansAre("Resolve", "global::N",
RelatedLocationType
.ResolvedNonReferenceConflict)
5017
result.AssertLabeledSpansAre("Resolve", "Global.N.C",
RelatedLocationType
.ResolvedNonReferenceConflict)
5049
result.AssertLabeledSpansAre("Resolve", "P.a",
RelatedLocationType
.ResolvedReferenceConflict)
5079
result.AssertLabeledSpansAre("Resolve", "P.a",
RelatedLocationType
.ResolvedReferenceConflict)
5112
result.AssertLabeledSpansAre("Resolve", "global::N",
RelatedLocationType
.ResolvedNonReferenceConflict)
5144
result.AssertLabeledSpansAre("Resolve", "C1",
RelatedLocationType
.ResolvedNonReferenceConflict)
5177
result.AssertLabeledSpansAre("Resolve", "C1.C2",
RelatedLocationType
.ResolvedNonReferenceConflict)
5214
result.AssertLabeledSpansAre("Resolve", "global::N1",
RelatedLocationType
.ResolvedNonReferenceConflict)
5250
result.AssertLabeledSpansAre("Resolve", "Global.N1.C1.C2",
RelatedLocationType
.ResolvedNonReferenceConflict)
5282
result.AssertLabeledSpansAre("Resolve", "N.K",
RelatedLocationType
.ResolvedReferenceConflict)
5312
result.AssertLabeledSpansAre("Resolve1", "N.K",
RelatedLocationType
.ResolvedReferenceConflict)
5313
result.AssertLabeledSpansAre("Resolve2", "N.K.Goo",
RelatedLocationType
.ResolvedReferenceConflict)
5357
result.AssertLabeledSpansAre("Resolve", "global::R",
RelatedLocationType
.ResolvedReferenceConflict)
5398
result.AssertLabeledSpansAre("Resolve1", "Global.R",
RelatedLocationType
.ResolvedReferenceConflict)
5399
result.AssertLabeledSpansAre("Resolve2", "Global.R.C.Goo",
RelatedLocationType
.ResolvedReferenceConflict)
5559
result.AssertLabeledSpansAre("Resolve", "P.y",
RelatedLocationType
.ResolvedNonReferenceConflict)
5599
result.AssertLabeledSpansAre("Resolve", "N.C{int}",
RelatedLocationType
.ResolvedNonReferenceConflict)
5635
result.AssertLabeledSpansAre("Resolve", "N.C(Of Integer).D(Of Integer)",
RelatedLocationType
.ResolvedNonReferenceConflict)
5685
result.AssertLabeledSpansAre("Resolve", "global::N.C x;",
RelatedLocationType
.ResolvedNonReferenceConflict)
5945
result.AssertLabeledSpecialSpansAre("iden1", "[do]",
RelatedLocationType
.NoConflict)
6740
result.AssertLabeledSpansAre("stmt1", "Call Global.M.Bar(""1"")",
RelatedLocationType
.ResolvedReferenceConflict)
6775
result.AssertLabeledSpansAre("stmt1", "this.goo = goo;",
RelatedLocationType
.NoConflict)
6776
result.AssertLabeledSpansAre("stmt2", "this.goo = goo;",
RelatedLocationType
.ResolvedNonReferenceConflict)
6805
result.AssertLabeledSpansAre("Conflict", type:=
RelatedLocationType
.UnresolvedConflict)
6833
result.AssertLabeledSpansAre("Conflict", type:=
RelatedLocationType
.UnresolvedConflict)
6962
result.AssertLabeledSpansAre("Complex", "C.Goo{D}(X)",
RelatedLocationType
.UnresolvedConflict)
Rename\RenameEngineTests.VisualBasicConflicts.vb (128)
42
result.AssertLabeledSpansAre("Conflict", type:=
RelatedLocationType
.UnresolvedConflict)
72
result.AssertLabeledSpansAre("Conflict", type:=
RelatedLocationType
.UnresolvedConflict)
117
result.AssertLabeledSpansAre("Conflict", type:=
RelatedLocationType
.UnresolvedConflict)
143
result.AssertLabeledSpansAre("Conflict", type:=
RelatedLocationType
.UnresolvedConflict)
198
result.AssertLabeledSpansAre("conflict2", "Outer(Sub(y As String) Inner(Sub(x) x.Ex(), y), 0)", type:=
RelatedLocationType
.ResolvedNonReferenceConflict)
199
result.AssertLabeledSpansAre("conflict1", "Outer(Sub(y As String) Inner(Sub(x) x.Ex(), y), 0)", type:=
RelatedLocationType
.ResolvedNonReferenceConflict)
259
result.AssertLabeledSpansAre("conflict2", outputResult, type:=
RelatedLocationType
.ResolvedNonReferenceConflict)
260
result.AssertLabeledSpansAre("conflict1", outputResult, type:=
RelatedLocationType
.ResolvedNonReferenceConflict)
324
result.AssertLabeledSpansAre("conflict0", outputResult, type:=
RelatedLocationType
.NoConflict)
325
result.AssertLabeledSpansAre("conflict2", outputResult, type:=
RelatedLocationType
.ResolvedNonReferenceConflict)
326
result.AssertLabeledSpansAre("conflict1", outputResult, type:=
RelatedLocationType
.ResolvedNonReferenceConflict)
390
result.AssertLabeledSpansAre("conflict0", outputResult, type:=
RelatedLocationType
.NoConflict)
391
result.AssertLabeledSpansAre("conflict2", outputResult, type:=
RelatedLocationType
.ResolvedNonReferenceConflict)
392
result.AssertLabeledSpansAre("conflict1", outputResult, type:=
RelatedLocationType
.ResolvedNonReferenceConflict)
426
result.AssertLabeledSpansAre("conflict2", type:=
RelatedLocationType
.UnresolvedConflict)
427
result.AssertLabeledSpansAre("conflict1", type:=
RelatedLocationType
.UnresolvedConflict)
428
result.AssertLabeledSpansAre("resolve", "Program.z = Nothing", type:=
RelatedLocationType
.ResolvedNonReferenceConflict)
461
result.AssertLabeledSpansAre("stmt1", "Call Global.M.Bar(""1"")",
RelatedLocationType
.ResolvedReferenceConflict)
497
result.AssertLabeledSpansAre("stmt1", "CC.Bar(Of Integer)(1)",
RelatedLocationType
.ResolvedReferenceConflict)
530
result.AssertLabeledSpansAre("stmt1", "Dim y = F(Of Integer)(x)",
RelatedLocationType
.ResolvedNonReferenceConflict)
562
result.AssertLabeledSpansAre("stmt1", "F(Of Integer)(Function(a) a)",
RelatedLocationType
.ResolvedNonReferenceConflict)
596
result.AssertLabeledSpansAre("stmt1", "C.Bar(Of Integer)(1)",
RelatedLocationType
.ResolvedReferenceConflict)
623
result.AssertLabeledSpansAre("stmt1", "Goo(Of String)(x)",
RelatedLocationType
.ResolvedNonReferenceConflict)
650
result.AssertLabeledSpansAre("stmt1", "Goo(Of T)",
RelatedLocationType
.ResolvedNonReferenceConflict)
684
result.AssertLabeledSpansAre("stmt1", "Call Global.M.Bar(Of Integer)(1)",
RelatedLocationType
.ResolvedReferenceConflict)
711
result.AssertLabeledSpansAre("stmt1", "Goo(Of C(Of Integer))(x)",
RelatedLocationType
.ResolvedNonReferenceConflict)
740
result.AssertLabeledSpansAre("stmt1", "Goo(Of D(Of Integer))(x)",
RelatedLocationType
.ResolvedNonReferenceConflict)
767
result.AssertLabeledSpansAre("stmt1", "Goo(Of Object)(x)",
RelatedLocationType
.ResolvedNonReferenceConflict)
795
result.AssertLabeledSpansAre("stmt1", "Goo(Of Integer())(x)",
RelatedLocationType
.ResolvedNonReferenceConflict)
823
result.AssertLabeledSpansAre("stmt1", "Goo(Of Integer(,))(x)",
RelatedLocationType
.ResolvedNonReferenceConflict)
852
result.AssertLabeledSpansAre("stmt1", "Method(Goo(Of Integer)(1))",
RelatedLocationType
.ResolvedNonReferenceConflict)
881
result.AssertLabeledSpansAre("stmt1", "Dim x As New C(Goo(Of Integer)(1))",
RelatedLocationType
.ResolvedNonReferenceConflict)
908
result.AssertLabeledSpansAre("stmt1", "x.Goo(Of Integer)(1)",
RelatedLocationType
.ResolvedNonReferenceConflict)
935
result.AssertLabeledSpansAre("stmt1", "Dim x = New GooDel(Of String)(AddressOf Goo(Of String))",
RelatedLocationType
.ResolvedNonReferenceConflict)
962
result.AssertLabeledSpansAre("stmt1", "Dim x = New GooDel(AddressOf Goo(Of String))",
RelatedLocationType
.ResolvedNonReferenceConflict)
989
result.AssertLabeledSpansAre("stmt1", "Goo(Of Integer(), C)(x, New C())",
RelatedLocationType
.ResolvedNonReferenceConflict)
1025
result.AssertLabeledSpansAre("stmt1", "MyBase.Goo(x)",
RelatedLocationType
.ResolvedNonReferenceConflict)
1048
result.AssertLabeledSpansAre("stmt1", "Me.goo = goo",
RelatedLocationType
.NoConflict)
1049
result.AssertLabeledSpansAre("stmt2", "Me.goo = goo",
RelatedLocationType
.ResolvedNonReferenceConflict)
1071
result.AssertLabeledSpecialSpansAre("Escape", "[if]",
RelatedLocationType
.NoConflict)
1074
result.AssertLabeledSpecialSpansAre("stmt1", "Me.[if] = [if]",
RelatedLocationType
.NoConflict)
1075
result.AssertLabeledSpecialSpansAre("stmt2", "Me.[if] = [if]",
RelatedLocationType
.ResolvedNonReferenceConflict)
1097
result.AssertLabeledSpecialSpansAre("escape", "[if]",
RelatedLocationType
.NoConflict)
1098
result.AssertLabeledSpansAre("stmt1", "Me.if = [if]",
RelatedLocationType
.ResolvedReferenceConflict)
1120
result.AssertLabeledSpansAre("stmt1", "GooClass.goo = goo",
RelatedLocationType
.NoConflict)
1121
result.AssertLabeledSpansAre("stmt2", "GooClass.goo = goo",
RelatedLocationType
.ResolvedNonReferenceConflict)
1143
result.AssertLabeledSpansAre("stmt1", "GooModule.goo = goo",
RelatedLocationType
.NoConflict)
1144
result.AssertLabeledSpansAre("stmt2", "GooModule.goo = goo",
RelatedLocationType
.ResolvedNonReferenceConflict)
1174
result.AssertLabeledSpansAre("Resolve", "X.B",
RelatedLocationType
.ResolvedReferenceConflict)
1204
result.AssertLabeledSpansAre("Resolve", "X.A",
RelatedLocationType
.ResolvedNonReferenceConflict)
1231
result.AssertLabeledSpansAre("stmt1", "Class",
RelatedLocationType
.NoConflict)
1232
result.AssertLabeledSpecialSpansAre("TypeSuffix", "Class$",
RelatedLocationType
.NoConflict)
1264
result.AssertLabeledSpansAre("escaped", "[GooSelect]",
RelatedLocationType
.NoConflict)
1292
result.AssertLabeledSpansAre("Unescaped", "New$", type:=
RelatedLocationType
.NoConflict)
1293
result.AssertLabeledSpansAre("stmt1", "Dim x$ = Me.[New].ToLower", type:=
RelatedLocationType
.NoConflict)
1344
result.AssertLabeledSpansAre("stmt1", "Dim x As A(Of Integer).B", type:=
RelatedLocationType
.ResolvedNonReferenceConflict)
1365
result.AssertLabeledSpansAre("stmt1", "BarBaz",
RelatedLocationType
.NoConflict)
1386
result.AssertLabeledSpansAre("stmt1", "BarBaz",
RelatedLocationType
.NoConflict)
1416
result.AssertLabeledSpansAre("Replacement", "N.X.A", type:=
RelatedLocationType
.ResolvedNonReferenceConflict)
1447
result.AssertLabeledSpansAre("Resolved", type:=
RelatedLocationType
.ResolvedReferenceConflict)
1479
result.AssertLabeledSpansAre("stmt1", "X.Bar = 1",
RelatedLocationType
.ResolvedReferenceConflict)
1501
result.AssertLabeledSpansAre("Conflict", type:=
RelatedLocationType
.UnresolvedConflict)
1526
result.AssertLabeledSpansAre("stmt1", "j",
RelatedLocationType
.NoConflict)
1597
result.AssertLabeledSpansAre("Special", "Special", type:=
RelatedLocationType
.NoConflict)
1620
result.AssertLabeledSpansAre("Special", "Special", type:=
RelatedLocationType
.NoConflict)
1647
result.AssertLabeledSpansAre("stmt1", "NewMethod1",
RelatedLocationType
.NoConflict)
1670
result.AssertLabeledSpansAre("stmt1", "barbaz",
RelatedLocationType
.NoConflict)
1671
result.AssertLabeledSpansAre("stmt2", "barbaz",
RelatedLocationType
.NoConflict)
1697
result.AssertLabeledSpansAre("stmt1", "goo", type:=
RelatedLocationType
.NoConflict)
1698
result.AssertLabeledSpansAre("stmt1_2", type:=
RelatedLocationType
.UnresolvedConflict)
1699
result.AssertLabeledSpansAre("stmt2", type:=
RelatedLocationType
.UnresolvedConflict)
1740
result.AssertLabeledSpansAre("stmt1", "barbaz",
RelatedLocationType
.NoConflict)
1764
result.AssertLabeledSpansAre("Resolve", "Global.A",
RelatedLocationType
.ResolvedNonReferenceConflict)
1787
result.AssertLabeledSpansAre("stmt1", "ReDim [Preserve].Bar(0)",
RelatedLocationType
.ResolvedReferenceConflict)
1814
result.AssertLabeledSpansAre("Resolve", "M.X",
RelatedLocationType
.ResolvedNonReferenceConflict)
1847
result.AssertLabeledSpecialSpansAre("Escape", "[New]",
RelatedLocationType
.NoConflict)
1848
result.AssertLabeledSpansAre("Resolve", "Goo(Sub(x) x.New())",
RelatedLocationType
.ResolvedReferenceConflict)
1849
result.AssertLabeledSpansAre("ResolvedNonReference", "Goo(Sub(x) x.New())",
RelatedLocationType
.ResolvedNonReferenceConflict)
1878
result.AssertLabeledSpecialSpansAre("resolve", "Z",
RelatedLocationType
.ResolvedReferenceConflict)
1964
result.AssertLabeledSpansAre("Resolve", "X.B",
RelatedLocationType
.ResolvedReferenceConflict)
1982
result.AssertLabeledSpecialSpansAre("Resolve", compareText,
RelatedLocationType
.NoConflict)
2009
result.AssertLabeledSpansAre("Resolve1", "System.Attribute",
RelatedLocationType
.ResolvedNonReferenceConflict)
2010
result.AssertLabeledSpansAre("Resolve2", "Attribute",
RelatedLocationType
.NoConflict)
2054
result.AssertLabeledSpansAre("escaped", "[Rem]",
RelatedLocationType
.NoConflict)
2076
result.AssertLabeledSpansAre("unreduced", "Attribute",
RelatedLocationType
.NoConflict)
2077
result.AssertLabeledSpansAre("resolved", "System.Attribute",
RelatedLocationType
.ResolvedNonReferenceConflict)
2105
result.AssertLabeledSpansAre("resolved", "X.B",
RelatedLocationType
.ResolvedNonReferenceConflict)
2133
result.AssertLabeledSpansAre("resolved", "X.B",
RelatedLocationType
.ResolvedNonReferenceConflict)
2160
result.AssertLabeledSpansAre("resolved", "M.Goo",
RelatedLocationType
.ResolvedNonReferenceConflict)
2182
result.AssertLabeledSpansAre("resolved", "System.Attribute",
RelatedLocationType
.ResolvedNonReferenceConflict)
2212
result.AssertLabeledSpansAre("resolved", "N.X.Goo()",
RelatedLocationType
.ResolvedNonReferenceConflict)
2245
result.AssertLabeledSpansAre("resolved", "X.C",
RelatedLocationType
.ResolvedNonReferenceConflict)
2274
result.AssertLabeledSpansAre("invalid", "B\u0061r",
RelatedLocationType
.UnresolvedConflict)
2305
result.AssertLabeledSpansAre("Stmt1", "Goo",
RelatedLocationType
.NoConflict)
2306
result.AssertLabeledSpansAre("Stmt2", "Goo",
RelatedLocationType
.NoConflict)
2307
result.AssertLabeledSpansAre("Resolve", "Call M.Goo()",
RelatedLocationType
.ResolvedNonReferenceConflict)
2343
result.AssertLabeledSpansAre("Resolve", "M.C.Goo()",
RelatedLocationType
.ResolvedNonReferenceConflict)
2344
result.AssertLabeledSpansAre("Stmt1", "C",
RelatedLocationType
.NoConflict)
2380
result.AssertLabeledSpansAre("Resolve1", "N.M.K.Goo()",
RelatedLocationType
.ResolvedNonReferenceConflict)
2381
result.AssertLabeledSpansAre("Resolve2", "N.M.L.Goo()",
RelatedLocationType
.ResolvedReferenceConflict)
2411
result.AssertLabeledSpansAre("Resolve", "Global.M",
RelatedLocationType
.ResolvedNonReferenceConflict)
2441
result.AssertLabeledSpansAre("Resolve", "N.M.x",
RelatedLocationType
.ResolvedNonReferenceConflict)
2491
result.AssertLabeledSpansAre("resolved", "Outer(Sub(y As String) Inner(Sub(x) x.Ex(), y), 0)",
RelatedLocationType
.ResolvedNonReferenceConflict)
2518
result.AssertLabeledSpansAre("resolve1", "Global.NN.C",
RelatedLocationType
.ResolvedNonReferenceConflict)
2519
result.AssertLabeledSpansAre("resolve2", "Global.NN",
RelatedLocationType
.ResolvedNonReferenceConflict)
2545
result.AssertLabeledSpansAre("resolve", "Global.N",
RelatedLocationType
.ResolvedNonReferenceConflict)
2574
result.AssertLabeledSpansAre("resolve", "E.Bar(E.Bar(Me,1),2)",
RelatedLocationType
.ResolvedReferenceConflict)
2608
result.AssertLabeledSpansAre("Resolve", "N",
RelatedLocationType
.ResolvedNonReferenceConflict)
2639
result.AssertLabeledSpansAre("Resolve", "A.D",
RelatedLocationType
.ResolvedNonReferenceConflict)
2670
result.AssertLabeledSpansAre("DeclConflict", type:=
RelatedLocationType
.UnresolvedConflict)
2671
result.AssertLabeledSpansAre("unresolved1", type:=
RelatedLocationType
.UnresolvedConflict)
2672
result.AssertLabeledSpansAre("unresolved2", type:=
RelatedLocationType
.UnresolvedConflict)
2695
result.AssertLabeledSpecialSpansAre("backingfield", "_Y", type:=
RelatedLocationType
.NoConflict)
2720
result.AssertLabeledSpansAre("Conflict", type:=
RelatedLocationType
.UnresolvedConflict)
2765
result.AssertLabeledSpansAre("ref", "Dim x = NameOf(C.zoo)",
RelatedLocationType
.ResolvedNonReferenceConflict)
2787
result.AssertLabeledSpansAre("ref", "Dim x = NameOf(C.zoo)",
RelatedLocationType
.ResolvedNonReferenceConflict)
2809
result.AssertLabeledSpansAre("ref", "Dim x = NameOf(C.zoo)",
RelatedLocationType
.ResolvedNonReferenceConflict)
2829
result.AssertLabeledSpansAre("conflict", "C",
RelatedLocationType
.UnresolvableConflict)
2849
result.AssertLabeledSpansAre("conflict", "I",
RelatedLocationType
.UnresolvableConflict)
2869
result.AssertLabeledSpansAre("conflict", "N",
RelatedLocationType
.UnresolvableConflict)
2889
result.AssertLabeledSpansAre("conflict", "C",
RelatedLocationType
.UnresolvableConflict)
2951
result.AssertLabeledSpansAre("conflict", "Test",
RelatedLocationType
.UnresolvedConflict)
2970
result.AssertLabeledSpansAre("conflict", "C.D",
RelatedLocationType
.UnresolvedConflict)
2995
result.AssertLabeledSpansAre("conflict", renameTo,
RelatedLocationType
.UnresolvedConflict)
3039
result.AssertLabeledSpansAre("Conflict", type:=
RelatedLocationType
.UnresolvedConflict)
3068
result.AssertLabeledSpansAre("Conflict0", replacement:="Return P(CObj(""""))", type:=
RelatedLocationType
.ResolvedNonReferenceConflict)
3097
result.AssertLabeledSpansAre("Conflict", type:=
RelatedLocationType
.UnresolvedConflict)
3115
result.AssertLabeledSpansAre("current", type:=
RelatedLocationType
.NoConflict)
Rename\RenameNonRenameableSymbols.vb (2)
53
result.AssertLabeledSpansAre("conflict", "proper",
RelatedLocationType
.UnresolvedConflict)
74
result.AssertLabeledSpansAre("Invalid", "!x",
RelatedLocationType
.UnresolvedConflict)
Rename\VisualBasic\AliasTests.vb (8)
104
result.AssertLabeledSpansAre("stmt1", "Dim f As C3 = Nothing",
RelatedLocationType
.ResolvedReferenceConflict)
291
result.AssertLabeledSpansAre("Conflict", "Something",
RelatedLocationType
.UnresolvedConflict)
324
result.AssertLabeledSpansAre("short", "Bar",
RelatedLocationType
.NoConflict)
325
result.AssertLabeledSpansAre("long", "BarAttribute",
RelatedLocationType
.NoConflict)
359
result.AssertLabeledSpansAre("short", "Bar",
RelatedLocationType
.NoConflict)
360
result.AssertLabeledSpansAre("long", "BarAttribute",
RelatedLocationType
.NoConflict)
394
result.AssertLabeledSpansAre("short", "Obsolete", type:=
RelatedLocationType
.ResolvedReferenceConflict)
395
result.AssertLabeledSpansAre("long", "Obsolete", type:=
RelatedLocationType
.ResolvedReferenceConflict)
Rename\VisualBasic\CallSiteConflictResolutionTests.vb (4)
45
result.AssertLabeledSpansAre("Resolved", type:=
RelatedLocationType
.ResolvedReferenceConflict)
77
result.AssertLabeledSpansAre("Resolved", type:=
RelatedLocationType
.ResolvedReferenceConflict)
109
result.AssertLabeledSpansAre("Resolved", type:=
RelatedLocationType
.ResolvedReferenceConflict)
134
result.AssertLabeledSpansAre("stmt1", "Program.F()",
RelatedLocationType
.ResolvedNonReferenceConflict)
Rename\VisualBasic\DeclarationConflictTests.vb (82)
33
result.AssertLabeledSpansAre("Conflict", type:=
RelatedLocationType
.UnresolvedConflict)
53
result.AssertLabeledSpansAre("Conflict", type:=
RelatedLocationType
.UnresolvedConflict)
75
result.AssertLabeledSpansAre("Conflict", type:=
RelatedLocationType
.UnresolvedConflict)
94
result.AssertLabeledSpansAre("Conflict", type:=
RelatedLocationType
.UnresolvedConflict)
136
result.AssertLabeledSpansAre("stmt1", "j", type:=
RelatedLocationType
.NoConflict)
137
result.AssertLabeledSpansAre("Conflict", type:=
RelatedLocationType
.UnresolvedConflict)
157
result.AssertLabeledSpansAre("stmt1", "args", type:=
RelatedLocationType
.NoConflict)
158
result.AssertLabeledSpansAre("Conflict", type:=
RelatedLocationType
.UnresolvedConflict)
178
result.AssertLabeledSpansAre("stmt1", type:=
RelatedLocationType
.NoConflict)
179
result.AssertLabeledSpansAre("Conflict", type:=
RelatedLocationType
.UnresolvedConflict)
200
result.AssertLabeledSpansAre("stmt1", type:=
RelatedLocationType
.NoConflict)
201
result.AssertLabeledSpansAre("Conflict", type:=
RelatedLocationType
.UnresolvedConflict)
223
result.AssertLabeledSpansAre("stmt1", "c", type:=
RelatedLocationType
.NoConflict)
224
result.AssertLabeledSpansAre("Conflict", type:=
RelatedLocationType
.UnresolvedConflict)
244
result.AssertLabeledSpansAre("stmt", "c",
RelatedLocationType
.NoConflict)
245
result.AssertLabeledSpansAre("Conflict", type:=
RelatedLocationType
.UnresolvedConflict)
265
result.AssertLabeledSpansAre("fieldinit", "y",
RelatedLocationType
.NoConflict)
290
result.AssertLabeledSpansAre("Conflict", type:=
RelatedLocationType
.UnresolvedConflict)
313
result.AssertLabeledSpansAre("Conflict", type:=
RelatedLocationType
.UnresolvedConflict)
336
result.AssertLabeledSpansAre("Conflict", type:=
RelatedLocationType
.UnresolvedConflict)
380
result.AssertLabeledSpansAre("Conflict1", type:=
RelatedLocationType
.UnresolvedConflict)
381
result.AssertLabeledSpansAre("Conflict2", type:=
RelatedLocationType
.UnresolvedConflict)
409
result.AssertLabeledSpansAre("Conflict", "Write",
RelatedLocationType
.UnresolvedConflict)
435
result.AssertLabeledSpansAre("Conflict", "A",
RelatedLocationType
.UnresolvedConflict)
462
result.AssertLabeledSpansAre("conflict", "X",
RelatedLocationType
.UnresolvedConflict)
489
result.AssertLabeledSpansAre("conflict1", "Something",
RelatedLocationType
.UnresolvedConflict)
490
result.AssertLabeledSpansAre("conflict2", "NS1",
RelatedLocationType
.ResolvedNonReferenceConflict)
491
result.AssertLabeledSpansAre("conflict3", "Something",
RelatedLocationType
.ResolvedNonReferenceConflict)
492
result.AssertLabeledSpansAre("noconflict", "Something",
RelatedLocationType
.NoConflict)
517
result.AssertLabeledSpansAre("declconflict", type:=
RelatedLocationType
.UnresolvedConflict)
568
result.AssertLabeledSpansAre("declconflict", type:=
RelatedLocationType
.UnresolvedConflict)
593
result.AssertLabeledSpansAre("declconflict", type:=
RelatedLocationType
.UnresolvedConflict)
612
result.AssertLabeledSpansAre("stmt1", "Console.WriteLine(Global.X.x)", type:=
RelatedLocationType
.ResolvedReferenceConflict)
642
result.AssertLabeledSpansAre("conflict", type:=
RelatedLocationType
.UnresolvedConflict)
671
result.AssertLabeledSpansAre("ctrlvar", "g", type:=
RelatedLocationType
.NoConflict)
672
result.AssertLabeledSpansAre("conflict", type:=
RelatedLocationType
.UnresolvedConflict)
673
result.AssertLabeledSpansAre("broken", type:=
RelatedLocationType
.NoConflict)
674
result.AssertLabeledSpansAre("stmt", "g", type:=
RelatedLocationType
.NoConflict)
703
result.AssertLabeledSpansAre("ctrlvar", "g", type:=
RelatedLocationType
.NoConflict)
704
result.AssertLabeledSpansAre("conflict", type:=
RelatedLocationType
.UnresolvedConflict)
705
result.AssertLabeledSpansAre("broken", type:=
RelatedLocationType
.NoConflict)
706
result.AssertLabeledSpansAre("stmt", "g", type:=
RelatedLocationType
.NoConflict)
736
result.AssertLabeledSpansAre("stmt1", "g", type:=
RelatedLocationType
.NoConflict)
737
result.AssertLabeledSpansAre("ctrlvar", "g", type:=
RelatedLocationType
.NoConflict)
738
result.AssertLabeledSpansAre("conflict", type:=
RelatedLocationType
.UnresolvedConflict)
739
result.AssertLabeledSpansAre("broken", type:=
RelatedLocationType
.NoConflict)
740
result.AssertLabeledSpansAre("stmt2", "g", type:=
RelatedLocationType
.NoConflict)
770
result.AssertLabeledSpansAre("ctrlvar", "g", type:=
RelatedLocationType
.NoConflict)
771
result.AssertLabeledSpansAre("query", "g", type:=
RelatedLocationType
.NoConflict)
772
result.AssertLabeledSpansAre("stmt", "g", type:=
RelatedLocationType
.NoConflict)
801
result.AssertLabeledSpansAre("usingstmt", "c", type:=
RelatedLocationType
.NoConflict)
802
result.AssertLabeledSpansAre("declconflict", type:=
RelatedLocationType
.UnresolvedConflict)
803
result.AssertLabeledSpansAre("query", type:=
RelatedLocationType
.NoConflict)
804
result.AssertLabeledSpansAre("stmt", "c", type:=
RelatedLocationType
.NoConflict)
831
result.AssertLabeledSpansAre("usingstmt", "v4", type:=
RelatedLocationType
.NoConflict)
832
result.AssertLabeledSpansAre("declconflict", type:=
RelatedLocationType
.UnresolvedConflict)
833
result.AssertLabeledSpansAre("query", type:=
RelatedLocationType
.NoConflict)
834
result.AssertLabeledSpansAre("stmt", "v4", type:=
RelatedLocationType
.NoConflict)
861
result.AssertLabeledSpansAre("usingstmt", "d", type:=
RelatedLocationType
.NoConflict)
862
result.AssertLabeledSpansAre("declconflict", type:=
RelatedLocationType
.UnresolvedConflict)
863
result.AssertLabeledSpansAre("query", type:=
RelatedLocationType
.NoConflict)
864
result.AssertLabeledSpansAre("stmt", "d", type:=
RelatedLocationType
.NoConflict)
891
result.AssertLabeledSpansAre("catchstmt", "y", type:=
RelatedLocationType
.NoConflict)
892
result.AssertLabeledSpansAre("declconflict", type:=
RelatedLocationType
.UnresolvedConflict)
909
result.AssertLabeledSpansAre("declconflict", type:=
RelatedLocationType
.UnresolvedConflict)
928
result.AssertLabeledSpansAre("declconflict", type:=
RelatedLocationType
.UnresolvedConflict)
947
result.AssertLabeledSpansAre("declconflict", type:=
RelatedLocationType
.UnresolvedConflict)
966
result.AssertLabeledSpansAre("declconflict", type:=
RelatedLocationType
.UnresolvedConflict)
984
result.AssertLabeledSpansAre("declconflict", type:=
RelatedLocationType
.UnresolvedConflict)
1011
result.AssertLabeledSpansAre("stmt1", type:=
RelatedLocationType
.NoConflict)
1012
result.AssertLabeledSpansAre("stmt2", type:=
RelatedLocationType
.NoConflict)
1013
result.AssertLabeledSpansAre("stmt3", type:=
RelatedLocationType
.NoConflict)
1014
result.AssertLabeledSpansAre("declconflict", type:=
RelatedLocationType
.UnresolvedConflict)
1056
result.AssertLabeledSpansAre("possibleImplicitConflict", type:=
RelatedLocationType
.UnresolvedConflict)
1157
result.AssertLabeledSpansAre("first", "Method",
RelatedLocationType
.NoConflict)
1158
result.AssertLabeledSpansAre("second", "C.Method", type:=
RelatedLocationType
.ResolvedReferenceConflict)
1185
result.AssertLabeledSpansAre("parameter0", "y",
RelatedLocationType
.NoConflict)
1186
result.AssertLabeledSpansAre("parameter1", "y",
RelatedLocationType
.NoConflict)
1187
result.AssertLabeledSpansAre("local0", type:=
RelatedLocationType
.UnresolvedConflict)
1210
result.AssertLabeledSpansAre("class0", "Random",
RelatedLocationType
.ResolvedReferenceConflict)
1211
result.AssertLabeledSpansAre("class1", "Random",
RelatedLocationType
.ResolvedReferenceConflict)
1212
result.AssertLabeledSpansAre("classConflict", "System.Random", type:=
RelatedLocationType
.ResolvedNonReferenceConflict)
Rename\VisualBasic\EscapingTests.vb (41)
34
result.AssertLabeledSpecialSpansAre("Escape", "[If]",
RelatedLocationType
.NoConflict)
35
result.AssertLabeledSpecialSpansAre("stmt1", "[If]",
RelatedLocationType
.NoConflict)
55
result.AssertLabeledSpecialSpansAre("Escape", "[If]",
RelatedLocationType
.NoConflict)
56
result.AssertLabeledSpansAre("stmt1", "If",
RelatedLocationType
.NoConflict)
82
result.AssertLabeledSpecialSpansAre("Escape", "[If]",
RelatedLocationType
.NoConflict)
108
result.AssertLabeledSpecialSpansAre("Escape", "[Assembly]",
RelatedLocationType
.NoConflict)
134
result.AssertLabeledSpecialSpansAre("Escape", "[Module]",
RelatedLocationType
.NoConflict)
162
result.AssertLabeledSpecialSpansAre("Escape", "[New]",
RelatedLocationType
.NoConflict)
163
result.AssertLabeledSpecialSpansAre("stmt1", "[New]",
RelatedLocationType
.NoConflict)
183
result.AssertLabeledSpecialSpansAre("Escape", "[Rem]",
RelatedLocationType
.NoConflict)
184
result.AssertLabeledSpecialSpansAre("stmt1", "[Rem]",
RelatedLocationType
.NoConflict)
209
result.AssertLabeledSpecialSpansAre("stmt1", "[Mid]",
RelatedLocationType
.NoConflict)
234
result.AssertLabeledSpecialSpansAre("stmt1", "[mId]",
RelatedLocationType
.NoConflict)
259
result.AssertLabeledSpansAre("escaped", "[Mid]",
RelatedLocationType
.NoConflict)
260
result.AssertLabeledSpansAre("stmt", "Mid$",
RelatedLocationType
.NoConflict)
285
result.AssertLabeledSpansAre("unresolved", "Mid$",
RelatedLocationType
.UnresolvedConflict)
286
result.AssertLabeledSpansAre("unresolved2", "Mid$$",
RelatedLocationType
.UnresolvedConflict)
307
result.AssertLabeledSpansAre("stmt1", "preserve",
RelatedLocationType
.NoConflict)
308
result.AssertLabeledSpansAre("stmt2", "[preserve]",
RelatedLocationType
.NoConflict)
333
result.AssertLabeledSpecialSpansAre("Escape", "[Rem]",
RelatedLocationType
.NoConflict)
334
result.AssertLabeledSpansAre("Resolve", "M.[Rem]",
RelatedLocationType
.ResolvedReferenceConflict)
359
result.AssertLabeledSpecialSpansAre("Escape", "[New]",
RelatedLocationType
.NoConflict)
360
result.AssertLabeledSpansAre("Resolve", "M.[New]",
RelatedLocationType
.ResolvedReferenceConflict)
385
result.AssertLabeledSpecialSpansAre("Escaped", "[Rem]",
RelatedLocationType
.NoConflict)
386
result.AssertLabeledSpansAre("Replacement", "Me.[Rem]()",
RelatedLocationType
.ResolvedReferenceConflict)
411
result.AssertLabeledSpecialSpansAre("Escape", "[If]",
RelatedLocationType
.NoConflict)
412
result.AssertLabeledSpansAre("Resolve", "Me.If",
RelatedLocationType
.ResolvedReferenceConflict)
433
result.AssertLabeledSpansAre("stmt", "[REM]",
RelatedLocationType
.NoConflict)
454
result.AssertLabeledSpansAre("stmt", "[REM]",
RelatedLocationType
.NoConflict)
455
result.AssertLabeledSpansAre("conflict", "REM$",
RelatedLocationType
.UnresolvedConflict)
475
result.AssertLabeledSpansAre("First", "[String]",
RelatedLocationType
.NoConflict)
513
result.AssertLabeledSpecialSpansAre("escaped", "[Group]",
RelatedLocationType
.NoConflict)
535
result.AssertLabeledSpecialSpansAre("stmt1", "[Mid]",
RelatedLocationType
.NoConflict)
556
result.AssertLabeledSpansAre("typechar", "Rem%",
RelatedLocationType
.UnresolvedConflict)
557
result.AssertLabeledSpansAre("escaped", "[Rem]",
RelatedLocationType
.NoConflict)
577
result.AssertLabeledSpansAre("Stmt1", "y",
RelatedLocationType
.NoConflict)
578
result.AssertLabeledSpansAre("Stmt2", "y",
RelatedLocationType
.NoConflict)
598
result.AssertLabeledSpansAre("Stmt1", "y",
RelatedLocationType
.NoConflict)
599
result.AssertLabeledSpansAre("Stmt2", "y",
RelatedLocationType
.NoConflict)
623
result.AssertLabeledSpansAre("decl", "C",
RelatedLocationType
.NoConflict)
624
result.AssertLabeledSpansAre("stmt1", "C",
RelatedLocationType
.NoConflict)
Rename\VisualBasic\ImplicitReferenceConflictTests.vb (2)
50
result.AssertLabeledSpansAre("foreachconflict", type:=
RelatedLocationType
.UnresolvedConflict)
178
result.AssertLabeledSpansAre("foreachconflict", type:=
RelatedLocationType
.UnresolvedConflict)
Rename\VisualBasic\InvalidIdentifierTests.vb (2)
33
result.AssertLabeledSpansAre("Invalid", "`",
RelatedLocationType
.UnresolvedConflict)
52
result.AssertLabeledSpansAre("Invalid", "C[",
RelatedLocationType
.UnresolvedConflict)
Rename\VisualBasic\QualificationTests.vb (4)
40
result.AssertLabeledSpansAre("stmt1", "Dim y = X._Y()",
RelatedLocationType
.ResolvedNonReferenceConflict)
66
result.AssertLabeledSpansAre("def", "list",
RelatedLocationType
.NoConflict)
67
result.AssertLabeledSpansAre("stmt1", "For Each i In Me.list.OfType(Of Integer)()",
RelatedLocationType
.ResolvedReferenceConflict)
68
result.AssertLabeledSpansAre("stmt2", "Me.list = list.ToList()",
RelatedLocationType
.ResolvedReferenceConflict)
Microsoft.CodeAnalysis.Workspaces (21)
Rename\ConflictEngine\ConflictResolver.cs (4)
195
implicitUsageConflict.SourceSpan, conflictResolution.OldSolution.GetRequiredDocument(implicitUsageConflict.SourceTree).Id,
RelatedLocationType
.UnresolvableConflict));
219
implicitConflict.SourceSpan, conflictResolution.OldSolution.GetRequiredDocument(implicitConflict.SourceTree).Id,
RelatedLocationType
.UnresolvableConflict));
312
languageConflict.SourceSpan, conflictResolution.OldSolution.GetRequiredDocument(languageConflict.SourceTree).Id,
RelatedLocationType
.UnresolvableConflict));
339
oldLocation.SourceSpan, conflictResolution.OldSolution.GetRequiredDocument(oldLocation.SourceTree).Id,
RelatedLocationType
.UnresolvableConflict));
Rename\ConflictEngine\ConflictResolver.Session.cs (14)
87
Debug.Assert(location.ComplexifiedTargetSpan.Contains(location.ConflictCheckSpan) || location.Type ==
RelatedLocationType
.UnresolvableConflict);
165
.Where(loc => documentIdsThatGetsAnnotatedAndRenamed.Contains(loc.DocumentId) && loc.Type ==
RelatedLocationType
.PossiblyResolvableConflict && loc.IsReference)
179
.Where(loc => documentIdsThatGetsAnnotatedAndRenamed.Contains(loc.DocumentId) && loc.Type ==
RelatedLocationType
.PossiblyResolvableConflict)
192
.Where(l => (l.Type &
RelatedLocationType
.UnresolvedConflict) != 0)
231
if (relatedLocation.Type ==
RelatedLocationType
.PossiblyResolvableConflict)
232
conflictResolution.RelatedLocations[i] = relatedLocation.WithType(
RelatedLocationType
.UnresolvedConflict);
282
if (conflictResolution.ReplacementTextValid && conflictResolution.RelatedLocations.All(loc => (loc.Type &
RelatedLocationType
.UnresolvableConflict) == 0))
332
annotation.OriginalSpan, documentId,
RelatedLocationType
.UnresolvedConflict));
401
complexifiedLocationSpanForThisDocument.Contains(originalLocation) ?
RelatedLocationType
.ResolvedReferenceConflict :
RelatedLocationType
.NoConflict,
412
RelatedLocationType
.ResolvedNonReferenceConflict,
424
complexifiedTarget != null ?
RelatedLocationType
.PossiblyResolvableConflict :
RelatedLocationType
.UnresolvableConflict,
461
return conflictResolution.RelatedLocations.Any(r => r.Type ==
RelatedLocationType
.PossiblyResolvableConflict);
Rename\ConflictEngine\RelatedLocation.cs (3)
29
public readonly
RelatedLocationType
Type;
41
public RelatedLocation(TextSpan conflictCheckSpan, DocumentId documentId,
RelatedLocationType
type, bool isReference = false, TextSpan complexifiedTargetSpan = default)
50
public RelatedLocation WithType(
RelatedLocationType
type)