Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
6 | 2 | 4 | 0.967 | ExpressionStatement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 6 | 53 | Closure/closure/goog/proto2/lazydeserializer.js |
2 | 5 | 91 | Closure/closure/goog/proto2/serializer.js |
| ||||
/** @inheritDoc */ goog.proto2.LazyDeserializer.prototype.deserialize= function (descriptor, data){ var message= descriptor.createMessageInstance( ); message.initializeForLazyDeserializer(this, data); goog.proto2.Util.assert(message instanceof goog.proto2.Message); return message; } ; |
| ||||
/** * Deserializes a message from the expected format. * * @param {goog.proto2.Descriptor} descriptor The descriptor of the message * to be created. * @param {*} data The data of the message. * * @return {goog.proto2.Message} The message created. */ goog.proto2.Serializer.prototype.deserialize= function (descriptor, data){ var message= descriptor.createMessageInstance( ); this.deserializeTo(message, data); goog.proto2.Util.assert(message instanceof goog.proto2.Message); return message; } ; |
| |||
/** @inheritDoc */ /** * Deserializes a message from the expected format. * * @param {goog.proto2.Descriptor} descriptor The descriptor of the message * to be created. * @param {*} data The data of the message. * * @return {goog.proto2.Message} The message created. */ goog.proto2. [[#variable42e2c6e0]].prototype.deserialize= function (descriptor,data) { var message=descriptor.createMessageInstance( ); [[#variable42e2c620]]. [[#variable42e2c700]]( [[#variable42e2c660]],data); goog.proto2.Util.assert(message instanceof goog.proto2.Message); return message; } ; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#42e2c6e0]] | LazyDeserializer |
1 | 2 | [[#42e2c6e0]] | Serializer |
2 | 1 | [[#42e2c620]] | message |
2 | 2 | [[#42e2c620]] | this |
3 | 1 | [[#42e2c700]] | initializeForLazyDeserializer |
3 | 2 | [[#42e2c700]] | deserializeTo |
4 | 1 | [[#42e2c660]] | this |
4 | 2 | [[#42e2c660]] | message |