2018-09-15 06:29:18 -07:00
|
|
|
using System.IO;
|
|
|
|
|
|
|
|
namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast
|
|
|
|
{
|
|
|
|
public class ForwardTemplateReference : BaseNode
|
|
|
|
{
|
|
|
|
// TODO: Compute inside the Demangler
|
|
|
|
public BaseNode Reference;
|
2018-12-06 03:16:24 -08:00
|
|
|
private int _index;
|
2018-09-15 06:29:18 -07:00
|
|
|
|
2018-12-06 03:16:24 -08:00
|
|
|
public ForwardTemplateReference(int index) : base(NodeType.ForwardTemplateReference)
|
2018-09-15 06:29:18 -07:00
|
|
|
{
|
2018-12-06 03:16:24 -08:00
|
|
|
_index = index;
|
2018-09-15 06:29:18 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
public override string GetName()
|
|
|
|
{
|
|
|
|
return Reference.GetName();
|
|
|
|
}
|
|
|
|
|
2018-12-06 03:16:24 -08:00
|
|
|
public override void PrintLeft(TextWriter writer)
|
2018-09-15 06:29:18 -07:00
|
|
|
{
|
2018-12-06 03:16:24 -08:00
|
|
|
Reference.PrintLeft(writer);
|
2018-09-15 06:29:18 -07:00
|
|
|
}
|
|
|
|
|
2018-12-06 03:16:24 -08:00
|
|
|
public override void PrintRight(TextWriter writer)
|
2018-09-15 06:29:18 -07:00
|
|
|
{
|
2018-12-06 03:16:24 -08:00
|
|
|
Reference.PrintRight(writer);
|
2018-09-15 06:29:18 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
public override bool HasRightPart()
|
|
|
|
{
|
|
|
|
return Reference.HasRightPart();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|