aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/NodeArray.cs
blob: 395ad1a05d879cb2c3a47a77e661eab604d3c674 (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
using System.Collections.Generic;
using System.IO;

namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast
{
    public class NodeArray : BaseNode
    {
        public List<BaseNode> Nodes { get; protected set; }

        public NodeArray(List<BaseNode> nodes) : base(NodeType.NodeArray)
        {
            Nodes = nodes;
        }

        public NodeArray(List<BaseNode> nodes, NodeType type) : base(type)
        {
            Nodes = nodes;
        }

        public override bool IsArray()
        {
            return true;
        }

        public override void PrintLeft(TextWriter writer)
        {
            writer.Write(string.Join<BaseNode>(", ", Nodes.ToArray()));
        }
    }
}