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

Method parse_expression

package/svelte/compiler.js:15921–15936  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15919 });
15920 }
15921 parse_expression() {
15922 unpack_destructuring({
15923 contexts: this.contexts,
15924 node: this.node.expression.left,
15925 scope: this.scope,
15926 component: this.component
15927 });
15928 this.expression = new Expression(this.component, this, this.scope, this.node.expression.right);
15929 this.contexts.forEach((context) => {
15930 const owner = this.scope.get_owner(context.key.name);
15931 if (owner && owner.type === "ConstTag" && owner.parent === this.parent) {
15932 this.component.error(this.node, compiler_errors.invalid_const_declaration(context.key.name));
15933 }
15934 this.scope.add(context.key.name, this.expression.dependencies, this);
15935 });
15936 }
15937 };
15938 var PendingBlock = class extends AbstractBlock {
15939 constructor(component, parent, scope2, info) {

Callers 1

get_const_tagsFunction · 0.80

Calls 4

unpack_destructuringFunction · 0.85
get_ownerMethod · 0.80
errorMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected