Skip to content

Commit b8e3b7f

Browse files
author
Sébastien Geiser
committed
Right parentheses
1 parent fefd211 commit b8e3b7f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CodingSeb.ExpressionEvaluator/ExpressionEvaluator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2114,9 +2114,9 @@ protected virtual bool EvaluateVarOrFunc(string expression, Stack<object> stack,
21142114
{
21152115
stack.Push(varValueToPush);
21162116
}
2117-
else if (Variables.TryGetValue(varFuncName, out object cusVarValueToPush)
2117+
else if ((Variables.TryGetValue(varFuncName, out object cusVarValueToPush)
21182118
|| varFuncMatch.Groups["assignationOperator"].Success
2119-
|| stack.Count == 1 && stack.Peek() is ClassOrEnumType && string.IsNullOrWhiteSpace(expression.Substring(i))
2119+
|| (stack.Count == 1 && stack.Peek() is ClassOrEnumType && string.IsNullOrWhiteSpace(expression.Substring(i))))
21202120
&& (cusVarValueToPush == null || !TypesToBlock.Contains(cusVarValueToPush.GetType())))
21212121
{
21222122
if (stack.Count == 1 && stack.Peek() is ClassOrEnumType classOrEnum)

0 commit comments

Comments
 (0)