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

namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast
{
    public class ThrowExpression : BaseNode
    {
        private BaseNode Expression;

        public ThrowExpression(BaseNode Expression) : base(NodeType.ThrowExpression)
        {
            this.Expression = Expression;
        }

        public override void PrintLeft(TextWriter Writer)
        {
            Writer.Write("throw ");
            Expression.Print(Writer);
        }
    }
}