MCPcopy
hub / github.com/webpack/webpack / ancestorHadLocal

Method ancestorHadLocal

lib/css/CssParser.js:1092–1095  ·  view source on GitHub ↗

* Whether any ancestor (self inclusive) was pure — for ancestor-inheritance and `&`-resolution. * @returns {boolean} true if any ancestor provided a local

()

Source from the content-addressed store, hash-verified

1090 * @returns {boolean} true if any ancestor provided a local
1091 */
1092 ancestorHadLocal() {
1093 const top = this.stack[this.stack.length - 1];
1094 return top ? top.ancestorHadLocal : false;
1095 },
1096 /**
1097 * Record that the current comma-separated selector carries a local class / id (no-op when pure-mode is off).
1098 */

Callers 3

finalizeSelectorMethod · 0.95
enterBlockMethod · 0.95
walkSelectorListMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected