|
|
|
@ -1,5 +1,4 @@
|
|
|
|
export default class TemplateScope {
|
|
|
|
export default class TemplateScope {
|
|
|
|
|
|
|
|
|
|
|
|
/** @type {Set<string>} */
|
|
|
|
/** @type {Set<string>} */
|
|
|
|
names;
|
|
|
|
names;
|
|
|
|
|
|
|
|
|
|
|
|
@ -51,10 +50,12 @@ export default class TemplateScope {
|
|
|
|
/** @param {string} name */
|
|
|
|
/** @param {string} name */
|
|
|
|
is_let(name) {
|
|
|
|
is_let(name) {
|
|
|
|
const owner = this.get_owner(name);
|
|
|
|
const owner = this.get_owner(name);
|
|
|
|
return (owner &&
|
|
|
|
return (
|
|
|
|
|
|
|
|
owner &&
|
|
|
|
(owner.type === 'Element' ||
|
|
|
|
(owner.type === 'Element' ||
|
|
|
|
owner.type === 'InlineComponent' ||
|
|
|
|
owner.type === 'InlineComponent' ||
|
|
|
|
owner.type === 'SlotTemplate'));
|
|
|
|
owner.type === 'SlotTemplate')
|
|
|
|
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/** @param {string} name */
|
|
|
|
/** @param {string} name */
|
|
|
|
@ -70,7 +71,6 @@ export default class TemplateScope {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @typedef {| EachBlock
|
|
|
|
* @typedef {| EachBlock
|
|
|
|
* | ThenBlock
|
|
|
|
* | ThenBlock
|
|
|
|
@ -80,4 +80,3 @@ export default class TemplateScope {
|
|
|
|
* | SlotTemplate
|
|
|
|
* | SlotTemplate
|
|
|
|
* | ConstTag} NodeWithScope
|
|
|
|
* | ConstTag} NodeWithScope
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|