2018-09-15 14:29:18 +01:00
|
|
|
using System.IO;
|
|
|
|
|
|
|
|
namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast
|
|
|
|
{
|
|
|
|
public class EnclosedExpression : BaseNode
|
|
|
|
{
|
2018-12-05 00:52:39 +00:00
|
|
|
private string Prefix;
|
|
|
|
private BaseNode Expression;
|
|
|
|
private string Postfix;
|
2018-09-15 14:29:18 +01:00
|
|
|
|
2018-12-05 00:52:39 +00:00
|
|
|
public EnclosedExpression(string Prefix, BaseNode Expression, string Postfix) : base(NodeType.EnclosedExpression)
|
2018-09-15 14:29:18 +01:00
|
|
|
{
|
2018-12-05 00:52:39 +00:00
|
|
|
this.Prefix = Prefix;
|
|
|
|
this.Expression = Expression;
|
|
|
|
this.Postfix = Postfix;
|
2018-09-15 14:29:18 +01:00
|
|
|
}
|
|
|
|
|
2018-12-05 00:52:39 +00:00
|
|
|
public override void PrintLeft(TextWriter Writer)
|
2018-09-15 14:29:18 +01:00
|
|
|
{
|
2018-12-05 00:52:39 +00:00
|
|
|
Writer.Write(Prefix);
|
|
|
|
Expression.Print(Writer);
|
|
|
|
Writer.Write(Postfix);
|
2018-09-15 14:29:18 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|