Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
4 | 2 | 2 | 0.981 | ExpressionStatement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 3 | 68 | Closure/closure/goog/cssom/cssom.js |
2 | 4 | 81 | Closure/closure/goog/cssom/cssom.js |
| ||||
/** * Recursively gets all CSS as text, optionally starting from a given * CSSStyleSheet. * @param {CSSStyleSheet=} opt_styleSheet The CSSStyleSheet. * @return {string} css text. */ goog.cssom.getAllCssText= function (opt_styleSheet){ var styleSheet= opt_styleSheet || document.styleSheets; return /** @type {string} */ (goog.cssom.getAllCss_(styleSheet, true)); } ; |
| ||||
/** * Recursively gets all CSSStyleRules, optionally starting from a given * CSSStyleSheet. * Note that this excludes any CSSImportRules, CSSMediaRules, etc.. * @param {CSSStyleSheet=} opt_styleSheet The CSSStyleSheet. * @return {Array.<CSSStyleRule>} A list of CSSStyleRules. */ goog.cssom.getAllCssStyleRules= function (opt_styleSheet){ var styleSheet= opt_styleSheet || document.styleSheets; return /** @type {Array.<CSSStyleRule>} */ ( goog.cssom.getAllCss_(styleSheet, false)); } ; |
| |||
/** * Recursively gets all CSSStyleRules, optionally starting from a given * CSSStyleSheet. * Note that this excludes any CSSImportRules, CSSMediaRules, etc.. * @param {CSSStyleSheet=} opt_styleSheet The CSSStyleSheet. * @return {Array.<CSSStyleRule>} A list of CSSStyleRules. */ /** * Recursively gets all CSS as text, optionally starting from a given * CSSStyleSheet. * @param {CSSStyleSheet=} opt_styleSheet The CSSStyleSheet. * @return {string} css text. */ goog.cssom. [[#variable62f473c0]]= function (opt_styleSheet) { var styleSheet=opt_styleSheet || document.styleSheets; return /** @type {Array.<CSSStyleRule>} */ /** @type {string} */ (goog.cssom.getAllCss_(styleSheet, [[#variable62f472a0]])); } ; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#62f473c0]] | getAllCssStyleRules |
1 | 2 | [[#62f473c0]] | getAllCssText |
2 | 1 | [[#62f472a0]] | false |
2 | 2 | [[#62f472a0]] | true |