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