2 writes to DestinationName
Microsoft.VisualStudio.LanguageServices (2)
MoveStaticMembers\MoveStaticMembersDialogViewModel.cs (2)
60DestinationName = new(PrependedNamespace + SearchText); 64DestinationName = foundItem;
28 references to DestinationName
Microsoft.VisualStudio.LanguageServices (9)
MoveStaticMembers\MoveStaticMembersDialogViewModel.cs (1)
45case nameof(DestinationName):
MoveStaticMembers\VisualStudioMoveStaticMembersOptionsService.cs (8)
71var typeName = viewModel.DestinationName.TypeName.Split('.').Last(); 75if (viewModel.DestinationName.IsNew) 79viewModel.DestinationName.TypeName, 83RoslynDebug.AssertNotNull(viewModel.DestinationName.NamedType); 86viewModel.DestinationName.NamedType, 147if (viewModel.DestinationName.IsNew || viewModel.DestinationName.IsFromHistory) 154History.AddFirst(viewModel.DestinationName.NamedType!);
Microsoft.VisualStudio.LanguageServices.UnitTests (19)
MoveStaticMembers\MoveStaticMembersViewModelTest.vb (19)
97Assert.Equal("TestClassHelpers", viewModel.DestinationName.TypeName) 99Assert.Equal("TestNs.ExtraNs.TestClassHelpers", viewModel.DestinationName.TypeName) 181Assert.Equal(viewModel.DestinationName.TypeName, "TestClassHelpers") 409Assert.Equal("TestNs.ExtraNs.ConflictingNsClassName", viewModel.DestinationName.TypeName) 410Assert.NotNull(viewModel.DestinationName.NamedType) 411Assert.False(viewModel.DestinationName.IsNew) 416Assert.Equal("TestNs.ConflictingClassName", viewModel.DestinationName.TypeName) 417Assert.NotNull(viewModel.DestinationName.NamedType) 418Assert.False(viewModel.DestinationName.IsNew) 452Assert.Equal("TestClassHelpers", viewModel.DestinationName.TypeName) 454Assert.Equal("TestNs.ExtraNs.TestClassHelpers", viewModel.DestinationName.TypeName) 522Assert.Equal(viewModel.DestinationName.TypeName, "TestClassHelpers") 594Assert.Equal(viewModel.DestinationName.TypeName, "TestClassHelpers") 760Assert.Equal("TestNs.ExtraNs.ConflictingNsClassName", viewModel.DestinationName.TypeName) 761Assert.NotNull(viewModel.DestinationName.NamedType) 762Assert.False(viewModel.DestinationName.IsNew) 767Assert.Equal("TestNs.ConflictingClassName", viewModel.DestinationName.TypeName) 768Assert.NotNull(viewModel.DestinationName.NamedType) 769Assert.False(viewModel.DestinationName.IsNew)