| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 2 | 4 | 3 | 0.959 | ExpressionStatement |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 2 | 232 | Closure/closure/goog/dom/abstractrange.js |
| 2 | 2 | 242 | Closure/closure/goog/dom/abstractrange.js |
| 3 | 2 | 251 | Closure/closure/goog/dom/abstractrange.js |
| 4 | 2 | 261 | Closure/closure/goog/dom/abstractrange.js |
| ||||
/**
* @return {Node} The element or text node the range is anchored at.
*/
goog.dom.AbstractRange.prototype.getAnchorNode= function ( )
{
return this.isReversed( )
? this.getEndNode( )
: this.getStartNode( );
} ;
|
| ||||
/**
* @return {number} The offset into the node the range is anchored at. For
* text nodes, this is an offset into the node value. For elements, this
* is an offset into the childNodes array.
*/
goog.dom.AbstractRange.prototype.getAnchorOffset= function ( )
{
return this.isReversed( )
? this.getEndOffset( )
: this.getStartOffset( );
} ;
|
| ||||
/**
* @return {Node} The element or text node the range is focused at - i.e. where
* the cursor is.
*/
goog.dom.AbstractRange.prototype.getFocusNode= function ( )
{
return this.isReversed( )
? this.getStartNode( )
: this.getEndNode( );
} ;
|
| ||||
/**
* @return {number} The offset into the node the range is focused at - i.e.
* where the cursor is. For text nodes, this is an offset into the node
* value. For elements, this is an offset into the childNodes array.
*/
goog.dom.AbstractRange.prototype.getFocusOffset= function ( )
{
return this.isReversed( )
? this.getStartOffset( )
: this.getEndOffset( );
} ;
|
| |||
/**
* @return {number} The offset into the node the range is focused at - i.e.
* where the cursor is. For text nodes, this is an offset into the node
* value. For elements, this is an offset into the childNodes array.
*/
/**
* @return {Node} The element or text node the range is focused at - i.e. where
* the cursor is.
*/
/**
* @return {number} The offset into the node the range is anchored at. For
* text nodes, this is an offset into the node value. For elements, this
* is an offset into the childNodes array.
*/
/**
* @return {Node} The element or text node the range is anchored at.
*/
goog.dom.AbstractRange.prototype. [[#variable41b98120]]= function ( )
{ return this.isReversed( )
?this. [[#variable41b982a0]]( )
: this. [[#variable41b98300]]( );
} ;
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#41b98120]] | getFocusOffset |
| 1 | 2 | [[#41b98120]] | getFocusNode |
| 1 | 3 | [[#41b98120]] | getAnchorOffset |
| 1 | 4 | [[#41b98120]] | getAnchorNode |
| 2 | 1 | [[#41b982a0]] | getStartOffset |
| 2 | 2 | [[#41b982a0]] | getStartNode |
| 2 | 3 | [[#41b982a0]] | getEndOffset |
| 2 | 4 | [[#41b982a0]] | getEndNode |
| 3 | 1 | [[#41b98300]] | getEndOffset |
| 3 | 2 | [[#41b98300]] | getEndNode |
| 3 | 3 | [[#41b98300]] | getStartOffset |
| 3 | 4 | [[#41b98300]] | getStartNode |