-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSyntaxEqualityFlags.cs
More file actions
44 lines (37 loc) · 1.37 KB
/
Copy pathSyntaxEqualityFlags.cs
File metadata and controls
44 lines (37 loc) · 1.37 KB
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
39
40
41
42
43
44
using System;
using Microsoft.CodeAnalysis.Text;
namespace Discord.CX.Parser;
/// <summary>
/// A bit-wise flag that determines how equality checks are performed against <see cref="ICXNode"/>s.
/// </summary>
[Flags]
public enum SyntaxEqualityFlags : byte
{
/// <summary>
/// Indicates that <see cref="CXTrivia"/> should be compared for equality between <see cref="ICXNode"/>s.
/// </summary>
CompareTrivia = 1 << 0,
/// <summary>
/// Indicates that locational <see cref="TextSpan"/>s should be compared for equality between
/// <see cref="ICXNode"/>.
/// </summary>
CompareLocation = 1 << 1,
/// <summary>
/// Indicates that the root <see cref="CXDocument"/> should be compared for equality between <see cref="ICXNode"/>s.
/// </summary>
CompareSourceDocument = 1 << 2,
/// <summary>
/// Indicates that node-specific flags (like <see cref="CXTokenFlags"/>) should be compared for equality between
/// <see cref="ICXNode"/>.
/// </summary>
CompareFlags = 1 << 3,
/// <summary>
/// Indicates that a nodes <see cref="CXDiagnostic"/>s should be compared for equality between
/// <see cref="ICXNode"/>s.
/// </summary>
CompareDiagnostics = 1 << 4,
/// <summary>
/// Includes all <see cref="SyntaxEqualityFlags"/>.
/// </summary>
All = byte.MaxValue
}