Ryujinx/Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/CallExpression.cs
2018-12-01 14:03:56 -06:00

24 lines
610 B
C#

using System.Collections.Generic;
using System.IO;
namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast
{
public class CallExpression : NodeArray
{
private BaseNode _callee;
public CallExpression(BaseNode callee, List<BaseNode> nodes) : base(nodes, NodeType.CallExpression)
{
this._callee = callee;
}
public override void PrintLeft(TextWriter writer)
{
_callee.Print(writer);
writer.Write("(");
writer.Write(string.Join<BaseNode>(", ", Nodes.ToArray()));
writer.Write(")");
}
}
}