mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-07-28 17:37:11 +02:00
Move solution and projects to src
This commit is contained in:
parent
cd124bda58
commit
cee7121058
3466 changed files with 55 additions and 55 deletions
|
@ -0,0 +1,42 @@
|
|||
using System;
|
||||
using System.IO;
|
||||
|
||||
namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast
|
||||
{
|
||||
public class IntegerLiteral : BaseNode
|
||||
{
|
||||
private string _literalName;
|
||||
private string _literalValue;
|
||||
|
||||
public IntegerLiteral(string literalName, string literalValue) : base(NodeType.IntegerLiteral)
|
||||
{
|
||||
_literalValue = literalValue;
|
||||
_literalName = literalName;
|
||||
}
|
||||
|
||||
public override void PrintLeft(TextWriter writer)
|
||||
{
|
||||
if (_literalName.Length > 3)
|
||||
{
|
||||
writer.Write("(");
|
||||
writer.Write(_literalName);
|
||||
writer.Write(")");
|
||||
}
|
||||
|
||||
if (_literalValue[0] == 'n')
|
||||
{
|
||||
writer.Write("-");
|
||||
writer.Write(_literalValue.AsSpan(1));
|
||||
}
|
||||
else
|
||||
{
|
||||
writer.Write(_literalValue);
|
||||
}
|
||||
|
||||
if (_literalName.Length <= 3)
|
||||
{
|
||||
writer.Write(_literalName);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue