MCPcopy
hub / github.com/sveltejs/svelte / e

Function e

packages/svelte/src/compiler/errors.js:43–48  ·  view source on GitHub ↗

* @param {null | number | NodeLike} node * @param {string} code * @param {string} message * @returns {never}

(node, code, message)

Source from the content-addressed store, hash-verified

41 * @returns {never}
42 */
43function e(node, code, message) {
44 const start = typeof node === 'number' ? node : node?.start;
45 const end = typeof node === 'number' ? node : node?.end;
46
47 throw new InternalCompileError(code, message, start !== undefined ? [start, end ?? start] : undefined);
48}
49
50/**
51 * Invalid compiler option: %details%

Callers 15

options_invalid_valueFunction · 0.70
options_removedFunction · 0.70
options_unrecognisedFunction · 0.70
constant_assignmentFunction · 0.70
constant_bindingFunction · 0.70
declaration_duplicateFunction · 0.70
derived_invalid_exportFunction · 0.70
dollar_binding_invalidFunction · 0.70
dollar_prefix_invalidFunction · 0.70
duplicate_class_fieldFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected