aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/NestedName.cs
blob: cadea66c6c9c95b4815ccd7dd72cc6c980d18e58 (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 readonly 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);
        }
    }
}