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