modules/ballerina-core/src/main/java/org/ballerinalang/model/nodes/GotoNode.java
public int addNext(LinkedNode node) {
        linkedNodes.add(node);
        // Return the branch LinkID.
        return linkedNodes.size() - 1;
    }
/**
     * Add next Linked node.
     *
     * @param node next Linked node.
     * @return id for next Linked node.
     */
Add next Linked node.
@param node next Linked node.
@return id for next Linked node.
Add next Linked node . @param node next Linked node . @return id for next Linked node .
public int addNext(LinkedNode node) {
        linkedNodes.add(node);
        return linkedNodes.size() - 1;
    }
public int addNext ( LinkedNode node ) { linkedNodes . add ( node ) ; return linkedNodes . size ( ) - 1 ; }
Add next Linked node.
Add next Linked node .
// Return the branch LinkID.