diff options
| author | Thomas Guillemard <thog@protonmail.com> | 2018-09-15 15:29:18 +0200 |
|---|---|---|
| committer | Ac_K <Acoustik666@gmail.com> | 2018-09-15 15:29:18 +0200 |
| commit | 46a11460d4701f66926f70b5dc394d209e877854 (patch) | |
| tree | 504a52d2e4d33d83515105c571cf3cae01ce6efe /Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/NodeArray.cs | |
| parent | 7542f4a65f1bc5124c1d6ada3e4875592069dadf (diff) | |
Rewrite the C++ Demangler (#416)
* Rewrite the C++ Demangler
This new Demangler provides support to almost every possible mangled
symbols and should behaves like GNU c++filt.
It works on 98.9% of the sdk's symbols and 99.5%
of Puyo Puyo Tetris's symbols.
* Fix code style
* Fix noexcept enclosed expression parsing issues
* fix code style issues
Diffstat (limited to 'Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/NodeArray.cs')
| -rw-r--r-- | Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/NodeArray.cs | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/NodeArray.cs b/Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/NodeArray.cs new file mode 100644 index 00000000..9720a8e4 --- /dev/null +++ b/Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/NodeArray.cs @@ -0,0 +1,31 @@ +using System; +using System.Collections.Generic; +using System.IO; + +namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast +{ + public class NodeArray : BaseNode + { + public List<BaseNode> Nodes { get; protected set; } + + public NodeArray(List<BaseNode> Nodes) : base(NodeType.NodeArray) + { + this.Nodes = Nodes; + } + + public NodeArray(List<BaseNode> Nodes, NodeType Type) : base(Type) + { + this.Nodes = Nodes; + } + + public override bool IsArray() + { + return true; + } + + public override void PrintLeft(TextWriter Writer) + { + Writer.Write(string.Join<BaseNode>(", ", Nodes.ToArray())); + } + } +}
\ No newline at end of file |
