39 references to FilePath
Microsoft.CodeAnalysis.Workspaces (12)
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (4)
200
Contract.ThrowIfNull(documentInfo.
FilePath
);
203
var filePath = documentInfo.
FilePath
;
576
Contract.ThrowIfNull(documentInfo.
FilePath
, "We shouldn't be adding documents without file paths.");
577
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)
1152
if (oldAttributes.FilePath != newInfo.
FilePath
)
1154
newSolution = newSolution.WithDocumentFilePath(documentId, newInfo.
FilePath
);
Microsoft.CodeAnalysis.Workspaces.MSBuild (4)
MSBuild\MSBuildProjectLoader.Worker.cs (4)
484
if (doc.
FilePath
is null)
487
if (paths.Contains(doc.
FilePath
))
489
var message = string.Format(WorkspacesResources.Duplicate_source_file_0_in_project_1, doc.
FilePath
, projectFilePath);
495
paths.Add(doc.
FilePath
);
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
Workspaces\TestWorkspace`1.cs (2)
379
info.Id, info.
FilePath
, info.Folders, ExportProvider,
427
var hostDocument = CreateDocument(text.ToString(), info.Name, id: info.Id, filePath: info.
FilePath
, folders: info.Folders, exportProvider: ExportProvider);
Microsoft.CodeAnalysis.Workspaces.UnitTests (8)
CommandLineProject\CommandLineProjectTests.cs (1)
140
Assert.Equal(Path.Combine(@"C:\ProjectDirectory", ".editorconfig"), document.
FilePath
);
SolutionTests\DocumentInfoTests.cs (1)
97
Assert.Equal(path, info.
FilePath
);
SolutionTests\SolutionTests.cs (6)
1232
Assert.Equal(newDocumentInfo1.
FilePath
, newDocument1.FilePath);
1241
Assert.Equal(newDocumentInfo3.
FilePath
, newDocument3.FilePath);
1253
Assert.Equal(newAddDocumentInfo1.
FilePath
, newAddDocument1.FilePath);
1262
Assert.Equal(newAddDocumentInfo3.
FilePath
, newAddDocument3.FilePath);
1274
Assert.Equal(newConfigDocumentInfo1.
FilePath
, newConfigDocument1.FilePath);
1283
Assert.Equal(newConfigDocumentInfo3.
FilePath
, newConfigDocument3.FilePath);
Microsoft.VisualStudio.LanguageServices (13)
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 (10)
794
AddDocumentToFolder(project, info.Id, [AppCodeFolderName], info.Name, documentKind, initialText, info.
FilePath
);
798
AddDocumentToFolder(project, info.Id, folders, info.Name, documentKind, initialText, info.
FilePath
);
802
AddDocumentToProject(project, info.Id, info.Name, documentKind, initialText, info.
FilePath
);
923
if (CurrentSolution.FilePath is null || documentInfo.
FilePath
is null)
926
if (PathUtilities.GetFileName(documentInfo.
FilePath
) != ".editorconfig")
929
if (IOUtilities.PerformIO(() => File.Exists(documentInfo.
FilePath
)))
933
if (solutionDirectory != PathUtilities.GetDirectoryName(documentInfo.
FilePath
))
956
using var writer = new StreamWriter(documentInfo.
FilePath
, append: false, encoding: text.Encoding ?? Encoding.UTF8);
973
documentInfo.
FilePath
,
1343
if (document.FilePath != updatedInfo.
FilePath
)