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

Method get_owner

package/svelte/compiler.js:25282–25284  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

25280 return !this.parent || !this.names.has(name) && this.parent.is_top_level(name);
25281 }
25282 get_owner(name) {
25283 return this.owners.get(name) || this.parent && this.parent.get_owner(name);
25284 }
25285 is_let(name) {
25286 const owner = this.get_owner(name);
25287 return owner && (owner.type === "Element" || owner.type === "InlineComponent" || owner.type === "SlotTemplate");

Callers 10

enterMethod · 0.80
leaveMethod · 0.80
constructorMethod · 0.80
parse_expressionMethod · 0.80
mark_each_block_bindingsFunction · 0.80
add_index_bindingFunction · 0.80
is_letMethod · 0.80
is_awaitMethod · 0.80
is_constMethod · 0.80

Calls 1

getMethod · 0.80

Tested by

no test coverage detected