Exemplo n.º 1
0
        /// <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);
        }
Exemplo n.º 2
0
        public virtual CodeFlowLocation VisitCodeFlowLocation(CodeFlowLocation node)
        {
            if (node != null)
            {
                node.Location = VisitNullChecked(node.Location);
                node.Stack    = VisitNullChecked(node.Stack);
            }

            return(node);
        }
Exemplo n.º 3
0
 public bool ValueEquals(CodeFlowLocation other) => ValueComparer.Equals(this, other);