Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/debugger-libs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornosami <jasonimison@gmail.com>2022-10-25 13:53:51 +0300
committernosami <jasonimison@gmail.com>2022-10-25 13:53:51 +0300
commit390a92e7b64e418ff9ae5e72f85b9d4a3242c871 (patch)
tree52286339c501c474a3adaad4324f75c40f216f77
parent9ae81bd3764d37cb6b544ca397d8087750766562 (diff)
Fix indentation
-rw-r--r--Mono.Debugging/Mono.Debugging.Evaluation/NRefactoryExtensions.cs46
1 files changed, 24 insertions, 22 deletions
diff --git a/Mono.Debugging/Mono.Debugging.Evaluation/NRefactoryExtensions.cs b/Mono.Debugging/Mono.Debugging.Evaluation/NRefactoryExtensions.cs
index ebabc02..bfe650c 100644
--- a/Mono.Debugging/Mono.Debugging.Evaluation/NRefactoryExtensions.cs
+++ b/Mono.Debugging/Mono.Debugging.Evaluation/NRefactoryExtensions.cs
@@ -149,32 +149,34 @@ namespace Mono.Debugging.Evaluation
default: return null;
}
}
- public static string Resolve (string shortTypeName)
- {
- string longName = "";
+
+ public static string Resolve(string shortTypeName)
+ {
+ string longName;
switch (shortTypeName) {
- case "bool": longName = "System.Boolean"; break;
- case "byte": longName = "System.Byte"; break;
- case "sbyte": longName = "System.SByte"; break;
- case "char": longName = "System.Char"; break;
- case "decimal": longName = "System.Decimal"; break;
- case "double": longName = "System.Double"; break;
- case "float": longName = "System.Single"; break;
- case "int": longName = "System.Int32"; break;
- case "uint": longName = "System.UInt32"; break;
- case "nint": longName = "System.IntPtr"; break;
- case "nuint": longName = "System.UIntPtr"; break;
- case "long": longName = "System.Int64"; break;
- case "ulong": longName = "System.UInt64"; break;
- case "short": longName = "System.Int16"; break;
- case "ushort": longName = "System.UInt16"; break;
- case "object": longName = "System.Object"; break;
- case "string": longName = "System.String"; break;
- case "dynamic": longName = "System.Object"; break;
- default: throw new ArgumentException($"Unknown type {shortTypeName}");
+ case "bool": longName = "System.Boolean"; break;
+ case "byte": longName = "System.Byte"; break;
+ case "sbyte": longName = "System.SByte"; break;
+ case "char": longName = "System.Char"; break;
+ case "decimal": longName = "System.Decimal"; break;
+ case "double": longName = "System.Double"; break;
+ case "float": longName = "System.Single"; break;
+ case "int": longName = "System.Int32"; break;
+ case "uint": longName = "System.UInt32"; break;
+ case "nint": longName = "System.IntPtr"; break;
+ case "nuint": longName = "System.UIntPtr"; break;
+ case "long": longName = "System.Int64"; break;
+ case "ulong": longName = "System.UInt64"; break;
+ case "short": longName = "System.Int16"; break;
+ case "ushort": longName = "System.UInt16"; break;
+ case "object": longName = "System.Object"; break;
+ case "string": longName = "System.String"; break;
+ case "dynamic": longName = "System.Object"; break;
+ default: throw new ArgumentException($"Unknown type {shortTypeName}");
}
return longName;
}
+
static string Resolve (this PredefinedTypeSyntax type, EvaluationContext ctx, List<object> args)
{
return Resolve (type);