Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
4 | 2 | 3 | 0.956 | ExpressionStatement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 3 | 66 | Closure/closure/goog/dom/textrange.js |
2 | 4 | 101 | Closure/closure/goog/dom/textrange.js |
| ||||
/** * Create a new range wrapper from the given browser range object. Do not use * this method directly - please use goog.dom.Range.createFrom* instead. * @param {Range|TextRange} range The browser range object. * @param {boolean=} opt_isReversed Whether the focus node is before the anchor * node. * @return {goog.dom.TextRange} A range wrapper object. */ goog.dom.TextRange.createFromBrowserRange= function (range, opt_isReversed){ return goog.dom.TextRange.createFromBrowserRangeWrapper_( goog.dom.browserrange.createRange(range), opt_isReversed); } ; |
| ||||
/** * Create a new range wrapper that selects the given node's text. Do not use * this method directly - please use goog.dom.Range.createFrom* instead. * @param {Node} node The node to select. * @param {boolean=} opt_isReversed Whether the focus node is before the anchor * node. * @return {goog.dom.TextRange} A range wrapper object. */ goog.dom.TextRange.createFromNodeContents= function (node, opt_isReversed){ return goog.dom.TextRange.createFromBrowserRangeWrapper_( goog.dom.browserrange.createRangeFromNodeContents(node), opt_isReversed); } ; |
| |||
/** * Create a new range wrapper that selects the given node's text. Do not use * this method directly - please use goog.dom.Range.createFrom* instead. * @param {Node} node The node to select. * @param {boolean=} opt_isReversed Whether the focus node is before the anchor * node. * @return {goog.dom.TextRange} A range wrapper object. */ /** * Create a new range wrapper from the given browser range object. Do not use * this method directly - please use goog.dom.Range.createFrom* instead. * @param {Range|TextRange} range The browser range object. * @param {boolean=} opt_isReversed Whether the focus node is before the anchor * node. * @return {goog.dom.TextRange} A range wrapper object. */ goog.dom.TextRange. [[#variable1efe6b80]]= function ( [[#variable1efe6860]],opt_isReversed) { return goog.dom.TextRange.createFromBrowserRangeWrapper_(goog.dom.browserrange. [[#variable1efe6c00]]( [[#variable1efe6860]]),opt_isReversed); } ; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#1efe6b80]] | createFromNodeContents |
1 | 2 | [[#1efe6b80]] | createFromBrowserRange |
2 | 1 | [[#1efe6860]] | node |
2 | 2 | [[#1efe6860]] | range |
3 | 1 | [[#1efe6c00]] | createRangeFromNodeContents |
3 | 2 | [[#1efe6c00]] | createRange |