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.979 | ExpressionStatement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 3 | 247 | Closure/closure/goog/datasource/expr.js |
2 | 3 | 262 | Closure/closure/goog/datasource/expr.js |
| ||||
/** * Evaluate an expression on a data node, and return matching nodes * Recursively walks through child nodes to evaluate * * @param {goog.ds.DataNode=} opt_ds Optional datasource to evaluate against. * If not provided, evaluates against data root. * @param {boolean=} opt_canCreate If true, will try to create new nodes. * @return {goog.ds.DataNodeList} Matching nodes. */ goog.ds.Expr.prototype.getNodes= function (opt_ds, opt_canCreate){ return /** @type {goog.ds.DataNodeList} */ (this.getNodes_(opt_ds, false ,opt_canCreate)); } ; |
| ||||
/** * Evaluate an expression on a data node, and return the first matching node * Recursively walks through child nodes to evaluate * * @param {goog.ds.DataNode=} opt_ds Optional datasource to evaluate against. * If not provided, evaluates against DataManager global root. * @param {boolean=} opt_canCreate If true, will try to create new nodes. * @return {goog.ds.DataNode} Matching nodes, or null if doesn't exist. */ goog.ds.Expr.prototype.getNode= function (opt_ds, opt_canCreate){ return /** @type {goog.ds.DataNode} */ (this.getNodes_(opt_ds, true ,opt_canCreate)); } ; |
| |||
/** * Evaluate an expression on a data node, and return the first matching node * Recursively walks through child nodes to evaluate * * @param {goog.ds.DataNode=} opt_ds Optional datasource to evaluate against. * If not provided, evaluates against DataManager global root. * @param {boolean=} opt_canCreate If true, will try to create new nodes. * @return {goog.ds.DataNode} Matching nodes, or null if doesn't exist. */ /** * Evaluate an expression on a data node, and return matching nodes * Recursively walks through child nodes to evaluate * * @param {goog.ds.DataNode=} opt_ds Optional datasource to evaluate against. * If not provided, evaluates against data root. * @param {boolean=} opt_canCreate If true, will try to create new nodes. * @return {goog.ds.DataNodeList} Matching nodes. */ goog.ds.Expr.prototype. [[#variable1fd301c0]]= function (opt_ds,opt_canCreate) { return /** @type {goog.ds.DataNode} */ /** @type {goog.ds.DataNodeList} */ (this.getNodes_(opt_ds, [[#variable1fd30800]],opt_canCreate)); } ; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#1fd301c0]] | getNode |
1 | 2 | [[#1fd301c0]] | getNodes |
2 | 1 | [[#1fd30800]] | true |
2 | 2 | [[#1fd30800]] | false |