MCPcopy Create free account
hub / github.com/CoderLine/alphaTab / _contextify

Function _contextify

packages/webpack/src/AlphaTabWebPackPlugin.ts:63–68  ·  view source on GitHub ↗
(context: string, request: string)

Source from the content-addressed store, hash-verified

61};
62
63const _contextify = (context: string, request: string): string => {
64 return request
65 .split('!')
66 .map(r => absoluteToRequest(context, r))
67 .join('!');
68};
69
70const makeCacheableWithContext = (fn: (text: string, request: string) => string) => {
71 const cache = new WeakMap<object, Map<string, Map<string, string>>>();

Callers

nothing calls this directly

Calls 3

absoluteToRequestFunction · 0.85
joinMethod · 0.45
mapMethod · 0.45

Tested by

no test coverage detected