Urara-Blog/node_modules/.pnpm-store/v3/files/aa/375cb0ebd8a564f91789e456c578bb67086cc25e70106fdc3f54c650bd3ebcba19ee20c25e88d69875575ee6630d5b9d98a836f0fc98836cdba50a51ccc157
2022-08-14 01:14:53 +08:00

23 lines
918 B
Text

import EachBlock from '../EachBlock';
import ThenBlock from '../ThenBlock';
import CatchBlock from '../CatchBlock';
import InlineComponent from '../InlineComponent';
import Element from '../Element';
import SlotTemplate from '../SlotTemplate';
import ConstTag from '../ConstTag';
declare type NodeWithScope = EachBlock | ThenBlock | CatchBlock | InlineComponent | Element | SlotTemplate | ConstTag;
export default class TemplateScope {
names: Set<string>;
dependencies_for_name: Map<string, Set<string>>;
owners: Map<string, NodeWithScope>;
parent?: TemplateScope;
constructor(parent?: TemplateScope);
add(name: any, dependencies: Set<string>, owner: any): this;
child(): TemplateScope;
is_top_level(name: string): any;
get_owner(name: string): NodeWithScope;
is_let(name: string): boolean;
is_await(name: string): boolean;
is_const(name: string): boolean;
}
export {};