Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
6 | 3 | 2 | 0.981 | ExpressionStatement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 6 | 200 | Closure/closure/goog/proto2/message.js |
2 | 6 | 217 | Closure/closure/goog/proto2/message.js |
3 | 6 | 234 | 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( )); } ; |
| ||||
/** * 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( )); } ; |
| ||||
/** * 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( )); } ; |
| |||
/** * 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#62c70560]] | countOf |
1 | 2 | [[#62c70560]] | arrayOf |
1 | 3 | [[#62c70560]] | has |
2 | 1 | [[#62c70500]] | count$Values |
2 | 2 | [[#62c70500]] | array$Values |
2 | 3 | [[#62c70500]] | has$Value |