aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/PackedTemplateParameter.cs
blob: 66ad11227764790fb0b117567c346dca5fbf60a3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
using System.Collections.Generic;
using System.IO;

namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast
{
    public class PackedTemplateParameter : NodeArray
    {
        public PackedTemplateParameter(List<BaseNode> Nodes) : base(Nodes, NodeType.PackedTemplateParameter) { }

        public override void PrintLeft(TextWriter Writer)
        {
            foreach (BaseNode Node in Nodes)
            {
                Node.PrintLeft(Writer);
            }
        }

        public override void PrintRight(TextWriter Writer)
        {
            foreach (BaseNode Node in Nodes)
            {
                Node.PrintLeft(Writer);
            }
        }

        public override bool HasRightPart()
        {
            foreach (BaseNode Node in Nodes)
            {
                if (Node.HasRightPart())
                {
                    return true;
                }
            }

            return false;
        }
    }
}