CloneSet512


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6320.981ExpressionStatement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
16200
Closure/closure/goog/proto2/message.js
26217
Closure/closure/goog/proto2/message.js
36234
Closure/closure/goog/proto2/message.js
Clone Instance
1
Line Count
6
Source Line
200
Source File
Closure/closure/goog/proto2/message.js

/**
 * Returns whether there is a value stored at the field specified by the
 * given field descriptor.
 *
 * @param {goog.proto2.FieldDescriptor} field The field for which to check
 *     if there is a value.
 *
 * @return {boolean} True if a value was found.
 */
goog.proto2.Message.prototype.has=  function (field){
  goog.proto2.Util.assert(
      field.getContainingType( )== this.descriptor_,
      'The current message does not contain the given field');

  return this.has$Value(field.getTag( ));
                                                    } ;


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

/**
 * Returns the array of values found for the given repeated field.
 *
 * @param {goog.proto2.FieldDescriptor} field The field for which to
 *     return the values.
 *
 * @return {Array.<*>} The values found.
 */
goog.proto2.Message.prototype.arrayOf=  function (field){
  goog.proto2.Util.assert(
      field.getContainingType( )== this.descriptor_,
      'The current message does not contain the given field');

  return this.array$Values(field.getTag( ));
                                                        } ;


Clone Instance
3
Line Count
6
Source Line
234
Source File
Closure/closure/goog/proto2/message.js

/**
 * Returns the number of values stored in the given field.
 *
 * @param {goog.proto2.FieldDescriptor} field The field for which to count
 *     the number of values.
 *
 * @return {number} The count of the values in the given field.
 */
goog.proto2.Message.prototype.countOf=  function (field){
  goog.proto2.Util.assert(
      field.getContainingType( )== this.descriptor_,
      'The current message does not contain the given field');

  return this.count$Values(field.getTag( ));
                                                        } ;


Clone AbstractionParameter Count: 2Parameter Bindings

/**
 * Returns the number of values stored in the given field.
 *
 * @param {goog.proto2.FieldDescriptor} field The field for which to count
 *     the number of values.
 *
 * @return {number} The count of the values in the given field.
 */
/**
 * Returns the array of values found for the given repeated field.
 *
 * @param {goog.proto2.FieldDescriptor} field The field for which to
 *     return the values.
 *
 * @return {Array.<*>} The values found.
 */
/**
 * Returns whether there is a value stored at the field specified by the
 * given field descriptor.
 *
 * @param {goog.proto2.FieldDescriptor} field The field for which to check
 *     if there is a value.
 *
 * @return {boolean} True if a value was found.
 */
goog.proto2.Message.prototype. [[#variable62c70560]]= function (field)
                                                      { goog.proto2.Util.assert(field.getContainingType( )==this.descriptor_,'The current message does not contain the given field');
                                                        return this. [[#variable62c70500]](field.getTag( ));
                                                      } ;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#62c70560]]
countOf 
12[[#62c70560]]
arrayOf 
13[[#62c70560]]
has 
21[[#62c70500]]
count$Values 
22[[#62c70500]]
array$Values 
23[[#62c70500]]
has$Value