MCPcopy Create free account
hub / github.com/celtera/libremidi / W

Function W

book/theme/highlight.js:111–124  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

109},G=Error();function Z(e,n,{key:t}){let a=0;const i=e[t],r={},s={}
110;for(let e=1;e<=n.length;e++)s[e+a]=i[e],r[e+a]=!0,a+=p(n[e-1])
111;e[t]=s,e[t]._emit=r,e[t]._multi=!0}function W(e){(e=>{
112e.scope&&"object"==typeof e.scope&&null!==e.scope&&(e.beginScope=e.scope,
113delete e.scope)})(e),"string"==typeof e.beginScope&&(e.beginScope={
114_wrap:e.beginScope}),"string"==typeof e.endScope&&(e.endScope={_wrap:e.endScope
115}),(e=>{if(Array.isArray(e.begin)){
116if(e.skip||e.excludeBegin||e.returnBegin)throw K("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),
117G
118;if("object"!=typeof e.beginScope||null===e.beginScope)throw K("beginScope must be object"),
119G;Z(e,e.begin,{key:"beginScope"}),e.begin=h(e.begin,{joinWith:""})}})(e),(e=>{
120if(Array.isArray(e.end)){
121if(e.skip||e.excludeEnd||e.returnEnd)throw K("skip, excludeEnd, returnEnd not compatible with endScope: {}"),
122G
123;if("object"!=typeof e.endScope||null===e.endScope)throw K("endScope must be object"),
124G;Z(e,e.end,{key:"endScope"}),e.end=h(e.end,{joinWith:""})}})(e)}function Q(e){
125function n(n,t){
126return RegExp(c(n),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(t?"g":""))
127}class t{constructor(){

Callers

nothing calls this directly

Calls 3

KFunction · 0.85
ZFunction · 0.85
hFunction · 0.85

Tested by

no test coverage detected