/// <summary> /// Sets the next node by version /// </summary> /// <param name="nextNode">the node to set</param> /// <returns>the index (for pathing) of the added node</returns> public int AddNextNode(MethodNode nextNode) { this.nextNodes.Add(nextNode); return(this.nextNodes.Count - 1); }
/// <summary> /// Adds a node to the end of this code path /// </summary> /// <param name="node">node to add</param> private CodePath AddLast(MethodNode node) { return(AddLast(node, node)); }