MCPcopy
hub / github.com/livebud/bud / x

Function x

package/svelte/compiler.js:6934–6948  ·  view source on GitHub ↗
(strings, ...values)

Source from the content-addressed store, hash-verified

6932 }
6933 }
6934 function x(strings, ...values) {
6935 const str = join$1(strings);
6936 const comments = [];
6937 try {
6938 let expression2 = parseExpressionAt2(str, 0, acorn_opts(comments, str));
6939 const match = /\S+/.exec(str.slice(expression2.end));
6940 if (match) {
6941 throw new Error(`Unexpected token '${match[0]}'`);
6942 }
6943 expression2 = inject(str, expression2, values, comments);
6944 return expression2;
6945 } catch (err) {
6946 handle_error(str, err);
6947 }
6948 }
6949 function p(strings, ...values) {
6950 const str = `{${join$1(strings)}}`;
6951 const comments = [];

Callers 15

get_contentsMethod · 0.85
renderMethod · 0.85
get_or_create_anchorMethod · 0.85
get_update_mount_nodeMethod · 0.85
invalidateFunction · 0.85
renderer_invalidateFunction · 0.85
unpack_destructuringFunction · 0.85
get_valueMethod · 0.85
add_const_tagsFunction · 0.85
render_get_contextMethod · 0.85
compiler.jsFile · 0.85
get_snippetMethod · 0.85

Calls 5

join$1Function · 0.85
parseExpressionAt2Function · 0.85
acorn_optsFunction · 0.85
injectFunction · 0.85
handle_errorFunction · 0.85

Tested by

no test coverage detected