Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
6 | 2 | 2 | 0.981 | ExpressionStatement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 6 | 291 | Closure/closure/goog/proto2/message.js |
2 | 6 | 308 | Closure/closure/goog/proto2/message.js |
| ||||
/** * Stores the given value to the field specified by the * given field descriptor. Note that the field must not be repeated. * * @param {goog.proto2.FieldDescriptor} field The field for which to set * the value. * @param {*} value The new value for the field. */ goog.proto2.Message.prototype.set= function (field, value){ goog.proto2.Util.assert( field.getContainingType( )== this.descriptor_, 'The current message does not contain the given field'); this.set$Value(field.getTag( ),value); } ; |
| ||||
/** * Adds the given value to the field specified by the * given field descriptor. Note that the field must be repeated. * * @param {goog.proto2.FieldDescriptor} field The field in which to add the * the value. * @param {*} value The new value to add to the field. */ goog.proto2.Message.prototype.add= function (field, value){ goog.proto2.Util.assert( field.getContainingType( )== this.descriptor_, 'The current message does not contain the given field'); this.add$Value(field.getTag( ),value); } ; |
| |||
/** * Adds the given value to the field specified by the * given field descriptor. Note that the field must be repeated. * * @param {goog.proto2.FieldDescriptor} field The field in which to add the * the value. * @param {*} value The new value to add to the field. */ /** * Stores the given value to the field specified by the * given field descriptor. Note that the field must not be repeated. * * @param {goog.proto2.FieldDescriptor} field The field for which to set * the value. * @param {*} value The new value for the field. */ goog.proto2.Message.prototype. [[#variable20403e60]]= function (field,value) { goog.proto2.Util.assert(field.getContainingType( )==this.descriptor_,'The current message does not contain the given field'); this. [[#variable20403de0]](field.getTag( ),value); } ; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#20403e60]] | add |
1 | 2 | [[#20403e60]] | set |
2 | 1 | [[#20403de0]] | add$Value |
2 | 2 | [[#20403de0]] | set$Value |