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-18 14:48:28 +0300
committernosami <jasonimison@gmail.com>2022-10-25 13:44:28 +0300
commit839ecd491f4399626794206fdaa8b3c3469aa12d (patch)
tree084dad9f644993b6985893b626e46f86f638d7f2
parent8124bb5631729aebf136596ec5324b249a14f0f9 (diff)
Fix field assignment expression
-rw-r--r--Mono.Debugging/Mono.Debugging.Evaluation/NRefactoryExpressionEvaluatorVisitor.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/Mono.Debugging/Mono.Debugging.Evaluation/NRefactoryExpressionEvaluatorVisitor.cs b/Mono.Debugging/Mono.Debugging.Evaluation/NRefactoryExpressionEvaluatorVisitor.cs
index 975c890..7f041fc 100644
--- a/Mono.Debugging/Mono.Debugging.Evaluation/NRefactoryExpressionEvaluatorVisitor.cs
+++ b/Mono.Debugging/Mono.Debugging.Evaluation/NRefactoryExpressionEvaluatorVisitor.cs
@@ -1205,7 +1205,11 @@ namespace Mono.Debugging.Evaluation
public override ValueReference DefaultVisit (SyntaxNode node)
{
- throw NotSupported ();
+ if (node is LiteralExpressionSyntax syntax)
+ {
+ return LiteralValueReference.CreateObjectLiteral(ctx, expression, syntax.Token.Value);
+ }
+ throw NotSupported();
}
#endregion
}