CloneSet1146


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6220.981ExpressionStatement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
16291
Closure/closure/goog/proto2/message.js
26308
Closure/closure/goog/proto2/message.js
Clone Instance
1
Line Count
6
Source Line
291
Source File
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);
                                                           } ;


Clone Instance
2
Line Count
6
Source Line
308
Source File
Closure/closure/goog/proto2/message.js

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


Clone AbstractionParameter Count: 2Parameter Bindings

/**
 * 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#20403e60]]
add 
12[[#20403e60]]
set 
21[[#20403de0]]
add$Value 
22[[#20403de0]]
set$Value