* Apply a comment's pure-mode side effect: `ignorePending` for `cssmodules-pure-ignore`, or the file-level `noCheck` for `cssmodules-pure-no-check` before the first top-level rule. * @param {string} value comment body (without the surrounding delimiters)
(value)
| 1196 | * @param {string} value comment body (without the surrounding delimiters) |
| 1197 | */ |
| 1198 | applyComment(value) { |
| 1199 | if (PURE_IGNORE_RE.test(value)) { |
| 1200 | this.ignorePending = true; |
| 1201 | } else if (PURE_NO_CHECK_RE.test(value) && !this.seenTopLevelRule) { |
| 1202 | this.noCheck = true; |
| 1203 | } |
| 1204 | } |
| 1205 | }; |
| 1206 | |
| 1207 | /** @typedef {{ value?: string, importName?: string, localName?: string, request?: string }} IcssDefinition */ |