MCPcopy Create free account
hub / github.com/ChinaSiro/claude-code-sourcemap / OL_

Function OL_

package/cli.js:695–701  ·  view source on GitHub ↗
(q,K)

Source from the content-addressed store, hash-verified

693`,"sy")}catch{K=/(.*?)[ \t]*\r?\n/sy,_=/[ \t]*(.*?)[ \t]*\r?\n/sy}let z=K.exec(q);if(!z)return q;let Y=z[1],$=" ",A=K.lastIndex;_.lastIndex=A;while(z=_.exec(q)){if(z[1]==="")if($===`
694`)Y+=$;else $=`
695`;else Y+=$+z[1],$=" ";A=_.lastIndex}let O=/[ \t]*(.*)/sy;return O.lastIndex=A,z=O.exec(q),Y+$+(z?.[1]??"")}function OL_(q,K){let _="";for(let z=1;z<q.length-1;++z){let Y=q[z];if(Y==="\r"&&q[z+1]===`
696`)continue;if(Y===`
697`){let{fold:$,offset:A}=wL_(q,z);_+=$,z=A}else if(Y==="\\"){let $=q[++z],A=jL_[$];if(A)_+=A;else if($===`
698`){$=q[z+1];while($===" "||$==="\t")$=q[++z+1]}else if($==="\r"&&q[z+1]===`
699`){$=q[++z+1];while($===" "||$==="\t")$=q[++z+1]}else if($==="x"||$==="u"||$==="U"){let O={x:2,u:4,U:8}[$];_+=HL_(q,z+1,O,K),z+=O}else{let O=q.substr(z-1,2);K(z-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${O}`),_+=O}}else if(Y===" "||Y==="\t"){let $=z,A=q[z+1];while(A===" "||A==="\t")A=q[++z+1];if(A!==`
700`&&!(A==="\r"&&q[z+2]===`
701`))_+=z>$?q.slice($,z+1):Y}else _+=Y}if(q[q.length-1]!=='"'||q.length===1)K(q.length,"MISSING_CHAR",'Missing closing "quote');return _}function wL_(q,K){let _="",z=q[K+1];while(z===" "||z==="\t"||z===`
702`||z==="\r"){if(z==="\r"&&q[K+2]!==`
703`)break;if(z===`
704`)_+=`

Callers 1

YL_Function · 0.85

Calls 4

wL_Function · 0.85
HL_Function · 0.85
KFunction · 0.70
sliceMethod · 0.45

Tested by

no test coverage detected