38 references to Name
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\MSBuildWorkspace.cs (1)
462
var fileName = Path.ChangeExtension(info.
Name
, extension);
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
VisualStudioMSBuildWorkspaceTests.cs (1)
103
Assert.Single(projectInfo.Documents.Where(d => d.
Name
== "CSharpClass.cs"));
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (3)
Workspaces\TestWorkspace`1.cs (3)
397
text.ToString(), info.
Name
, info.SourceCodeKind,
422
var hostDocument = CreateDocument(text.ToString(), info.
Name
, id: info.Id, exportProvider: ExportProvider);
446
var 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)
29
Assert.Equal("goo.cs", docInfo.
Name
);
60
Assert.Equal("goo.cs", docInfo.
Name
);
72
Assert.Equal("goo.cs", docInfo.
Name
);
83
Assert.Equal("goo.cs", docInfo.
Name
);
95
Assert.Equal("goo.cs", docInfo.
Name
);
106
Assert.Equal("goo.cs", docInfo.
Name
);
117
Assert.Equal("goo.cs", docInfo.
Name
);
128
Assert.Equal("goo.cs", firstDoc.
Name
);
129
Assert.Equal("bar.cs", secondDoc.
Name
);
139
Assert.Equal(".editorconfig", document.
Name
);
154
Assert.Equal("goo.cs", firstDoc.
Name
);
SolutionTests\DocumentInfoTests.cs (3)
44
Assert.Equal("doc", info.
Name
);
63
Assert.Equal("doc", info.
Name
);
110
SolutionTestHelpers.TestProperty(instance, (old, value) => old.WithName(value), opt => opt.
Name
, "New", defaultThrows: true);
SolutionTests\SolutionTests.cs (6)
1233
Assert.Equal(newDocumentInfo1.
Name
, newDocument1.Name);
1242
Assert.Equal(newDocumentInfo3.
Name
, newDocument3.Name);
1254
Assert.Equal(newAddDocumentInfo1.
Name
, newAddDocument1.Name);
1263
Assert.Equal(newAddDocumentInfo3.
Name
, newAddDocument3.Name);
1275
Assert.Equal(newConfigDocumentInfo1.
Name
, newConfigDocument1.Name);
1284
Assert.Equal(newConfigDocumentInfo3.
Name
, newConfigDocument3.Name);
WorkspaceTests\AdhocWorkspaceTests.cs (1)
63
Assert.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)
786
AddDocumentToFolder(project, info.Id, [AppCodeFolderName], info.
Name
, documentKind, initialText, info.FilePath);
790
AddDocumentToFolder(project, info.Id, folders, info.
Name
, documentKind, initialText, info.FilePath);
794
AddDocumentToProject(project, info.Id, info.
Name
, documentKind, initialText, info.FilePath);
945
if (projectItem.Name == documentInfo.
Name
)
963
documentInfo.
Name
,
1226
if (document.Name != updatedInfo.
Name
)
1258
Path.GetFileNameWithoutExtension(updatedInfo.
Name
),
1259
Path.GetExtension(updatedInfo.
Name
));