CloneSet776


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

/**
 * Returns the value stored at the field specified by the
 * given field descriptor.
 *
 * @param {goog.proto2.FieldDescriptor} field The field for which to get the
 *     value.
 * @param {number=} opt_index If the field is repeated, the index to use when
 *     looking up the value.
 *
 * @return {*} The value found or undefined if none.
 */
goog.proto2.Message.prototype.get=  function (field, opt_index){
  goog.proto2.Util.assert(
      field.getContainingType( )== this.descriptor_,
      'The current message does not contain the given field');

  return this.get$Value(field.getTag( ),opt_index);
                                                               } ;


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

/**
 * Returns the value stored at the field specified by the
 * given field descriptor or the default value if none exists.
 *
 * @param {goog.proto2.FieldDescriptor} field The field for which to get the
 *     value.
 * @param {number=} opt_index If the field is repeated, the index to use when
 *     looking up the value.
 *
 * @return {*} The value found or the default if none.
 */
goog.proto2.Message.prototype.getOrDefault=  function (field, opt_index){
  goog.proto2.Util.assert(
      field.getContainingType( )== this.descriptor_,
      'The current message does not contain the given field');

  return this.get$ValueOrDefault(field.getTag( ),opt_index);
                                                                        } ;


Clone AbstractionParameter Count: 2Parameter Bindings

/**
 * Returns the value stored at the field specified by the
 * given field descriptor or the default value if none exists.
 *
 * @param {goog.proto2.FieldDescriptor} field The field for which to get the
 *     value.
 * @param {number=} opt_index If the field is repeated, the index to use when
 *     looking up the value.
 *
 * @return {*} The value found or the default if none.
 */
/**
 * Returns the value stored at the field specified by the
 * given field descriptor.
 *
 * @param {goog.proto2.FieldDescriptor} field The field for which to get the
 *     value.
 * @param {number=} opt_index If the field is repeated, the index to use when
 *     looking up the value.
 *
 * @return {*} The value found or undefined if none.
 */
goog.proto2.Message.prototype. [[#variable3c406d20]]= function (field,opt_index)
                                                      { goog.proto2.Util.assert(field.getContainingType( )==this.descriptor_,'The current message does not contain the given field');
                                                        return this. [[#variable3c406c80]](field.getTag( ),opt_index);
                                                      } ;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#3c406d20]]
getOrDefault 
12[[#3c406d20]]
get 
21[[#3c406c80]]
get$ValueOrDefault 
22[[#3c406c80]]
get$Value