aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/CallExpression.cs
blob: ae43fcdb21ad8409bd6991768306b92c27fee6bd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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(")");
        }
    }
}