Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
4 | 2 | 2 | 0.974 | ExpressionStatement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 4 | 391 | Closure/third_party/closure/goog/mochikit/async/deferred.js |
2 | 4 | 403 | Closure/third_party/closure/goog/mochikit/async/deferred.js |
| ||||
/** * Creates a deferred that always succeeds. * @param {*} res The result. * @return {!goog.async.Deferred} The deferred object. */ goog.async.Deferred.succeed= function (res){ var d= new goog.async.Deferred( ); d.callback(res); return d; } ; |
| ||||
/** * Creates a deferred that always fails. * @param {*} res The error result. * @return {!goog.async.Deferred} The deferred object. */ goog.async.Deferred.fail= function (res){ var d= new goog.async.Deferred( ); d.errback(res); return d; } ; |
| |||
/** * Creates a deferred that always fails. * @param {*} res The error result. * @return {!goog.async.Deferred} The deferred object. */ /** * Creates a deferred that always succeeds. * @param {*} res The result. * @return {!goog.async.Deferred} The deferred object. */ goog.async.Deferred. [[#variable1f9410a0]]= function (res) { var d=new goog.async.Deferred( ); d. [[#variable1f941040]](res); return d; } ; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#1f9410a0]] | fail |
1 | 2 | [[#1f9410a0]] | succeed |
2 | 1 | [[#1f941040]] | errback |
2 | 2 | [[#1f941040]] | callback |