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

Method get_bindings

packages/svelte/src/compiler/phases/scope.js:756–762  ·  view source on GitHub ↗

* @param {VariableDeclarator | AST.LetDirective} node * @returns {Binding[]}

(node)

Source from the content-addressed store, hash-verified

754 * @returns {Binding[]}
755 */
756 get_bindings(node) {
757 const bindings = this.declarators.get(node);
758 if (!bindings) {
759 throw new Error('No binding found for declarator');
760 }
761 return bindings;
762 }
763
764 /**
765 * @param {string} name

Callers 5

VariableDeclarationFunction · 0.80
LetDirectiveFunction · 0.80
VariableDeclarationFunction · 0.80
VariableDeclarationFunction · 0.80
mark_async_declarationFunction · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected