mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-08-04 19:42:25 -07:00
Adjust naming conventions and general refactoring in HLE Project (#490)
* Rename enum fields
* Naming conventions
* Remove unneeded ".this"
* Remove unneeded semicolons
* Remove unused Usings
* Don't use var
* Remove unneeded enum underlying types
* Explicitly label class visibility
* Remove unneeded @ prefixes
* Remove unneeded commas
* Remove unneeded if expressions
* Method doesn't use unsafe code
* Remove unneeded casts
* Initialized objects don't need an empty constructor
* Remove settings from DotSettings
* Revert "Explicitly label class visibility"
This reverts commit ad5eb5787c
.
* Small changes
* Revert external enum renaming
* Changes from feedback
* Remove unneeded property setters
This commit is contained in:
@@ -11,14 +11,14 @@ namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast
|
||||
String,
|
||||
IStream,
|
||||
OStream,
|
||||
IOStream,
|
||||
IOStream
|
||||
}
|
||||
|
||||
private SpecialType SpecialSubstitutionKey;
|
||||
private SpecialType _specialSubstitutionKey;
|
||||
|
||||
public SpecialSubstitution(SpecialType SpecialSubstitutionKey) : base(NodeType.SpecialSubstitution)
|
||||
public SpecialSubstitution(SpecialType specialSubstitutionKey) : base(NodeType.SpecialSubstitution)
|
||||
{
|
||||
this.SpecialSubstitutionKey = SpecialSubstitutionKey;
|
||||
_specialSubstitutionKey = specialSubstitutionKey;
|
||||
}
|
||||
|
||||
public void SetExtended()
|
||||
@@ -28,7 +28,7 @@ namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast
|
||||
|
||||
public override string GetName()
|
||||
{
|
||||
switch (SpecialSubstitutionKey)
|
||||
switch (_specialSubstitutionKey)
|
||||
{
|
||||
case SpecialType.Allocator:
|
||||
return "allocator";
|
||||
@@ -54,7 +54,7 @@ namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast
|
||||
|
||||
private string GetExtendedName()
|
||||
{
|
||||
switch (SpecialSubstitutionKey)
|
||||
switch (_specialSubstitutionKey)
|
||||
{
|
||||
case SpecialType.Allocator:
|
||||
return "std::allocator";
|
||||
@@ -73,16 +73,16 @@ namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast
|
||||
return null;
|
||||
}
|
||||
|
||||
public override void PrintLeft(TextWriter Writer)
|
||||
public override void PrintLeft(TextWriter writer)
|
||||
{
|
||||
if (Type == NodeType.ExpandedSpecialSubstitution)
|
||||
{
|
||||
Writer.Write(GetExtendedName());
|
||||
writer.Write(GetExtendedName());
|
||||
}
|
||||
else
|
||||
{
|
||||
Writer.Write("std::");
|
||||
Writer.Write(GetName());
|
||||
writer.Write("std::");
|
||||
writer.Write(GetName());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user