PostfixExpression.cs 539 B

12345678910111213141516171819202122
  1. using System.IO;
  2. namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast
  3. {
  4. public class PostfixExpression : ParentNode
  5. {
  6. private string _operator;
  7. public PostfixExpression(BaseNode type, string Operator) : base(NodeType.PostfixExpression, type)
  8. {
  9. _operator = Operator;
  10. }
  11. public override void PrintLeft(TextWriter writer)
  12. {
  13. writer.Write("(");
  14. Child.Print(writer);
  15. writer.Write(")");
  16. writer.Write(_operator);
  17. }
  18. }
  19. }