Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
6 | 2 | 2 | 0.978 | ExpressionStatement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 6 | 85 | Closure/closure/goog/editor/node.js |
2 | 6 | 99 | Closure/closure/goog/editor/node.js |
| ||||
/** * Get the right-most non-ignorable leaf node of the given node. * @param {Node} parent The parent ndoe. * @return {Node} The right-most non-ignorable leaf node. */ goog.editor.node.getRightMostLeaf= function (parent){ var temp; while (temp= goog.editor.node.getLastChild(parent)) { parent= temp; } return parent; } ; |
| ||||
/** * Get the left-most non-ignorable leaf node of the given node. * @param {Node} parent The parent ndoe. * @return {Node} The left-most non-ignorable leaf node. */ goog.editor.node.getLeftMostLeaf= function (parent){ var temp; while (temp= goog.editor.node.getFirstChild(parent)) { parent= temp; } return parent; } ; |
| |||
/** * Get the left-most non-ignorable leaf node of the given node. * @param {Node} parent The parent ndoe. * @return {Node} The left-most non-ignorable leaf node. */ /** * Get the right-most non-ignorable leaf node of the given node. * @param {Node} parent The parent ndoe. * @return {Node} The right-most non-ignorable leaf node. */ goog.editor.node. [[#variable6317c9e0]]= function (parent) { var temp; while (temp=goog.editor.node. [[#variable6317cf60]](parent)) { parent=temp; } return parent; } ; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#6317c9e0]] | getLeftMostLeaf |
1 | 2 | [[#6317c9e0]] | getRightMostLeaf |
2 | 1 | [[#6317cf60]] | getFirstChild |
2 | 2 | [[#6317cf60]] | getLastChild |