Skip to content

Commit ea9d7f7

Browse files
author
David Karlaš
committed
Since we now distinguish between ImplicitEvaluation and NotSupported we need to call it aproperitly
1 parent acfea9a commit ea9d7f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Mono.Debugging/Mono.Debugging.Evaluation/NRefactoryExpressionEvaluatorVisitor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ public ValueReference VisitAsExpression (AsExpression asExpression)
564564
public ValueReference VisitAssignmentExpression (AssignmentExpression assignmentExpression)
565565
{
566566
if (!options.AllowMethodEvaluation)
567-
throw NotSupported ();
567+
throw new ImplicitEvaluationDisabledException ();
568568

569569
var left = assignmentExpression.Left.AcceptVisitor<ValueReference> (this);
570570

@@ -793,7 +793,7 @@ string ResolveMethodName (IdentifierExpression method, out object[] typeArgs)
793793
public ValueReference VisitInvocationExpression (InvocationExpression invocationExpression)
794794
{
795795
if (!options.AllowMethodEvaluation)
796-
throw NotSupported ();
796+
throw new ImplicitEvaluationDisabledException ();
797797

798798
bool invokeBaseMethod = false;
799799
ValueReference target = null;

0 commit comments

Comments
 (0)