38 references to Name
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\MSBuildWorkspace.cs (1)
462var fileName = Path.ChangeExtension(info.Name, extension);
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
VisualStudioMSBuildWorkspaceTests.cs (1)
103Assert.Single(projectInfo.Documents.Where(d => d.Name == "CSharpClass.cs"));
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (3)
Workspaces\TestWorkspace`1.cs (3)
397text.ToString(), info.Name, info.SourceCodeKind, 422var hostDocument = CreateDocument(text.ToString(), info.Name, id: info.Id, exportProvider: ExportProvider); 446var 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); 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); 139Assert.Equal(".editorconfig", document.Name); 154Assert.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)
1233Assert.Equal(newDocumentInfo1.Name, newDocument1.Name); 1242Assert.Equal(newDocumentInfo3.Name, newDocument3.Name); 1254Assert.Equal(newAddDocumentInfo1.Name, newAddDocument1.Name); 1263Assert.Equal(newAddDocumentInfo3.Name, newAddDocument3.Name); 1275Assert.Equal(newConfigDocumentInfo1.Name, newConfigDocument1.Name); 1284Assert.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)
786AddDocumentToFolder(project, info.Id, [AppCodeFolderName], info.Name, documentKind, initialText, info.FilePath); 790AddDocumentToFolder(project, info.Id, folders, info.Name, documentKind, initialText, info.FilePath); 794AddDocumentToProject(project, info.Id, info.Name, documentKind, initialText, info.FilePath); 945if (projectItem.Name == documentInfo.Name) 963documentInfo.Name, 1226if (document.Name != updatedInfo.Name) 1258Path.GetFileNameWithoutExtension(updatedInfo.Name), 1259Path.GetExtension(updatedInfo.Name));