(index, nodes, inBetween)
| 17 | } |
| 18 | |
| 19 | function getWebpackIgnoreCommentValue(index, nodes, inBetween) { |
| 20 | if (index === 0 && typeof inBetween !== "undefined") { |
| 21 | return inBetween; |
| 22 | } |
| 23 | |
| 24 | let prevValueNode = nodes[index - 1]; |
| 25 | |
| 26 | if (!prevValueNode) { |
| 27 | // eslint-disable-next-line consistent-return |
| 28 | return; |
| 29 | } |
| 30 | |
| 31 | if (prevValueNode.type === "space") { |
| 32 | if (!nodes[index - 2]) { |
| 33 | // eslint-disable-next-line consistent-return |
| 34 | return; |
| 35 | } |
| 36 | |
| 37 | prevValueNode = nodes[index - 2]; |
| 38 | } |
| 39 | |
| 40 | if (prevValueNode.type !== "comment") { |
| 41 | // eslint-disable-next-line consistent-return |
| 42 | return; |
| 43 | } |
| 44 | |
| 45 | const matched = prevValueNode.value.match(WEBPACK_IGNORE_COMMENT_REGEXP); |
| 46 | |
| 47 | return matched && matched[2] === "true"; |
| 48 | } |
| 49 | |
| 50 | function shouldHandleURL(url, declaration, result, options) { |
| 51 | if (url.length === 0) { |
no outgoing calls
no test coverage detected
searching dependent graphs…