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 20:01:11 +0300
committernosami <jasonimison@gmail.com>2022-10-25 13:44:28 +0300
commitde04105b1b51581f79d8f7790eeabebe3c620d6a (patch)
treede7b07583cda7013ca44629170ad06afc7f796bb
parent736ce25c93202532dcfc8ecfbcfa2a9f0309dcca (diff)
Add ArgumetSyntax visitor
-rw-r--r--Mono.Debugging/Mono.Debugging.Evaluation/NRefactoryExpressionEvaluatorVisitor.cs30
1 files changed, 1 insertions, 29 deletions
diff --git a/Mono.Debugging/Mono.Debugging.Evaluation/NRefactoryExpressionEvaluatorVisitor.cs b/Mono.Debugging/Mono.Debugging.Evaluation/NRefactoryExpressionEvaluatorVisitor.cs
index 6c662f6..81dcb87 100644
--- a/Mono.Debugging/Mono.Debugging.Evaluation/NRefactoryExpressionEvaluatorVisitor.cs
+++ b/Mono.Debugging/Mono.Debugging.Evaluation/NRefactoryExpressionEvaluatorVisitor.cs
@@ -1226,35 +1226,7 @@ namespace Mono.Debugging.Evaluation
public override ValueReference VisitArgument (ArgumentSyntax node)
{
- //public void MethodWithTypeGenericArgsEval()
- //{
- // var a = new A("Just A");
- // var wrappedA = new Wrapper<A>(new A("wrappedA"));
- // var genericClass = new GenericClass<A>(new A("Constructor arg A"));
- // //genericClass.BaseMethodWithClassTArg (wrappedA);
- // //genericClass.RetMethodWithClassTArg (a)
- // Console.WriteLine("Break for MethodWithTypeGenericArgsEval");/*ba6350e5-7149-4cc2-a4cf-8a54c635eb38*/
- //}
-
- //class GenericBaseClass<TBaseClassArg>
- // {
- // public readonly TBaseClassArg myArg;
-
- // public GenericBaseClass(TBaseClassArg arg)
- // {
- // myArg = arg;
- // }
-
- // public TBaseClassArg BaseMethodWithClassTArg(TBaseClassArg arg)
- // {
- // return arg;
- // }
- // }
-
- //var baseMethodEval = Eval("genericClass.BaseMethodWithClassTArg (wrappedA)");
- //Assert.NotNull(baseMethodEval);
- //Assert.AreEqual("{Wrapper(wrappedA)}", baseMethodEval.Value)
- return base.VisitArgument (node);
+ return this.Visit(node.Expression);
}
public override ValueReference DefaultVisit (SyntaxNode node)