CloneSet1603


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
4220.974ExpressionStatement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
14391
Closure/third_party/closure/goog/mochikit/async/deferred.js
24403
Closure/third_party/closure/goog/mochikit/async/deferred.js
Clone Instance
1
Line Count
4
Source Line
391
Source File
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;
                                            } ;


Clone Instance
2
Line Count
4
Source Line
403
Source File
Closure/third_party/closure/goog/mochikit/async/deferred.js

/**
 * 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;
                                         } ;


Clone AbstractionParameter Count: 2Parameter Bindings

/**
 * 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1f9410a0]]
fail 
12[[#1f9410a0]]
succeed 
21[[#1f941040]]
errback 
22[[#1f941040]]
callback