| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 2 | 4 | 3 | 0.956 | ExpressionStatement |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 2 | 962 | Closure/closure/goog/dom/dom.js |
| 2 | 2 | 972 | Closure/closure/goog/dom/dom.js |
| 3 | 2 | 982 | Closure/closure/goog/dom/dom.js |
| 4 | 2 | 993 | Closure/closure/goog/dom/dom.js |
| ||||
/**
* Returns the first child node that is an element.
* @param {Node} node The node to get the first child element of.
* @return {Element} The first child node of {@code node} that is an element.
*/
goog.dom.getFirstElementChild= function (node){
return goog.dom.getNextElementNode_(node.firstChild, true);
} ;
|
| ||||
/**
* Returns the last child node that is an element.
* @param {Node} node The node to get the last child element of.
* @return {Element} The last child node of {@code node} that is an element.
*/
goog.dom.getLastElementChild= function (node){
return goog.dom.getNextElementNode_(node.lastChild, false);
} ;
|
| ||||
/**
* Returns the first next sibling that is an element.
* @param {Node} node The node to get the next sibling element of.
* @return {Element} The next sibling of {@code node} that is an element.
*/
goog.dom.getNextElementSibling= function (node){
return goog.dom.getNextElementNode_(node.nextSibling, true);
} ;
|
| ||||
/**
* Returns the first previous sibling that is an element.
* @param {Node} node The node to get the previous sibling element of.
* @return {Element} The first previous sibling of {@code node} that is
* an element.
*/
goog.dom.getPreviousElementSibling= function (node){
return goog.dom.getNextElementNode_(node.previousSibling, false);
} ;
|
| |||
/**
* Returns the first previous sibling that is an element.
* @param {Node} node The node to get the previous sibling element of.
* @return {Element} The first previous sibling of {@code node} that is
* an element.
*/
/**
* Returns the first next sibling that is an element.
* @param {Node} node The node to get the next sibling element of.
* @return {Element} The next sibling of {@code node} that is an element.
*/
/**
* Returns the last child node that is an element.
* @param {Node} node The node to get the last child element of.
* @return {Element} The last child node of {@code node} that is an element.
*/
/**
* Returns the first child node that is an element.
* @param {Node} node The node to get the first child element of.
* @return {Element} The first child node of {@code node} that is an element.
*/
goog.dom. [[#variable62b36b40]]= function (node)
{ return goog.dom.getNextElementNode_(node. [[#variable5a9ed720]], [[#variable617685e0]]);
} ;
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#62b36b40]] | getPreviousElementSibling |
| 1 | 2 | [[#62b36b40]] | getNextElementSibling |
| 1 | 3 | [[#62b36b40]] | getLastElementChild |
| 1 | 4 | [[#62b36b40]] | getFirstElementChild |
| 2 | 1 | [[#5a9ed720]] | previousSibling |
| 2 | 2 | [[#5a9ed720]] | nextSibling |
| 2 | 3 | [[#5a9ed720]] | lastChild |
| 2 | 4 | [[#5a9ed720]] | firstChild |
| 3 | 1 | [[#617685e0]] | false |
| 3 | 2 | [[#617685e0]] | true |
| 3 | 3 | [[#617685e0]] | false |
| 3 | 4 | [[#617685e0]] | true |