aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/CallExpression.cs
blob: 0ee2e9d77dc43a56e6e5887e558884e1ed153086 (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 readonly 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(")");
        }
    }
}