-
Notifications
You must be signed in to change notification settings - Fork 10
/
SymbolFunctionInfo.cs
53 lines (47 loc) · 1.3 KB
/
SymbolFunctionInfo.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CruncherSharp
{
public class SymbolFunctionInfo
{
public enum FunctionCategory
{
Function,
StaticFunction,
Constructor,
Destructor
}
public string Name { get; set; }
public string DisplayName
{
get
{
switch (Category)
{
case FunctionCategory.StaticFunction:
return $"static {Name}";
default:
return Name + (IsConst ? " const" : "");
}
}
}
public bool UnusedVirtual
{
get
{
return Category == FunctionCategory.Function && Virtual && !IsOverloaded && !IsOverride;
}
}
public FunctionCategory Category { get; set; }
public bool Virtual { get; set; }
public bool IsPure { get; set; }
public bool IsOverride { get; set; }
public bool IsOverloaded { get; set; }
public bool IsMasking { get; set; }
public bool IsConst { get; set; }
public bool WasInlineRemoved { get; set; }
}
}