2018-09-15 09:29:18 -04:00
|
|
|
using System.IO;
|
|
|
|
|
|
|
|
namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast
|
|
|
|
{
|
|
|
|
public class DeleteExpression : ParentNode
|
|
|
|
{
|
2018-12-04 19:52:39 -05:00
|
|
|
private bool IsGlobal;
|
|
|
|
private bool IsArrayExpression;
|
2018-09-15 09:29:18 -04:00
|
|
|
|
2018-12-04 19:52:39 -05:00
|
|
|
public DeleteExpression(BaseNode Child, bool IsGlobal, bool IsArrayExpression) : base(NodeType.DeleteExpression, Child)
|
2018-09-15 09:29:18 -04:00
|
|
|
{
|
2018-12-04 19:52:39 -05:00
|
|
|
this.IsGlobal = IsGlobal;
|
|
|
|
this.IsArrayExpression = IsArrayExpression;
|
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
|
|
|
if (IsGlobal)
|
2018-09-15 09:29:18 -04:00
|
|
|
{
|
2018-12-04 19:52:39 -05:00
|
|
|
Writer.Write("::");
|
2018-09-15 09:29:18 -04:00
|
|
|
}
|
|
|
|
|
2018-12-04 19:52:39 -05:00
|
|
|
Writer.Write("delete");
|
2018-09-15 09:29:18 -04:00
|
|
|
|
2018-12-04 19:52:39 -05:00
|
|
|
if (IsArrayExpression)
|
2018-09-15 09:29:18 -04:00
|
|
|
{
|
2018-12-04 19:52:39 -05:00
|
|
|
Writer.Write("[] ");
|
2018-09-15 09:29:18 -04:00
|
|
|
}
|
|
|
|
|
2018-12-04 19:52:39 -05:00
|
|
|
Child.Print(Writer);
|
2018-09-15 09:29:18 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|