Files
UnrealEngineUWP/Engine/Extras/ThirdPartyNotUE/crunchersharp/SymbolFunctionInfo.cs
aurel cordonnier fc542f6cfd Merge from Release-Engine-Staging @ 18081189 to Release-Engine-Test
This represents UE4/Main @18073326, Release-5.0 @18081140 and Dev-PerfTest @18045971

[CL 18081471 by aurel cordonnier in ue5-release-engine-test branch]
2021-11-07 23:43:01 -05:00

54 lines
1.3 KiB
C#

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; }
}
}