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

namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast
{
    public class MemberExpression : BaseNode
    {
        private BaseNode LeftNode;
        private string   Kind;
        private BaseNode RightNode;

        public MemberExpression(BaseNode LeftNode, string Kind, BaseNode RightNode) : base(NodeType.MemberExpression)
        {
            this.LeftNode  = LeftNode;
            this.Kind      = Kind;
            this.RightNode = RightNode;
        }

        public override void PrintLeft(TextWriter Writer)
        {
            LeftNode.Print(Writer);
            Writer.Write(Kind);
            RightNode.Print(Writer);
        }
    }
}