forked from dotnet/samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDocumentFileInfo.cs
38 lines (33 loc) · 1.22 KB
/
DocumentFileInfo.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using Microsoft.CodeAnalysis;
namespace DotNet.CodeAnalysis
{
/// Borrowed and inspired by:
/// https://github.com/dotnet/roslyn/blob/main/src/Workspaces/Core/MSBuild/MSBuild/ProjectFile/DocumentFileInfo.cs
/// <summary>
/// Represents a source file that is part of a project file.
/// </summary>
internal sealed record DocumentFileInfo(
/// <summary>
/// The absolute path to the document file on disk.
/// </summary>
string FilePath,
/// <summary>
/// A fictional path to the document, relative to the project.
/// The document may not actually exist at this location, and is used
/// to represent linked documents. This includes the file name.
/// </summary>
string LogicalPath,
/// <summary>
/// True if the document has a logical path that differs from its
/// absolute file path.
/// </summary>
bool IsLinked,
/// <summary>
/// True if the file was generated during build.
/// </summary>
bool IsGenerated,
/// <summary>
/// The <see cref="SourceCodeKind"/> of this document.
/// </summary>
SourceCodeKind SourceCodeKind);
}