/// <summary> /// Initializes a new instance of the <see cref="CodeFlowLocation" /> class from the specified instance. /// </summary> /// <param name="other"> /// The instance from which the new instance is to be initialized. /// </param> /// <exception cref="ArgumentNullException"> /// Thrown if <paramref name="other" /> is null. /// </exception> public CodeFlowLocation(CodeFlowLocation other) { if (other == null) { throw new ArgumentNullException(nameof(other)); } Init(other.Step, other.Location, other.Stack, other.Kind, other.Module, other.State, other.NestingLevel, other.ExecutionOrder, other.Importance, other.Properties); }
public virtual CodeFlowLocation VisitCodeFlowLocation(CodeFlowLocation node) { if (node != null) { node.Location = VisitNullChecked(node.Location); node.Stack = VisitNullChecked(node.Stack); } return(node); }
public bool ValueEquals(CodeFlowLocation other) => ValueComparer.Equals(this, other);