aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/NestedName.cs
blob: 640c200cbb95ff7ee335183c84e4ee072869a21e (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)
        {
            _name = name;
        }

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

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