MCPcopy Index your code
hub / github.com/vercel/hyper / addPattern

Method addPattern

bin/yarn-standalone.js:77010–77017  ·  view source on GitHub ↗

* TODO description

(pattern, info)

Source from the content-addressed store, hash-verified

77008 */
77009
77010 addPattern(pattern, info) {
77011 this.patterns[pattern] = info;
77012
77013 const byName = this.patternsByPackage[info.name] = this.patternsByPackage[info.name] || [];
77014 if (byName.indexOf(pattern) === -1) {
77015 byName.push(pattern);
77016 }
77017 }
77018
77019 /**
77020 * TODO description

Callers 7

replacePatternMethod · 0.95
resolveToResolutionMethod · 0.95
findMethod · 0.45
addPatternMethod · 0.45

Calls 2

indexOfMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected