/// <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)));
 }
예제 #2
0
        /// <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));
        }