2018-09-15 14:29:18 +01:00
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.IO;
|
|
|
|
|
|
|
|
namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast
|
|
|
|
{
|
|
|
|
public class PackedTemplateParameter : NodeArray
|
|
|
|
{
|
2018-12-06 11:16:24 +00:00
|
|
|
public PackedTemplateParameter(List<BaseNode> nodes) : base(nodes, NodeType.PackedTemplateParameter) { }
|
2018-09-15 14:29:18 +01:00
|
|
|
|
2018-12-06 11:16:24 +00:00
|
|
|
public override void PrintLeft(TextWriter writer)
|
2018-09-15 14:29:18 +01:00
|
|
|
{
|
2018-12-06 11:16:24 +00:00
|
|
|
foreach (BaseNode node in Nodes)
|
2018-09-15 14:29:18 +01:00
|
|
|
{
|
2018-12-06 11:16:24 +00:00
|
|
|
node.PrintLeft(writer);
|
2018-09-15 14:29:18 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-12-06 11:16:24 +00:00
|
|
|
public override void PrintRight(TextWriter writer)
|
2018-09-15 14:29:18 +01:00
|
|
|
{
|
2018-12-06 11:16:24 +00:00
|
|
|
foreach (BaseNode node in Nodes)
|
2018-09-15 14:29:18 +01:00
|
|
|
{
|
2018-12-06 11:16:24 +00:00
|
|
|
node.PrintLeft(writer);
|
2018-09-15 14:29:18 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public override bool HasRightPart()
|
|
|
|
{
|
2018-12-06 11:16:24 +00:00
|
|
|
foreach (BaseNode node in Nodes)
|
2018-09-15 14:29:18 +01:00
|
|
|
{
|
2018-12-06 11:16:24 +00:00
|
|
|
if (node.HasRightPart())
|
2018-09-15 14:29:18 +01:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|