aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/CastExpression.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/CastExpression.cs')
-rw-r--r--src/Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/CastExpression.cs28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/CastExpression.cs b/src/Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/CastExpression.cs
new file mode 100644
index 00000000..1149a788
--- /dev/null
+++ b/src/Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/CastExpression.cs
@@ -0,0 +1,28 @@
+using System.IO;
+
+namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast
+{
+ public class CastExpression : BaseNode
+ {
+ private string _kind;
+ private BaseNode _to;
+ private BaseNode _from;
+
+ public CastExpression(string kind, BaseNode to, BaseNode from) : base(NodeType.CastExpression)
+ {
+ _kind = kind;
+ _to = to;
+ _from = from;
+ }
+
+ public override void PrintLeft(TextWriter writer)
+ {
+ writer.Write(_kind);
+ writer.Write("<");
+ _to.PrintLeft(writer);
+ writer.Write(">(");
+ _from.PrintLeft(writer);
+ writer.Write(")");
+ }
+ }
+} \ No newline at end of file