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.971 | ExpressionStatement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 6 | 338 | Closure/closure/goog/datasource/fastdatanode.js |
2 | 6 | 710 | Closure/closure/goog/datasource/fastdatanode.js |
| ||||
/** * Gets the value of this data node (if called without opt_key) or * gets a child node (if called with opt_key). * @param {string=} opt_key Name of child node. * @return {goog.ds.DataNode} This data node or a child node. */ goog.ds.FastDataNode.prototype.get= function (opt_key){ if (!goog.isDef(opt_key)) { // if there is no key, DataNode#get was called return this ; } else { return this.getChildNode(opt_key); } } ; |
| ||||
/** * Gets the value of this data node (if called without opt_key) or * gets a child node (if called with opt_key). * @param {string=} opt_key Name of child node. * @return {Array|goog.ds.DataNode} Array of child nodes (if called without * opt_key), or a named child node otherwise. */ goog.ds.FastListNode.prototype.get= function (opt_key){ // if there are no arguments, DataNode.get was called if (!goog.isDef(opt_key)) { return this.values_; } else { return this.getChildNode(opt_key); } } ; |
| |||
/** * Gets the value of this data node (if called without opt_key) or * gets a child node (if called with opt_key). * @param {string=} opt_key Name of child node. * @return {Array|goog.ds.DataNode} Array of child nodes (if called without * opt_key), or a named child node otherwise. */ /** * Gets the value of this data node (if called without opt_key) or * gets a child node (if called with opt_key). * @param {string=} opt_key Name of child node. * @return {goog.ds.DataNode} This data node or a child node. */ goog.ds. [[#variable21225ec0]].prototype.get= function (opt_key) { // if there are no arguments, DataNode.get was called if (!goog.isDef(opt_key)) { // if there is no key, DataNode#get was called return [[#variable21225f40]]; } else { return this.getChildNode(opt_key); } } ; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#21225ec0]] | FastListNode |
1 | 2 | [[#21225ec0]] | FastDataNode |
2 | 1 | [[#21225f40]] | this.values_ |
2 | 2 | [[#21225f40]] | this |