aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/EnclosedExpression.cs
blob: b45481ddcec5e18beb5d2cd859832c1c49eddb9e (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 EnclosedExpression : BaseNode
    {
        private string   _prefix;
        private BaseNode _expression;
        private string   _postfix;

        public EnclosedExpression(string prefix, BaseNode expression, string postfix) : base(NodeType.EnclosedExpression)
        {
            _prefix     = prefix;
            _expression = expression;
            _postfix    = postfix;
        }

        public override void PrintLeft(TextWriter writer)
        {
            writer.Write(_prefix);
            _expression.Print(writer);
            writer.Write(_postfix);
        }
    }
}