aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/LocalName.cs
blob: 15d46b387d96ae1d9c85f6af969e0ff8c7c6e940 (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 LocalName : BaseNode
    {
        private BaseNode _encoding;
        private BaseNode _entity;

        public LocalName(BaseNode encoding, BaseNode entity) : base(NodeType.LocalName)
        {
            _encoding = encoding;
            _entity   = entity;
        }

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