mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-12-01 06:22:01 +00:00
33 lines
No EOL
802 B
C#
33 lines
No EOL
802 B
C#
using System.IO;
|
|
|
|
namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast
|
|
{
|
|
public class DeleteExpression : ParentNode
|
|
{
|
|
private bool _isGlobal;
|
|
private bool _isArrayExpression;
|
|
|
|
public DeleteExpression(BaseNode child, bool isGlobal, bool isArrayExpression) : base(NodeType.DeleteExpression, child)
|
|
{
|
|
this._isGlobal = isGlobal;
|
|
this._isArrayExpression = isArrayExpression;
|
|
}
|
|
|
|
public override void PrintLeft(TextWriter writer)
|
|
{
|
|
if (_isGlobal)
|
|
{
|
|
writer.Write("::");
|
|
}
|
|
|
|
writer.Write("delete");
|
|
|
|
if (_isArrayExpression)
|
|
{
|
|
writer.Write("[] ");
|
|
}
|
|
|
|
Child.Print(writer);
|
|
}
|
|
}
|
|
} |