17 references to FilePath
Microsoft.CodeAnalysis.ExternalAccess.HotReload (1)
Api\HotReloadMSBuildWorkspace.cs (1)
142
var mappedDocumentId = oldSolution.GetDocumentIdsWithFilePath(docInfo.
FilePath
).FirstOrDefault(id => id.ProjectId == mappedProjectId)
Microsoft.CodeAnalysis.Workspaces (12)
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (4)
212
Contract.ThrowIfNull(documentInfo.
FilePath
);
215
var filePath = documentInfo.
FilePath
;
600
Contract.ThrowIfNull(documentInfo.
FilePath
, "We shouldn't be adding documents without file paths.");
601
documentFileNamesAdded.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)
60
var textSource = CreateTextAndVersionSource(languageServices.SolutionServices, info.TextLoader, info.
FilePath
, loadTextOptions);
Workspace\Workspace.cs (2)
1120
if (oldAttributes.FilePath != newInfo.
FilePath
)
1122
newSolution = newSolution.WithDocumentFilePath(documentId, newInfo.
FilePath
);
Microsoft.CodeAnalysis.Workspaces.MSBuild (4)
MSBuild\MSBuildProjectLoader.Worker.cs (4)
394
if (doc.
FilePath
is null)
397
if (paths.Contains(doc.
FilePath
))
399
var message = string.Format(WorkspacesResources.Duplicate_source_file_0_in_project_1, doc.
FilePath
, projectFilePath);
405
paths.Add(doc.
FilePath
);