mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-05 01:19:30 +08:00
23 lines
918 B
Text
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 {};
|