MCPcopy Index your code
hub / github.com/CoderLine/alphaTab / includesAlphaTabWorker

Function includesAlphaTabWorker

packages/vite/src/importMetaPlugin.ts:54–71  ·  view source on GitHub ↗
(code: string)

Source from the content-addressed store, hash-verified

52];
53
54function includesAlphaTabWorker(code: string): boolean {
55 for (const pattern of alphaTabWorkerPatterns) {
56 let position = 0;
57
58 for (const match of pattern) {
59 position = code.indexOf(match, position);
60 if (position === -1) {
61 break;
62 }
63 }
64
65 if (position !== -1) {
66 return true;
67 }
68 }
69
70 return false;
71}
72
73function getWorkerType(code: string, match: RegExpExecArray): AlphaTabWorkerTypes {
74 if (match[1].includes('.addModule')) {

Callers 2

transformFunction · 0.85

Calls 1

indexOfMethod · 0.45

Tested by

no test coverage detected