MCPcopy
hub / github.com/webpack/webpack / enterPatterns

Method enterPatterns

lib/javascript/JavascriptParser.js:4724–4733  ·  view source on GitHub ↗

* Processes the provided pattern. * @param {(string | Pattern | Property)[]} patterns patterns * @param {OnIdentString} onIdent on ident callback

(patterns, onIdent)

Source from the content-addressed store, hash-verified

4722 * @param {OnIdentString} onIdent on ident callback
4723 */
4724 enterPatterns(patterns, onIdent) {
4725 for (let i = 0, len = patterns.length; i < len; i++) {
4726 const pattern = patterns[i];
4727 if (typeof pattern !== "string") {
4728 this.enterPattern(pattern, onIdent);
4729 } else if (pattern) {
4730 onIdent(pattern);
4731 }
4732 }
4733 }
4734
4735 /**
4736 * Processes the provided pattern.

Callers 3

inScopeMethod · 0.95
inClassScopeMethod · 0.95
inFunctionScopeMethod · 0.95

Calls 1

enterPatternMethod · 0.95

Tested by

no test coverage detected