1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-12-01 10:32:10 +00:00
Ryujinx/Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/DeleteExpression.cs

33 lines
802 B
C#
Raw Normal View History

using System.IO;
namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast
{
public class DeleteExpression : ParentNode
{
2018-12-01 20:01:59 +00:00
private bool _isGlobal;
private bool _isArrayExpression;
2018-12-01 20:01:59 +00:00
public DeleteExpression(BaseNode child, bool isGlobal, bool isArrayExpression) : base(NodeType.DeleteExpression, child)
{
2018-12-01 20:01:59 +00:00
this._isGlobal = isGlobal;
this._isArrayExpression = isArrayExpression;
}
2018-12-01 20:01:59 +00:00
public override void PrintLeft(TextWriter writer)
{
2018-12-01 20:01:59 +00:00
if (_isGlobal)
{
2018-12-01 20:01:59 +00:00
writer.Write("::");
}
2018-12-01 20:01:59 +00:00
writer.Write("delete");
2018-12-01 20:01:59 +00:00
if (_isArrayExpression)
{
2018-12-01 20:01:59 +00:00
writer.Write("[] ");
}
2018-12-01 20:01:59 +00:00
Child.Print(writer);
}
}
}