Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
2 | 2 | 1 | 0.972 | ExpressionStatement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 2 | 60 | Closure/closure/goog/math/coordinate.js |
2 | 2 | 100 | Closure/closure/goog/math/vec2.js |
| ||||
/** * Returns a new copy of the coordinate. * @return {!goog.math.Coordinate} A clone of this coordinate. */ goog.math.Coordinate.prototype.clone= function ( ) { return new goog.math.Coordinate(this.x, this.y); } ; |
| ||||
/** * @return {!goog.math.Vec2} A new vector with the same coordinates as this one. */ goog.math.Vec2.prototype.clone= function ( ) { return new goog.math.Vec2(this.x, this.y); } ; |
| |||
/** * Returns a new copy of the coordinate. * @return {!goog.math.Coordinate} A clone of this coordinate. */ /** * @return {!goog.math.Vec2} A new vector with the same coordinates as this one. */ goog.math. [[#variable3edaf000]].prototype.clone= function ( ) { return new goog.math. [[#variable3edaf000]](this.x,this.y); } ; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#3edaf000]] | Coordinate |
1 | 2 | [[#3edaf000]] | Vec2 |