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

namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast
{
    public class QualifiedName : BaseNode
    {
        private BaseNode _qualifier;
        private BaseNode _name;

        public QualifiedName(BaseNode qualifier, BaseNode name) : base(NodeType.QualifiedName)
        {
            _qualifier = qualifier;
            _name      = name;
        }

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