aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/PackedTemplateParameter.cs
blob: 23104fff00e7687864f7dfa32704f73d2d82654b (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;
        }
    }
}