2018-09-15 13:29:18 +00: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-05 00:52:39 +00:00
|
|
|
private int Index;
|
2018-09-15 13:29:18 +00:00
|
|
|
|
2018-12-05 00:52:39 +00:00
|
|
|
public ForwardTemplateReference(int Index) : base(NodeType.ForwardTemplateReference)
|
2018-09-15 13:29:18 +00:00
|
|
|
{
|
2018-12-05 00:52:39 +00:00
|
|
|
this.Index = Index;
|
2018-09-15 13:29:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public override string GetName()
|
|
|
|
{
|
|
|
|
return Reference.GetName();
|
|
|
|
}
|
|
|
|
|
2018-12-05 00:52:39 +00:00
|
|
|
public override void PrintLeft(TextWriter Writer)
|
2018-09-15 13:29:18 +00:00
|
|
|
{
|
2018-12-05 00:52:39 +00:00
|
|
|
Reference.PrintLeft(Writer);
|
2018-09-15 13:29:18 +00:00
|
|
|
}
|
|
|
|
|
2018-12-05 00:52:39 +00:00
|
|
|
public override void PrintRight(TextWriter Writer)
|
2018-09-15 13:29:18 +00:00
|
|
|
{
|
2018-12-05 00:52:39 +00:00
|
|
|
Reference.PrintRight(Writer);
|
2018-09-15 13:29:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public override bool HasRightPart()
|
|
|
|
{
|
|
|
|
return Reference.HasRightPart();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|