-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathImportLink.cs
More file actions
31 lines (29 loc) · 976 Bytes
/
Copy pathImportLink.cs
File metadata and controls
31 lines (29 loc) · 976 Bytes
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
namespace Heddle.LanguageServices
{
/// <summary>Kind of an <see cref="ImportLink"/> (D16): an <c>@<<</c> import or an <c>@partial</c> target.</summary>
public enum ImportLinkKind
{
Import,
Partial
}
/// <summary>
/// An <c>@<<</c> import or <c>@partial</c> target resolved with engine rules (D16);
/// <see cref="ResolvedPath"/> is null when the file does not exist.
/// </summary>
public sealed class ImportLink
{
internal ImportLink(ImportLinkKind kind, int offset, int length, string rawPath, string resolvedPath)
{
Kind = kind;
Offset = offset;
Length = length;
RawPath = rawPath;
ResolvedPath = resolvedPath;
}
public ImportLinkKind Kind { get; }
public int Offset { get; }
public int Length { get; }
public string RawPath { get; }
public string ResolvedPath { get; }
}
}