Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
12 | 2 | 3 | 0.958 | StatementList[4] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 12 | 526 | Closure/closure/goog/dom/dom_test.js |
2 | 12 | 557 | Closure/closure/goog/dom/dom_test.js |
| ||||
var tree= goog.dom.htmlToDocumentFragment( '<div>'+ '<p>Some text</p>'+ '<blockquote>Some <i>special</i> <b>text</b></blockquote>'+ '<address><!-- comment -->Foo</address>'+ '</div>'); assertNull(goog.dom.getNextNode(null)); var node= tree; var next= function ( ) { return node= goog.dom.getNextNode(node); } ; |
| ||||
var tree= goog.dom.htmlToDocumentFragment( '<div>'+ '<p>Some text</p>'+ '<blockquote>Some <i>special</i> <b>text</b></blockquote>'+ '<address><!-- comment -->Foo</address>'+ '</div>'); assertNull(goog.dom.getPreviousNode(null)); var node= tree.lastChild.lastChild; var previous= function ( ) { return node= goog.dom.getPreviousNode(node); } ; |
| |||
var tree=goog.dom.htmlToDocumentFragment('<div>'+'<p>Some text</p>'+'<blockquote>Some <i>special</i> <b>text</b></blockquote>'+'<address><!-- comment -->Foo</address>'+'</div>'); assertNull(goog.dom. [[#variable62ab6fe0]](null)); var node= [[#variable20d929a0]]; var [[#variable62ed47e0]]= function ( ) { return node=goog.dom. [[#variable62ab6fe0]](node); } ; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#62ab6fe0]] | getNextNode |
1 | 2 | [[#62ab6fe0]] | getPreviousNode |
2 | 1 | [[#20d929a0]] | tree |
2 | 2 | [[#20d929a0]] | tree.lastChild.lastChild |
3 | 1 | [[#62ed47e0]] | next |
3 | 2 | [[#62ed47e0]] | previous |