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

namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast
{
    public class CastExpression : BaseNode
    {
        private string   Kind;
        private BaseNode To;
        private BaseNode From;

        public CastExpression(string Kind, BaseNode To, BaseNode From) : base(NodeType.CastExpression)
        {
            this.Kind = Kind;
            this.To   = To;
            this.From = From;
        }

        public override void PrintLeft(TextWriter Writer)
        {
            Writer.Write(Kind);
            Writer.Write("<");
            To.PrintLeft(Writer);
            Writer.Write(">(");
            From.PrintLeft(Writer);
            Writer.Write(")");
        }
    }
}