24 references to FilePath
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
Workspaces\TestWorkspace.cs (2)
340info.Id, info.FilePath, info.Folders, ExportProvider, 385var hostDocument = new TestHostDocument(text.ToString(), info.Name, id: info.Id, filePath: info.FilePath, folders: info.Folders, exportProvider: ExportProvider);
Microsoft.CodeAnalysis.Workspaces (10)
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (4)
200Contract.ThrowIfNull(documentInfo.FilePath); 203var filePath = documentInfo.FilePath; 548Contract.ThrowIfNull(documentInfo.FilePath, "We shouldn't be adding documents without file paths."); 549documentFileNamesAdded.Add(documentInfo.FilePath);
Workspace\Solution\DocumentInfo.cs (3)
144=> (FilePath == null) ? (nameof(Name) + " = " + Name) : (nameof(FilePath) + " = " + FilePath);
Workspace\Solution\TextDocumentState.cs (1)
64: CreateStrongText(TextAndVersion.Create(SourceText.From(string.Empty, encoding: null, loadTextOptions.ChecksumAlgorithm), VersionStamp.Default, info.FilePath)),
Workspace\Workspace.cs (2)
901if (oldAttributes.FilePath != newInfo.FilePath) 906newSolution = newSolution.WithDocumentFilePath(documentId, newInfo.FilePath!);
Microsoft.CodeAnalysis.Workspaces.MSBuild (4)
MSBuild\MSBuildProjectLoader.Worker.cs (4)
490if (doc.FilePath is null) 493if (paths.Contains(doc.FilePath)) 495var message = string.Format(WorkspacesResources.Duplicate_source_file_0_in_project_1, doc.FilePath, projectFilePath); 501paths.Add(doc.FilePath);
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
SolutionTests\DocumentInfoTests.cs (1)
99Assert.Equal(path, info.FilePath);
Microsoft.VisualStudio.LanguageServices (7)
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 (4)
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); 1233if (document.FilePath != updatedInfo.FilePath)