MCPcopy
hub / github.com/webpack/webpack / finalizeSelector

Method finalizeSelector

lib/css/CssParser.js:1105–1111  ·  view source on GitHub ↗

* Close the current comma-separated selector segment (or whole prelude at `{`): if it had no local and no ancestor compensates, the rule is impure (no-op when pure-mode is off).

()

Source from the content-addressed store, hash-verified

1103 * Close the current comma-separated selector segment (or whole prelude at `{`): if it had no local and no ancestor compensates, the rule is impure (no-op when pure-mode is off).
1104 */
1105 finalizeSelector() {
1106 if (!this.enabled) return;
1107 if (!this.segmentLocal && !this.ancestorHadLocal()) {
1108 this.ruleImpure = true;
1109 }
1110 this.segmentLocal = false;
1111 },
1112 /**
1113 * Mark that a top-level rule has been processed; locks `noCheck` (no-op when pure-mode is off).
1114 */

Callers 2

walkSelectorListMethod · 0.80
parseMethod · 0.80

Calls 1

ancestorHadLocalMethod · 0.95

Tested by

no test coverage detected