33 references to Name
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (3)
Workspaces\TestWorkspace.cs (3)
339text.ToString(), info.Name, info.SourceCodeKind, 363var hostDocument = new TestHostDocument(text.ToString(), info.Name, id: info.Id, exportProvider: ExportProvider); 385var hostDocument = new TestHostDocument(text.ToString(), info.Name, id: info.Id, filePath: info.FilePath, folders: info.Folders, exportProvider: ExportProvider);
Microsoft.CodeAnalysis.Workspaces (4)
Workspace\Solution\DocumentInfo.cs (2)
144=> (FilePath == null) ? (nameof(Name) + " = " + Name) : (nameof(FilePath) + " = " + FilePath);
Workspace\Workspace.cs (2)
891if (oldAttributes.Name != newInfo.Name) 893newSolution = newSolution.WithDocumentName(documentId, newInfo.Name);
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\MSBuildWorkspace.cs (1)
445var fileName = Path.ChangeExtension(info.Name, extension);
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
VisualStudioMSBuildWorkspaceTests.cs (1)
2362var adoc = infos[0].AdditionalDocuments.First(a => a.Name == "XamlFile.xaml");
Microsoft.CodeAnalysis.Workspaces.UnitTests (14)
CommandLineProject\CommandLineProjectTests.cs (10)
29Assert.Equal("goo.cs", docInfo.Name); 60Assert.Equal("goo.cs", docInfo.Name); 72Assert.Equal("goo.cs", docInfo.Name); 83Assert.Equal("goo.cs", docInfo.Name); 95Assert.Equal("goo.cs", docInfo.Name); 106Assert.Equal("goo.cs", docInfo.Name); 117Assert.Equal("goo.cs", docInfo.Name); 128Assert.Equal("goo.cs", firstDoc.Name); 129Assert.Equal("bar.cs", secondDoc.Name); 143Assert.Equal("goo.cs", firstDoc.Name);
SolutionTests\DocumentInfoTests.cs (3)
46Assert.Equal("doc", info.Name); 65Assert.Equal("doc", info.Name); 112SolutionTestHelpers.TestProperty(instance, (old, value) => old.WithName(value), opt => opt.Name, "New", defaultThrows: true);
WorkspaceTests\AdhocWorkspaceTests.cs (1)
66Assert.Equal(info.Name, doc.Name);
Microsoft.VisualStudio.LanguageServices (10)
ProjectSystem\VisualStudioWorkspaceImpl.AbstractAddDocumentUndoUnit.cs (1)
43=> pBstr = string.Format(FeaturesResources.Add_document_0, DocumentInfo.Name);
ProjectSystem\VisualStudioWorkspaceImpl.AddAdditionalDocumentUndoUnit.cs (1)
24=> fromProject.AddAdditionalDocument(DocumentInfo.Name, Text, DocumentInfo.Folders, DocumentInfo.FilePath).Project;
ProjectSystem\VisualStudioWorkspaceImpl.AddAnalyzerConfigDocumentUndoUnit.cs (1)
23=> fromProject.AddAnalyzerConfigDocument(DocumentInfo.Name, Text, DocumentInfo.Folders, DocumentInfo.FilePath).Project;
ProjectSystem\VisualStudioWorkspaceImpl.AddDocumentUndoUnit.cs (1)
23=> fromProject.AddDocument(DocumentInfo.Name, Text, DocumentInfo.Folders, DocumentInfo.FilePath).Project;
ProjectSystem\VisualStudioWorkspaceImpl.cs (6)
791AddDocumentToFolder(project, info.Id, SpecializedCollections.SingletonEnumerable(AppCodeFolderName), info.Name, documentKind, initialText, info.FilePath); 795AddDocumentToFolder(project, info.Id, folders, info.Name, documentKind, initialText, info.FilePath); 799AddDocumentToProject(project, info.Id, info.Name, documentKind, initialText, info.FilePath); 1171if (document.Name != updatedInfo.Name) 1203Path.GetFileNameWithoutExtension(updatedInfo.Name), 1204Path.GetExtension(updatedInfo.Name));