aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/IntegerCastExpression.cs
blob: 984c9aefb063d4045a85c6ff2d05127f96052705 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
using System.IO;

namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast
{
    public class IntegerCastExpression : ParentNode
    {
        private string Number;

        public IntegerCastExpression(BaseNode Type, string Number) : base(NodeType.IntegerCastExpression, Type)
        {
            this.Number = Number;
        }

        public override void PrintLeft(TextWriter Writer)
        {
            Writer.Write("(");
            Child.Print(Writer);
            Writer.Write(")");
            Writer.Write(Number);
        }
    }
}