mirror of
https://github.com/AssetRipper/Cpp2IL.git
synced 2026-11-13 04:26:33 -10:00
21 lines
644 B
C#
21 lines
644 B
C#
using Cpp2IL.Core.Model.Contexts;
|
|
|
|
namespace Cpp2IL.Core.ISIL;
|
|
|
|
public class LocalVariable(string name, Register register, TypeAnalysisContext? type = null) : IOperand
|
|
{
|
|
public string Name = name;
|
|
public Register Register = register;
|
|
|
|
/// <summary>
|
|
/// null if typeprop has not been done yet, or if the type could not be determined.
|
|
/// </summary>
|
|
public TypeAnalysisContext? Type = type;
|
|
|
|
public bool IsThis = false;
|
|
public bool IsReturn = false;
|
|
public bool IsMethodInfo = false;
|
|
|
|
public override string ToString() => Type == null ? $"{Name} @ {Register}" : $"{Name} @ {Register} ({Type.FullName})";
|
|
}
|