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

namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast
{
    public class ConversionExpression : BaseNode
    {
        private BaseNode TypeNode;
        private BaseNode Expressions;

        public ConversionExpression(BaseNode TypeNode, BaseNode Expressions) : base(NodeType.ConversionExpression)
        {
            this.TypeNode    = TypeNode;
            this.Expressions = Expressions;
        }

        public override void PrintLeft(TextWriter Writer)
        {
            Writer.Write("(");
            TypeNode.Print(Writer);
            Writer.Write(")(");
            Expressions.Print(Writer);
        }
    }
}