Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
18 | 2 | 2 | 0.968 | SourceElements[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 18 | 416 | Closure/third_party/closure/goog/mochikit/async/deferred.js |
2 | 18 | 443 | Closure/third_party/closure/goog/mochikit/async/deferred.js |
| ||||
/** * An error sub class that is used when a deferred has already been called. * @param {!goog.async.Deferred} deferred The deferred object. * @constructor * @extends {goog.debug.Error} */ goog.async.Deferred.AlreadyCalledError= function (deferred){ goog.debug.Error.call(this ); /** * The deferred that raised this error. * @type {goog.async.Deferred} */ this.deferred= deferred; } ; goog.inherits(goog.async.Deferred.AlreadyCalledError, goog.debug.Error); /** * Message text. * @type {string} * @override */ goog.async.Deferred.AlreadyCalledError.prototype.message= 'Already called'; |
| ||||
/** * An error sub class that is used when a deferred is cancelled. * @param {!goog.async.Deferred} deferred The deferred object. * @constructor * @extends {goog.debug.Error} */ goog.async.Deferred.CancelledError= function (deferred){ goog.debug.Error.call(this ); /** * The deferred that raised this error. * @type {goog.async.Deferred} */ this.deferred= deferred; } ; goog.inherits(goog.async.Deferred.CancelledError, goog.debug.Error); /** * Message text. * @type {string} * @override */ goog.async.Deferred.CancelledError.prototype.message= 'Deferred was cancelled'; |
| |||
/** * An error sub class that is used when a deferred has already been called. * @param {!goog.async.Deferred} deferred The deferred object. * @constructor * @extends {goog.debug.Error} */ /** * An error sub class that is used when a deferred is cancelled. * @param {!goog.async.Deferred} deferred The deferred object. * @constructor * @extends {goog.debug.Error} */ goog.async.Deferred. [[#variable3afcd6c0]]= function (deferred) { goog.debug.Error.call(this ); /** * The deferred that raised this error. * @type {goog.async.Deferred} */ this.deferred=deferred; } ; goog.inherits(goog.async.Deferred. [[#variable3afcd6c0]],goog.debug.Error); /** * Message text. * @type {string} * @override */ goog.async.Deferred. [[#variable3afcd6c0]].prototype.message= [[#variable41c0bc00]]; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#3afcd6c0]] | AlreadyCalledError |
1 | 2 | [[#3afcd6c0]] | CancelledError |
2 | 1 | [[#41c0bc00]] | 'Already called' |
2 | 2 | [[#41c0bc00]] | 'Deferred was cancelled' |