| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 6 | 2 | 3 | 0.984 | ExpressionStatement |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 6 | 228 | Closure/closure/goog/dom/tagiterator.js |
| 2 | 6 | 241 | Closure/closure/goog/dom/tagiterator.js |
| ||||
/**
* Skip the current tag.
*/
goog.dom.TagIterator.prototype.skipTag= function ( )
{
var check= this.reversed
? goog.dom.TagWalkType.END_TAG
:goog.dom.TagWalkType.START_TAG;
if (this.tagType== check) {
this.tagType= /** @type {goog.dom.TagWalkType} */
(check* -1);
this.depth+= this.tagType* (this.reversed
? -1
: 1);
}
} ;
|
| ||||
/**
* Restart the current tag.
*/
goog.dom.TagIterator.prototype.restartTag= function ( )
{
var check= this.reversed
? goog.dom.TagWalkType.START_TAG
:goog.dom.TagWalkType.END_TAG;
if (this.tagType== check) {
this.tagType= /** @type {goog.dom.TagWalkType} */
(check* -1);
this.depth+= this.tagType* (this.reversed
? -1
: 1);
}
} ;
|
| |||
/**
* Restart the current tag.
*/
/**
* Skip the current tag.
*/
goog.dom.TagIterator.prototype. [[#variable62f22b00]]= function ( )
{ var check=this.reversed
?goog.dom.TagWalkType. [[#variable62f22aa0]]
:goog.dom.TagWalkType. [[#variable62f22a40]];
if (this.tagType==check)
{ this.tagType= /** @type {goog.dom.TagWalkType} */
(check*-1);
this.depth+=this.tagType*(this.reversed
?-1
: 1);
}
} ;
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#62f22b00]] | restartTag |
| 1 | 2 | [[#62f22b00]] | skipTag |
| 2 | 1 | [[#62f22aa0]] | START_TAG |
| 2 | 2 | [[#62f22aa0]] | END_TAG |
| 3 | 1 | [[#62f22a40]] | END_TAG |
| 3 | 2 | [[#62f22a40]] | START_TAG |