Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
3 | 2 | 2 | 0.960 | ExpressionStatement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 3 | 886 | Closure/closure/goog/dom/dom.js |
2 | 3 | 899 | Closure/closure/goog/dom/dom.js |
| ||||
/** * Inserts a new node before an existing reference node (i.e. as the previous * sibling). If the reference node has no parent, then does nothing. * @param {Node} newNode Node to insert. * @param {Node} refNode Reference node to insert before. */ goog.dom.insertSiblingBefore= function (newNode, refNode){ if (refNode.parentNode) { refNode.parentNode.insertBefore(newNode, refNode); } } ; |
| ||||
/** * Inserts a new node after an existing reference node (i.e. as the next * sibling). If the reference node has no parent, then does nothing. * @param {Node} newNode Node to insert. * @param {Node} refNode Reference node to insert after. */ goog.dom.insertSiblingAfter= function (newNode, refNode){ if (refNode.parentNode) { refNode.parentNode.insertBefore(newNode, refNode.nextSibling); } } ; |
| |||
/** * Inserts a new node after an existing reference node (i.e. as the next * sibling). If the reference node has no parent, then does nothing. * @param {Node} newNode Node to insert. * @param {Node} refNode Reference node to insert after. */ /** * Inserts a new node before an existing reference node (i.e. as the previous * sibling). If the reference node has no parent, then does nothing. * @param {Node} newNode Node to insert. * @param {Node} refNode Reference node to insert before. */ goog.dom. [[#variable20d7a8e0]]= function (newNode,refNode) { if (refNode.parentNode) { refNode.parentNode.insertBefore(newNode, [[#variable20d7a880]]); } } ; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#20d7a8e0]] | insertSiblingAfter |
1 | 2 | [[#20d7a8e0]] | insertSiblingBefore |
2 | 1 | [[#20d7a880]] | refNode.nextSibling |
2 | 2 | [[#20d7a880]] | refNode |