42 references to Name
Microsoft.CodeAnalysis.Workspaces (4)
Workspace\Solution\DocumentInfo.cs (2)
142=> (FilePath == null) ? (nameof(Name) + " = " + Name) : (nameof(FilePath) + " = " + FilePath);
Workspace\Workspace.cs (2)
1142if (oldAttributes.Name != newInfo.Name) 1144newSolution = newSolution.WithDocumentName(documentId, newInfo.Name);
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\MSBuildWorkspace.cs (1)
464var fileName = Path.ChangeExtension(info.Name, extension);
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
VisualStudioMSBuildWorkspaceTests.cs (1)
109Assert.Single(projectInfo.Documents, d => d.Name == "CSharpClass.cs");
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (3)
Workspaces\TestWorkspace`1.cs (3)
382text.ToString(), info.Name, info.SourceCodeKind, 407var hostDocument = CreateDocument(text.ToString(), info.Name, id: info.Id, exportProvider: ExportProvider); 431var hostDocument = CreateDocument(text.ToString(), info.Name, id: info.Id, filePath: info.FilePath, folders: info.Folders, exportProvider: ExportProvider);
Microsoft.CodeAnalysis.Workspaces.UnitTests (21)
CommandLineProject\CommandLineProjectTests.cs (11)
29Assert.Equal("goo.cs", docInfo.Name); 59Assert.Equal("goo.cs", docInfo.Name); 71Assert.Equal("goo.cs", docInfo.Name); 82Assert.Equal("goo.cs", docInfo.Name); 94Assert.Equal("goo.cs", docInfo.Name); 105Assert.Equal("goo.cs", docInfo.Name); 116Assert.Equal("goo.cs", docInfo.Name); 127Assert.Equal("goo.cs", firstDoc.Name); 128Assert.Equal("bar.cs", secondDoc.Name); 138Assert.Equal(".editorconfig", document.Name); 153Assert.Equal("goo.cs", firstDoc.Name);
SolutionTests\DocumentInfoTests.cs (3)
44Assert.Equal("doc", info.Name); 63Assert.Equal("doc", info.Name); 110SolutionTestHelpers.TestProperty(instance, (old, value) => old.WithName(value), opt => opt.Name, "New", defaultThrows: true);
SolutionTests\SolutionTests.cs (6)
1231Assert.Equal(newDocumentInfo1.Name, newDocument1.Name); 1240Assert.Equal(newDocumentInfo3.Name, newDocument3.Name); 1252Assert.Equal(newAddDocumentInfo1.Name, newAddDocument1.Name); 1261Assert.Equal(newAddDocumentInfo3.Name, newAddDocument3.Name); 1273Assert.Equal(newConfigDocumentInfo1.Name, newConfigDocument1.Name); 1282Assert.Equal(newConfigDocumentInfo3.Name, newConfigDocument3.Name);
WorkspaceTests\AdhocWorkspaceTests.cs (1)
63Assert.Equal(info.Name, doc.Name);
Microsoft.VisualStudio.LanguageServices (12)
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 (8)
755AddDocumentToFolder(project, info.Id, [AppCodeFolderName], info.Name, documentKind, initialText, info.FilePath); 759AddDocumentToFolder(project, info.Id, folders, info.Name, documentKind, initialText, info.FilePath); 763AddDocumentToProject(project, info.Id, info.Name, documentKind, initialText, info.FilePath); 914if (projectItem.Name == documentInfo.Name) 932documentInfo.Name, 1242if (document.Name != updatedInfo.Name) 1274Path.GetFileNameWithoutExtension(updatedInfo.Name), 1275Path.GetExtension(updatedInfo.Name));