ZoneCodeGenerator: Fix not respecting when in an operation the second operand should be calculated first but the precedence is the same

This commit is contained in:
Jan 2019-12-24 17:19:49 +01:00
parent 33ec343460
commit 86790d1486

View File

@ -14,7 +14,7 @@ namespace ZoneCodeGenerator.Domain.Evaluation
public IEvaluation Operand2 { get; }
public bool Operand2NeedsParenthesis => Operand2 is Operation operation2 &&
operation2.OperationType.Precedence > OperationType.Precedence;
operation2.OperationType.Precedence >= OperationType.Precedence;
public OperationType OperationType { get; }