17 references to FilePath
Microsoft.CodeAnalysis.ExternalAccess.HotReload (1)
Api\HotReloadMSBuildWorkspace.cs (1)
142var mappedDocumentId = oldSolution.GetDocumentIdsWithFilePath(docInfo.FilePath).FirstOrDefault(id => id.ProjectId == mappedProjectId)
Microsoft.CodeAnalysis.Workspaces (12)
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (4)
212Contract.ThrowIfNull(documentInfo.FilePath); 215var filePath = documentInfo.FilePath; 600Contract.ThrowIfNull(documentInfo.FilePath, "We shouldn't be adding documents without file paths."); 601documentFileNamesAdded.Add(documentInfo.FilePath);
Workspace\Solution\AdditionalDocumentState.cs (1)
30: this(solutionServices, documentInfo.DocumentServiceProvider, documentInfo.Attributes, CreateTextAndVersionSource(solutionServices, documentInfo.TextLoader, documentInfo.FilePath, loadTextOptions), loadTextOptions)
Workspace\Solution\AnalyzerConfigDocumentState.cs (1)
36: this(solutionServices, documentInfo.DocumentServiceProvider, documentInfo.Attributes, CreateTextAndVersionSource(solutionServices, documentInfo.TextLoader, documentInfo.FilePath, loadTextOptions), loadTextOptions)
Workspace\Solution\DocumentInfo.cs (3)
142=> (FilePath == null) ? (nameof(Name) + " = " + Name) : (nameof(FilePath) + " = " + FilePath);
Workspace\Solution\DocumentState.cs (1)
60var textSource = CreateTextAndVersionSource(languageServices.SolutionServices, info.TextLoader, info.FilePath, loadTextOptions);
Workspace\Workspace.cs (2)
1120if (oldAttributes.FilePath != newInfo.FilePath) 1122newSolution = newSolution.WithDocumentFilePath(documentId, newInfo.FilePath);
Microsoft.CodeAnalysis.Workspaces.MSBuild (4)
MSBuild\MSBuildProjectLoader.Worker.cs (4)
394if (doc.FilePath is null) 397if (paths.Contains(doc.FilePath)) 399var message = string.Format(WorkspacesResources.Duplicate_source_file_0_in_project_1, doc.FilePath, projectFilePath); 405paths.Add(doc.FilePath);