/// <inheritdoc /> public bool Equals(MorestachioOperatorExpression other) { return(Location.Equals(other.Location) && Operator.OperatorText.Equals(other.Operator.OperatorText) && LeftExpression.Equals(other.LeftExpression) && (RightExpression == other.RightExpression || RightExpression.Equals(other.RightExpression))); }
/// <inheritdoc /> public bool Equals(ExpressionArgument other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Name == other.Name && MorestachioExpression.Equals(other.MorestachioExpression) && Location.Equals(other.Location)); }