aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/CallExpression.cs
blob: 8e3fc3e699f8af4b61df0e894edf20166d4e5ea8 (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)
        {
            _callee = callee;
        }

        public override void PrintLeft(TextWriter writer)
        {
            _callee.Print(writer);

            writer.Write("(");
            writer.Write(string.Join<BaseNode>(", ", Nodes.ToArray()));
            writer.Write(")");
        }
    }
}