aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/FunctionParameter.cs
blob: 5654a048f4449b8fdea3cd3e1402bb4b9d551b78 (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.IO;

namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast
{
    public class FunctionParameter : BaseNode
    {
        private string _number;

        public FunctionParameter(string number) : base(NodeType.FunctionParameter)
        {
            _number = number;
        }

        public override void PrintLeft(TextWriter writer)
        {
            writer.Write("fp ");

            if (_number != null)
            {
                writer.Write(_number);
            }
        }
    }
}