/// <summary> /// Determines whether the specified <see cref = "Semantic" /> is equal to this instance. /// </summary> /// <param name = "other">The <see cref = "Semantic" /> to compare with this instance.</param> /// <returns> /// <c>true</c> if the specified <see cref = "Semantic" /> is equal to this instance; otherwise, <c>false</c>. /// </returns> /// <inheritdoc /> public bool Equals(Semantic other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(base.Equals(other) && Equals(other.Name, Name)); }
public override void Visit(Semantic semantic) { }
/// <inheritdoc /> public override void Visit(Semantic semantic) { Write(":").WriteSpace(); Write(semantic.Name); }
/// <summary> /// Determines whether the specified <see cref = "Semantic" /> is equal to this instance. /// </summary> /// <param name = "other">The <see cref = "Semantic" /> to compare with this instance.</param> /// <returns> /// <c>true</c> if the specified <see cref = "Semantic" /> is equal to this instance; otherwise, <c>false</c>. /// </returns> /// <inheritdoc /> public bool Equals(Semantic other) { if (ReferenceEquals(null, other)) { return false; } if (ReferenceEquals(this, other)) { return true; } return base.Equals(other) && Equals(other.Name, Name); }
public virtual void Visit(Semantic semantic) { Write(":").WriteSpace(); Write(semantic.Name); }