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