MCPcopy
hub / github.com/pngwn/MDsveX / x

Function x

packages/site/static/workers/mdsvex.js:9544–9561  ·  view source on GitHub ↗
(strings, ...values)

Source from the content-addressed store, hash-verified

9542 }
9543
9544 function x(strings, ...values) {
9545 const str = join$1(strings);
9546 const comments = [];
9547
9548 try {
9549 const expression = parseExpressionAt(str, 0, acorn_opts(comments, str)) ;
9550 const match = /\S+/.exec(str.slice((expression ).end));
9551 if (match) {
9552 throw new Error(`Unexpected token '${match[0]}'`);
9553 }
9554
9555 inject(str, expression, values, comments);
9556
9557 return expression;
9558 } catch (err) {
9559 handle_error(str, err);
9560 }
9561 }
9562
9563 function p(strings, ...values) {
9564 const str = `{${join$1(strings)}}`;

Callers 15

bundler.jsFile · 0.85
get_contentsMethod · 0.85
renderMethod · 0.85
get_or_create_anchorMethod · 0.85
get_update_mount_nodeMethod · 0.85
render_destructureMethod · 0.85
renderMethod · 0.85
mdsvex.jsFile · 0.85
get_snippetMethod · 0.85
renderMethod · 0.85
renderMethod · 0.85
constructorMethod · 0.85

Calls 6

join$1Function · 0.85
parseExpressionAtFunction · 0.85
acorn_optsFunction · 0.85
injectFunction · 0.85
handle_errorFunction · 0.85
sliceMethod · 0.80

Tested by

no test coverage detected