aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/NestedName.cs
blob: 0ec6d9829968304616f243ff9292a4be4e5b3a91 (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
using System.IO;

namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast
{
    public class NestedName : ParentNode
    {
        private BaseNode Name;

        public NestedName(BaseNode Name, BaseNode Type) : base(NodeType.NestedName, Type)
        {
            this.Name = Name;
        }

        public override string GetName()
        {
            return Name.GetName();
        }

        public override void PrintLeft(TextWriter Writer)
        {
            Child.Print(Writer);
            Writer.Write("::");
            Name.Print(Writer);
        }
    }
}