aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/PackedTemplateParameterExpansion.cs
blob: 45e4084a45f655bd681b75c1ab9376f978248ee5 (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
using System.IO;

namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast
{
    public class PackedTemplateParameterExpansion : ParentNode
    {
        public PackedTemplateParameterExpansion(BaseNode child) : base(NodeType.PackedTemplateParameterExpansion, child) { }

        public override void PrintLeft(TextWriter writer)
        {
            if (Child is PackedTemplateParameter parameter)
            {
                if (parameter.Nodes.Count != 0)
                {
                    parameter.Print(writer);
                }
            }
            else
            {
                writer.Write("...");
            }
        }
    }
}