@alloy-js/typescript 0.16.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist/src/builtins/node.d.ts +9 -41
- package/dist/src/builtins/node.d.ts.map +1 -1
- package/dist/src/components/ArrowFunction.d.ts +3 -3
- package/dist/src/components/BarrelFile.d.ts +1 -1
- package/dist/src/components/BarrelFile.d.ts.map +1 -1
- package/dist/src/components/BlockScope.d.ts +1 -1
- package/dist/src/components/BlockScope.d.ts.map +1 -1
- package/dist/src/components/ClassDeclaration.d.ts.map +1 -1
- package/dist/src/components/ClassDeclaration.js +5 -7
- package/dist/src/components/Declaration.d.ts.map +1 -1
- package/dist/src/components/Declaration.js +3 -4
- package/dist/src/components/EnumDeclaration.d.ts +1 -1
- package/dist/src/components/EnumDeclaration.d.ts.map +1 -1
- package/dist/src/components/EnumDeclaration.js +3 -4
- package/dist/src/components/EnumMember.d.ts.map +1 -1
- package/dist/src/components/EnumMember.js +3 -4
- package/dist/src/components/FunctionBase.d.ts +4 -4
- package/dist/src/components/FunctionBase.d.ts.map +1 -1
- package/dist/src/components/FunctionBase.js +15 -10
- package/dist/src/components/FunctionDeclaration.d.ts +3 -3
- package/dist/src/components/FunctionExpression.d.ts +3 -3
- package/dist/src/components/FunctionType.d.ts +2 -2
- package/dist/src/components/ImportStatement.d.ts +1 -1
- package/dist/src/components/ImportStatement.d.ts.map +1 -1
- package/dist/src/components/Interface.js +1 -1
- package/dist/src/components/InterfaceMethod.d.ts +2 -2
- package/dist/src/components/MemberDeclaration.d.ts +1 -1
- package/dist/src/components/MemberDeclaration.d.ts.map +1 -1
- package/dist/src/components/MemberDeclaration.js +4 -4
- package/dist/src/components/MemberExpression.d.ts +6 -1
- package/dist/src/components/MemberExpression.d.ts.map +1 -1
- package/dist/src/components/MemberExpression.js +38 -14
- package/dist/src/components/NewExpression.d.ts +5 -0
- package/dist/src/components/NewExpression.d.ts.map +1 -0
- package/dist/src/components/NewExpression.js +12 -0
- package/dist/src/components/ObjectExpression.d.ts.map +1 -1
- package/dist/src/components/ObjectExpression.js +14 -15
- package/dist/src/components/PackageDirectory.d.ts.map +1 -1
- package/dist/src/components/PackageDirectory.js +3 -3
- package/dist/src/components/PackageJson.d.ts +1 -1
- package/dist/src/components/PackageJson.d.ts.map +1 -1
- package/dist/src/components/PropertyName.d.ts +1 -1
- package/dist/src/components/PropertyName.d.ts.map +1 -1
- package/dist/src/components/Reference.d.ts +1 -1
- package/dist/src/components/Reference.d.ts.map +1 -1
- package/dist/src/components/Reference.js +5 -1
- package/dist/src/components/SourceFile.d.ts.map +1 -1
- package/dist/src/components/SourceFile.js +3 -3
- package/dist/src/components/TsConfigJson.d.ts +1 -1
- package/dist/src/components/TsConfigJson.d.ts.map +1 -1
- package/dist/src/components/TypeDeclaration.d.ts +1 -1
- package/dist/src/components/TypeDeclaration.d.ts.map +1 -1
- package/dist/src/components/VarDeclaration.d.ts.map +1 -1
- package/dist/src/components/VarDeclaration.js +30 -10
- package/dist/src/components/index.d.ts +1 -0
- package/dist/src/components/index.d.ts.map +1 -1
- package/dist/src/components/index.js +1 -0
- package/dist/src/components/stc/index.d.ts +45 -43
- package/dist/src/components/stc/index.d.ts.map +1 -1
- package/dist/src/components/stc/index.js +46 -44
- package/dist/src/create-package.d.ts +62 -18
- package/dist/src/create-package.d.ts.map +1 -1
- package/dist/src/create-package.js +153 -15
- package/dist/src/source-directory-data.d.ts.map +1 -1
- package/dist/src/source-directory-data.js +2 -2
- package/dist/src/symbols/reference.d.ts +2 -1
- package/dist/src/symbols/reference.d.ts.map +1 -1
- package/dist/src/symbols/reference.js +3 -4
- package/dist/src/symbols/scopes.d.ts +1 -4
- package/dist/src/symbols/scopes.d.ts.map +1 -1
- package/dist/src/symbols/ts-member-scope.d.ts +4 -6
- package/dist/src/symbols/ts-member-scope.d.ts.map +1 -1
- package/dist/src/symbols/ts-member-scope.js +8 -10
- package/dist/src/symbols/ts-module-scope.d.ts +8 -11
- package/dist/src/symbols/ts-module-scope.d.ts.map +1 -1
- package/dist/src/symbols/ts-module-scope.js +47 -40
- package/dist/src/symbols/ts-output-symbol.d.ts +23 -16
- package/dist/src/symbols/ts-output-symbol.d.ts.map +1 -1
- package/dist/src/symbols/ts-output-symbol.js +88 -27
- package/dist/src/symbols/ts-package-scope.d.ts +18 -14
- package/dist/src/symbols/ts-package-scope.d.ts.map +1 -1
- package/dist/src/symbols/ts-package-scope.js +78 -27
- package/dist/test/class.test.js +2 -1
- package/dist/test/externals.test.js +87 -2
- package/dist/test/function-declaration.test.js +74 -3
- package/dist/test/member-expression.test.js +108 -2
- package/dist/test/new-expression.test.d.ts +2 -0
- package/dist/test/new-expression.test.d.ts.map +1 -0
- package/dist/test/new-expression.test.js +62 -0
- package/dist/test/var-declaration.test.d.ts.map +1 -1
- package/dist/test/var-declaration.test.js +145 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
- package/src/components/ClassDeclaration.tsx +5 -7
- package/src/components/Declaration.tsx +3 -8
- package/src/components/EnumDeclaration.tsx +3 -4
- package/src/components/EnumMember.tsx +3 -4
- package/src/components/FunctionBase.tsx +25 -18
- package/src/components/ImportStatement.tsx +0 -1
- package/src/components/Interface.tsx +1 -1
- package/src/components/MemberDeclaration.tsx +5 -8
- package/src/components/MemberExpression.tsx +67 -15
- package/src/components/NewExpression.tsx +25 -0
- package/src/components/ObjectExpression.tsx +18 -16
- package/src/components/PackageDirectory.tsx +2 -10
- package/src/components/Reference.tsx +4 -2
- package/src/components/SourceFile.tsx +2 -5
- package/src/components/VarDeclaration.tsx +34 -11
- package/src/components/index.ts +1 -0
- package/src/components/stc/index.ts +46 -44
- package/src/create-package.ts +274 -35
- package/src/source-directory-data.ts +2 -2
- package/src/symbols/reference.ts +10 -5
- package/src/symbols/scopes.ts +1 -6
- package/src/symbols/ts-member-scope.ts +8 -23
- package/src/symbols/ts-module-scope.ts +58 -62
- package/src/symbols/ts-output-symbol.ts +108 -50
- package/src/symbols/ts-package-scope.ts +71 -53
- package/temp/api.json +1589 -1619
- package/test/class.test.tsx +2 -1
- package/test/externals.test.tsx +99 -1
- package/test/function-declaration.test.tsx +75 -2
- package/test/member-expression.test.tsx +93 -2
- package/test/new-expression.test.tsx +42 -0
- package/test/values.test.tsx +1 -0
- package/test/var-declaration.test.tsx +101 -1
- package/tsdoc-metadata.json +1 -1
|
@@ -1,45 +1,47 @@
|
|
|
1
|
-
|
|
1
|
+
// prettier-ignore
|
|
2
|
+
import * as core from "@alloy-js/core";
|
|
2
3
|
import * as base from "../index.js";
|
|
3
|
-
export const ArrayExpression = stc(base.ArrayExpression);
|
|
4
|
-
export const ArrowFunction = stc(base.ArrowFunction);
|
|
5
|
-
export const BarrelFile = stc(base.BarrelFile);
|
|
6
|
-
export const CallSignature = stc(base.CallSignature);
|
|
7
|
-
export const ClassDeclaration = stc(base.ClassDeclaration);
|
|
8
|
-
export const ClassField = stc(base.ClassField);
|
|
9
|
-
export const ClassMember = stc(base.ClassMember);
|
|
10
|
-
export const ClassMethod = stc(base.ClassMethod);
|
|
11
|
-
export const CommaList = stc(base.CommaList);
|
|
12
|
-
export const Declaration = stc(base.Declaration);
|
|
13
|
-
export const EnumDeclaration = stc(base.EnumDeclaration);
|
|
14
|
-
export const EnumMember = stc(base.EnumMember);
|
|
15
|
-
export const ExportStatement = stc(base.ExportStatement);
|
|
16
|
-
export const FunctionCallExpression = stc(base.FunctionCallExpression);
|
|
17
|
-
export const FunctionDeclaration = stc(base.FunctionDeclaration);
|
|
18
|
-
export const FunctionExpression = stc(base.FunctionExpression);
|
|
19
|
-
export const IfStatement = stc(base.IfStatement);
|
|
20
|
-
export const ElseClause = stc(base.ElseClause);
|
|
21
|
-
export const ElseIfClause = stc(base.ElseIfClause);
|
|
22
|
-
export const ImportStatement = stc(base.ImportStatement);
|
|
23
|
-
export const ImportStatements = stc(base.ImportStatements);
|
|
24
|
-
export const InterfaceDeclaration = stc(base.InterfaceDeclaration);
|
|
25
|
-
export const InterfaceExpression = stc(base.InterfaceExpression);
|
|
26
|
-
export const InterfaceMember = stc(base.InterfaceMember);
|
|
27
|
-
export const InterfaceMethod = stc(base.InterfaceMethod);
|
|
28
|
-
export const JSDoc = stc(base.JSDoc);
|
|
29
|
-
export const JSDocExample = stc(base.JSDocExample);
|
|
30
|
-
export const JSDocComment = stc(base.JSDocComment);
|
|
31
|
-
export const MemberExpression = stc(base.MemberExpression);
|
|
32
|
-
export const
|
|
33
|
-
export const
|
|
34
|
-
export const
|
|
35
|
-
export const
|
|
36
|
-
export const
|
|
37
|
-
export const
|
|
38
|
-
export const
|
|
39
|
-
export const
|
|
40
|
-
export const
|
|
41
|
-
export const
|
|
42
|
-
export const
|
|
43
|
-
export const
|
|
44
|
-
export const
|
|
45
|
-
export const
|
|
4
|
+
export const ArrayExpression = core.stc(base.ArrayExpression);
|
|
5
|
+
export const ArrowFunction = core.stc(base.ArrowFunction);
|
|
6
|
+
export const BarrelFile = core.stc(base.BarrelFile);
|
|
7
|
+
export const CallSignature = core.stc(base.CallSignature);
|
|
8
|
+
export const ClassDeclaration = core.stc(base.ClassDeclaration);
|
|
9
|
+
export const ClassField = core.stc(base.ClassField);
|
|
10
|
+
export const ClassMember = core.stc(base.ClassMember);
|
|
11
|
+
export const ClassMethod = core.stc(base.ClassMethod);
|
|
12
|
+
export const CommaList = core.stc(base.CommaList);
|
|
13
|
+
export const Declaration = core.stc(base.Declaration);
|
|
14
|
+
export const EnumDeclaration = core.stc(base.EnumDeclaration);
|
|
15
|
+
export const EnumMember = core.stc(base.EnumMember);
|
|
16
|
+
export const ExportStatement = core.stc(base.ExportStatement);
|
|
17
|
+
export const FunctionCallExpression = core.stc(base.FunctionCallExpression);
|
|
18
|
+
export const FunctionDeclaration = core.stc(base.FunctionDeclaration);
|
|
19
|
+
export const FunctionExpression = core.stc(base.FunctionExpression);
|
|
20
|
+
export const IfStatement = core.stc(base.IfStatement);
|
|
21
|
+
export const ElseClause = core.stc(base.ElseClause);
|
|
22
|
+
export const ElseIfClause = core.stc(base.ElseIfClause);
|
|
23
|
+
export const ImportStatement = core.stc(base.ImportStatement);
|
|
24
|
+
export const ImportStatements = core.stc(base.ImportStatements);
|
|
25
|
+
export const InterfaceDeclaration = core.stc(base.InterfaceDeclaration);
|
|
26
|
+
export const InterfaceExpression = core.stc(base.InterfaceExpression);
|
|
27
|
+
export const InterfaceMember = core.stc(base.InterfaceMember);
|
|
28
|
+
export const InterfaceMethod = core.stc(base.InterfaceMethod);
|
|
29
|
+
export const JSDoc = core.stc(base.JSDoc);
|
|
30
|
+
export const JSDocExample = core.stc(base.JSDocExample);
|
|
31
|
+
export const JSDocComment = core.stc(base.JSDocComment);
|
|
32
|
+
export const MemberExpression = core.stc(base.MemberExpression);
|
|
33
|
+
export const NewExpression = core.stc(base.NewExpression);
|
|
34
|
+
export const ObjectExpression = core.stc(base.ObjectExpression);
|
|
35
|
+
export const ObjectProperty = core.stc(base.ObjectProperty);
|
|
36
|
+
export const PackageDirectory = core.stc(base.PackageDirectory);
|
|
37
|
+
export const PackageJsonFile = core.stc(base.PackageJsonFile);
|
|
38
|
+
export const Reference = core.stc(base.Reference);
|
|
39
|
+
export const SourceFile = core.stc(base.SourceFile);
|
|
40
|
+
export const SwitchStatement = core.stc(base.SwitchStatement);
|
|
41
|
+
export const CaseClause = core.stc(base.CaseClause);
|
|
42
|
+
export const TSConfigJson = core.stc(base.TSConfigJson);
|
|
43
|
+
export const FunctionType = core.stc(base.FunctionType);
|
|
44
|
+
export const TypeDeclaration = core.stc(base.TypeDeclaration);
|
|
45
|
+
export const TypeRefContext = core.stc(base.TypeRefContext);
|
|
46
|
+
export const ValueExpression = core.stc(base.ValueExpression);
|
|
47
|
+
export const VarDeclaration = core.stc(base.VarDeclaration);
|
|
@@ -2,32 +2,76 @@ import { Refkey, SymbolCreator } from "@alloy-js/core";
|
|
|
2
2
|
export interface PackageDescriptor {
|
|
3
3
|
[path: string]: ModuleSymbolsDescriptor;
|
|
4
4
|
}
|
|
5
|
+
/**
|
|
6
|
+
* Describes the structure of a module descriptor.
|
|
7
|
+
*
|
|
8
|
+
* A module descriptor can either be a string (representing the module name)
|
|
9
|
+
* or an object with the following properties:
|
|
10
|
+
* - `name`: The name of the module.
|
|
11
|
+
* - `staticMembers`: An optional array of named module descriptors representing
|
|
12
|
+
* static members of the module.
|
|
13
|
+
* - `instanceMembers`: An optional array of named module descriptors representing
|
|
14
|
+
* instance members of the module.
|
|
15
|
+
*/
|
|
16
|
+
export type NamedModuleDescriptor = string | {
|
|
17
|
+
name: string;
|
|
18
|
+
staticMembers?: Array<NamedModuleDescriptor>;
|
|
19
|
+
instanceMembers?: Array<NamedModuleDescriptor>;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Describes the symbols exported by a module.
|
|
23
|
+
*/
|
|
5
24
|
export interface ModuleSymbolsDescriptor {
|
|
6
25
|
default?: string;
|
|
7
|
-
named?:
|
|
26
|
+
named?: NamedModuleDescriptor[];
|
|
8
27
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} & (T[K] extends {
|
|
13
|
-
default: string;
|
|
14
|
-
} ? {
|
|
15
|
-
default: Refkey;
|
|
16
|
-
} : {});
|
|
17
|
-
} & (T["."] extends {
|
|
18
|
-
default: string;
|
|
19
|
-
} ? {
|
|
20
|
-
default: Refkey;
|
|
21
|
-
} : {}) & (T["."] extends {
|
|
22
|
-
named: readonly string[];
|
|
23
|
-
} ? {
|
|
24
|
-
[N in T["."]["named"][number]]: Refkey;
|
|
25
|
-
} : {});
|
|
28
|
+
/**
|
|
29
|
+
* Props for creating a package with a specific name, version, and descriptor.
|
|
30
|
+
*/
|
|
26
31
|
export interface CreatePackageProps<T extends PackageDescriptor> {
|
|
27
32
|
name: string;
|
|
28
33
|
version: string;
|
|
29
34
|
descriptor: T;
|
|
30
35
|
builtin?: boolean;
|
|
31
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* Infers the exported members of a module based on its descriptor.
|
|
39
|
+
*
|
|
40
|
+
* D - The module descriptor, which may specify a `default` export (as a string)
|
|
41
|
+
* and/or an array of named exports (`named`).
|
|
42
|
+
*
|
|
43
|
+
* If `D` includes a `default` property of type `string`, the resulting type will include a
|
|
44
|
+
* `default` property of type `Refkey`. If `D` includes a `named` property (an array of
|
|
45
|
+
* `NamedModuleDescriptor`), the resulting type will include the mapped named exports as
|
|
46
|
+
* defined by `NamedMap`.
|
|
47
|
+
*/
|
|
48
|
+
export type ModuleExports<D extends {
|
|
49
|
+
default?: string;
|
|
50
|
+
named?: NamedModuleDescriptor[];
|
|
51
|
+
}> = (D extends {
|
|
52
|
+
default: string;
|
|
53
|
+
} ? {
|
|
54
|
+
default: Refkey;
|
|
55
|
+
} : {}) & (D["named"] extends NamedModuleDescriptor[] ? NamedMap<D["named"]> : {});
|
|
56
|
+
export type PackageRefkeys<PD extends Record<string, {
|
|
57
|
+
default?: string;
|
|
58
|
+
named?: NamedModuleDescriptor[];
|
|
59
|
+
}>> = ModuleExports<PD["."]> & {
|
|
60
|
+
[P in keyof PD as P extends "." ? never : P]: ModuleExports<PD[P]>;
|
|
61
|
+
};
|
|
62
|
+
export type NamedMap<TDescriptor extends readonly NamedModuleDescriptor[]> = {
|
|
63
|
+
[S in Extract<TDescriptor[number], string>]: Refkey;
|
|
64
|
+
} & {
|
|
65
|
+
[O in Extract<TDescriptor[number], {
|
|
66
|
+
name: string;
|
|
67
|
+
}> as O["name"]]: Refkey & {
|
|
68
|
+
static: O extends ({
|
|
69
|
+
staticMembers: infer SM extends NamedModuleDescriptor[];
|
|
70
|
+
}) ? NamedMap<SM> : {};
|
|
71
|
+
instance: O extends ({
|
|
72
|
+
instanceMembers: infer IM extends NamedModuleDescriptor[];
|
|
73
|
+
}) ? NamedMap<IM> : {};
|
|
74
|
+
};
|
|
75
|
+
};
|
|
32
76
|
export declare function createPackage<const T extends PackageDescriptor>(props: CreatePackageProps<T>): PackageRefkeys<T> & SymbolCreator;
|
|
33
77
|
//# sourceMappingURL=create-package.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-package.d.ts","sourceRoot":"","sources":["../../src/create-package.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"create-package.d.ts","sourceRoot":"","sources":["../../src/create-package.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,MAAM,EAEN,aAAa,EACd,MAAM,gBAAgB,CAAC;AAQxB,MAAM,WAAW,iBAAiB;IAChC,CAAC,IAAI,EAAE,MAAM,GAAG,uBAAuB,CAAC;CACzC;AAED;;;;;;;;;;GAUG;AACH,MAAM,MAAM,qBAAqB,GAC7B,MAAM,GACN;IACE,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,CAAC,EAAE,KAAK,CAAC,qBAAqB,CAAC,CAAC;IAC7C,eAAe,CAAC,EAAE,KAAK,CAAC,qBAAqB,CAAC,CAAC;CAChD,CAAC;AAEN;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,qBAAqB,EAAE,CAAC;CACjC;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB,CAAC,CAAC,SAAS,iBAAiB;IAC7D,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,CAAC,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;;;;;;;;GAUG;AACH,MAAM,MAAM,aAAa,CACvB,CAAC,SAAS;IAAE,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,qBAAqB,EAAE,CAAA;CAAE,IAC7D,CAAC,CAAC,SAAS;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,GAAG,EAAE,CAAC,GAC5D,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,qBAAqB,EAAE,GAAG,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC;AAE3E,MAAM,MAAM,cAAc,CACxB,EAAE,SAAS,MAAM,CACf,MAAM,EACN;IAAE,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,qBAAqB,EAAE,CAAA;CAAE,CACtD,IAEC,aAAa,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,GAAG;KAG1B,CAAC,IAAI,MAAM,EAAE,IAAI,CAAC,SAAS,GAAG,GAAG,KAAK,GAAG,CAAC,GAAG,aAAa,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;CACnE,CAAC;AAUF,MAAM,MAAM,QAAQ,CAAC,WAAW,SAAS,SAAS,qBAAqB,EAAE,IAEvE;KACG,CAAC,IAAI,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,GAAG,MAAM;CACpD,GAAG;KAED,CAAC,IAAI,OAAO,CACX,WAAW,CAAC,MAAM,CAAC,EACnB;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CACjB,IAAI,CAAC,CAAC,MAAM,CAAC,GAAG,MAAM,GAAG;QACxB,MAAM,EAAE,CAAC,SAAS,CAChB;YAAE,aAAa,EAAE,MAAM,EAAE,SAAS,qBAAqB,EAAE,CAAA;SAAE,CAC5D,GACC,QAAQ,CAAC,EAAE,CAAC,GACZ,EAAE,CAAC;QACL,QAAQ,EAAE,CAAC,SAAS,CAClB;YAAE,eAAe,EAAE,MAAM,EAAE,SAAS,qBAAqB,EAAE,CAAA;SAAE,CAC9D,GACC,QAAQ,CAAC,EAAE,CAAC,GACZ,EAAE,CAAC;KACN;CACF,CAAC;AA0KJ,wBAAgB,aAAa,CAAC,KAAK,CAAC,CAAC,SAAS,iBAAiB,EAC7D,KAAK,EAAE,kBAAkB,CAAC,CAAC,CAAC,GAC3B,cAAc,CAAC,CAAC,CAAC,GAAG,aAAa,CA6DnC"}
|
|
@@ -1,32 +1,153 @@
|
|
|
1
|
-
import { getSymbolCreatorSymbol, refkey } from "@alloy-js/core";
|
|
2
|
-
import {
|
|
1
|
+
import { getSymbolCreatorSymbol, OutputSymbolFlags, refkey } from "@alloy-js/core";
|
|
2
|
+
import { TSModuleScope, TSOutputSymbol, TSPackageScope } from "./symbols/index.js";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Describes the structure of a module descriptor.
|
|
6
|
+
*
|
|
7
|
+
* A module descriptor can either be a string (representing the module name)
|
|
8
|
+
* or an object with the following properties:
|
|
9
|
+
* - `name`: The name of the module.
|
|
10
|
+
* - `staticMembers`: An optional array of named module descriptors representing
|
|
11
|
+
* static members of the module.
|
|
12
|
+
* - `instanceMembers`: An optional array of named module descriptors representing
|
|
13
|
+
* instance members of the module.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Describes the symbols exported by a module.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Props for creating a package with a specific name, version, and descriptor.
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Infers the exported members of a module based on its descriptor.
|
|
26
|
+
*
|
|
27
|
+
* D - The module descriptor, which may specify a `default` export (as a string)
|
|
28
|
+
* and/or an array of named exports (`named`).
|
|
29
|
+
*
|
|
30
|
+
* If `D` includes a `default` property of type `string`, the resulting type will include a
|
|
31
|
+
* `default` property of type `Refkey`. If `D` includes a `named` property (an array of
|
|
32
|
+
* `NamedModuleDescriptor`), the resulting type will include the mapped named exports as
|
|
33
|
+
* defined by `NamedMap`.
|
|
34
|
+
*/
|
|
35
|
+
|
|
36
|
+
// NamedMap is a utility type that maps the named module descriptors
|
|
37
|
+
// to their corresponding Refkey types. It handles both string and object
|
|
38
|
+
// entries in the array of named module descriptors.
|
|
39
|
+
// It creates a mapping where:
|
|
40
|
+
// For each TDescriptor extends NamedModuleDescriptor[]:
|
|
41
|
+
// • string entries ➜ { [s]: Refkey }
|
|
42
|
+
// • object entries ➜ { [name]: Refkey & { static: …; instance: … } }
|
|
43
|
+
// ────────────────────────────────────────────────────────────────
|
|
44
|
+
|
|
45
|
+
function assignMembers(binder, ownerSym, members, keys, isStatic) {
|
|
46
|
+
let scope;
|
|
47
|
+
if (isStatic) {
|
|
48
|
+
ownerSym.flags |= OutputSymbolFlags.StaticMemberContainer;
|
|
49
|
+
scope = ownerSym.staticMemberScope;
|
|
50
|
+
} else {
|
|
51
|
+
ownerSym.flags |= OutputSymbolFlags.InstanceMemberContainer;
|
|
52
|
+
scope = ownerSym.instanceMemberScope;
|
|
53
|
+
}
|
|
54
|
+
const namespace = isStatic ? "static" : "instance";
|
|
55
|
+
for (const member of members) {
|
|
56
|
+
const memberObj = typeof member === "object" ? member : {
|
|
57
|
+
name: member
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
// The refkey is located in the appropriate namespace
|
|
61
|
+
const memberKey = keys[namespace][memberObj.name];
|
|
62
|
+
if (!memberKey) continue; // Skip if key doesn't exist
|
|
63
|
+
|
|
64
|
+
let memberFlags = isStatic ? OutputSymbolFlags.StaticMember : OutputSymbolFlags.InstanceMember;
|
|
65
|
+
if (memberObj.staticMembers?.length) {
|
|
66
|
+
memberFlags |= OutputSymbolFlags.StaticMemberContainer;
|
|
67
|
+
}
|
|
68
|
+
if (memberObj.instanceMembers?.length) {
|
|
69
|
+
memberFlags |= OutputSymbolFlags.InstanceMemberContainer;
|
|
70
|
+
}
|
|
71
|
+
const memberSym = new TSOutputSymbol(memberObj.name, {
|
|
72
|
+
scope,
|
|
73
|
+
binder,
|
|
74
|
+
refkeys: memberKey,
|
|
75
|
+
export: false,
|
|
76
|
+
default: false,
|
|
77
|
+
flags: memberFlags
|
|
78
|
+
});
|
|
79
|
+
scope.symbols.add(memberSym);
|
|
80
|
+
|
|
81
|
+
// Recursively handle nested static and instance members
|
|
82
|
+
if (memberObj.staticMembers && isStatic) {
|
|
83
|
+
assignMembers(binder, memberSym, memberObj.staticMembers, keys[namespace][memberObj.name], true);
|
|
84
|
+
}
|
|
85
|
+
if (memberObj.instanceMembers && !isStatic) {
|
|
86
|
+
assignMembers(binder, memberSym, memberObj.instanceMembers, keys[namespace][memberObj.name], false);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
3
90
|
function createSymbols(binder, props, refkeys) {
|
|
4
|
-
const pkgScope =
|
|
91
|
+
const pkgScope = new TSPackageScope(props.name, props.version, `node_modules/${props.name}`, {
|
|
92
|
+
binder,
|
|
93
|
+
builtin: props.builtin
|
|
94
|
+
});
|
|
5
95
|
for (const [path, symbols] of Object.entries(props.descriptor)) {
|
|
6
96
|
const keys = path === "." ? refkeys : refkeys[path];
|
|
7
|
-
const moduleScope =
|
|
97
|
+
const moduleScope = new TSModuleScope(path, {
|
|
98
|
+
binder,
|
|
99
|
+
parent: pkgScope
|
|
100
|
+
});
|
|
8
101
|
pkgScope.exportedSymbols.set(path, moduleScope);
|
|
9
102
|
if (symbols.default) {
|
|
10
103
|
const key = keys.default;
|
|
11
|
-
const sym =
|
|
12
|
-
name: symbols.default,
|
|
104
|
+
const sym = new TSOutputSymbol(symbols.default, {
|
|
13
105
|
scope: moduleScope,
|
|
14
|
-
|
|
106
|
+
refkeys: key,
|
|
15
107
|
export: true,
|
|
16
108
|
default: true
|
|
17
109
|
});
|
|
18
110
|
moduleScope.exportedSymbols.set(key, sym);
|
|
19
111
|
}
|
|
20
112
|
for (const exportedName of symbols.named ?? []) {
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
|
|
113
|
+
const namedRef = typeof exportedName === "string" ? {
|
|
114
|
+
name: exportedName
|
|
115
|
+
} : exportedName;
|
|
116
|
+
const key = keys[namedRef.name];
|
|
117
|
+
let flags = OutputSymbolFlags.None;
|
|
118
|
+
if (namedRef.staticMembers?.length) {
|
|
119
|
+
flags |= OutputSymbolFlags.StaticMemberContainer;
|
|
120
|
+
}
|
|
121
|
+
if (namedRef.instanceMembers?.length) {
|
|
122
|
+
flags |= OutputSymbolFlags.InstanceMemberContainer;
|
|
123
|
+
}
|
|
124
|
+
const ownerSym = new TSOutputSymbol(namedRef.name, {
|
|
125
|
+
binder,
|
|
24
126
|
scope: moduleScope,
|
|
25
|
-
|
|
127
|
+
refkeys: key,
|
|
26
128
|
export: true,
|
|
27
|
-
default: false
|
|
129
|
+
default: false,
|
|
130
|
+
flags
|
|
28
131
|
});
|
|
29
|
-
moduleScope.exportedSymbols.set(key,
|
|
132
|
+
moduleScope.exportedSymbols.set(key, ownerSym);
|
|
133
|
+
assignMembers(binder, ownerSym, namedRef.staticMembers ?? [], keys[namedRef.name], /* isStatic */true);
|
|
134
|
+
assignMembers(binder, ownerSym, namedRef.instanceMembers ?? [], keys[namedRef.name], /* isStatic */false);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
function createRefkeysForMembers(members, keys, namespace) {
|
|
139
|
+
keys[namespace] ??= {};
|
|
140
|
+
for (const member of members) {
|
|
141
|
+
const memberObj = typeof member === "string" ? {
|
|
142
|
+
name: member
|
|
143
|
+
} : member;
|
|
144
|
+
const memberKey = refkey();
|
|
145
|
+
keys[namespace][memberObj.name] = memberKey;
|
|
146
|
+
if (memberObj.staticMembers?.length) {
|
|
147
|
+
createRefkeysForMembers(memberObj.staticMembers, memberKey, "static");
|
|
148
|
+
}
|
|
149
|
+
if (memberObj.instanceMembers?.length) {
|
|
150
|
+
createRefkeysForMembers(memberObj.instanceMembers, memberKey, "instance");
|
|
30
151
|
}
|
|
31
152
|
}
|
|
32
153
|
}
|
|
@@ -37,12 +158,29 @@ export function createPackage(props) {
|
|
|
37
158
|
}
|
|
38
159
|
};
|
|
39
160
|
for (const [path, symbols] of Object.entries(props.descriptor)) {
|
|
40
|
-
const keys = path === "." ? refkeys :
|
|
161
|
+
const keys = path === "." ? refkeys : refkeys[path] = {};
|
|
41
162
|
if (symbols.default) {
|
|
42
163
|
keys.default = refkey(props.descriptor, path, "default");
|
|
43
164
|
}
|
|
44
165
|
for (const named of symbols.named ?? []) {
|
|
45
|
-
|
|
166
|
+
const namedObj = typeof named === "string" ? {
|
|
167
|
+
name: named
|
|
168
|
+
} : named;
|
|
169
|
+
keys[namedObj.name] = refkey();
|
|
170
|
+
if (namedObj.staticMembers?.length) {
|
|
171
|
+
createRefkeysForMembers(namedObj.staticMembers, keys[namedObj.name], "static");
|
|
172
|
+
}
|
|
173
|
+
if (namedObj.instanceMembers?.length) {
|
|
174
|
+
createRefkeysForMembers(namedObj.instanceMembers, keys[namedObj.name], "instance");
|
|
175
|
+
}
|
|
176
|
+
keys[namedObj.name][getSymbolCreatorSymbol()] = (binder, parentSym) => {
|
|
177
|
+
if (namedObj.staticMembers?.length) {
|
|
178
|
+
assignMembers(binder, parentSym, namedObj.staticMembers, keys[namedObj.name], true);
|
|
179
|
+
}
|
|
180
|
+
if (namedObj.instanceMembers?.length) {
|
|
181
|
+
assignMembers(binder, parentSym, namedObj.instanceMembers, keys[namedObj.name], false);
|
|
182
|
+
}
|
|
183
|
+
};
|
|
46
184
|
}
|
|
47
185
|
}
|
|
48
186
|
return refkeys;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source-directory-data.d.ts","sourceRoot":"","sources":["../../src/source-directory-data.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"source-directory-data.d.ts","sourceRoot":"","sources":["../../src/source-directory-data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,GAAG,CAAC,aAAa,CAAC,CAAC;CAC7B;AAOD,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,sBAAsB,uBAYvE"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { shallowReactive } from "@alloy-js/core";
|
|
2
2
|
const sourceDirectoryData = new WeakMap();
|
|
3
3
|
export function getSourceDirectoryData(sdContext) {
|
|
4
4
|
if (sourceDirectoryData.has(sdContext)) {
|
|
5
5
|
return sourceDirectoryData.get(sdContext);
|
|
6
6
|
}
|
|
7
7
|
const sdData = {
|
|
8
|
-
modules:
|
|
8
|
+
modules: shallowReactive(new Set())
|
|
9
9
|
};
|
|
10
10
|
sourceDirectoryData.set(sdContext, sdData);
|
|
11
11
|
return sdData;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Refkey } from "@alloy-js/core";
|
|
2
|
+
import { TSOutputSymbol } from "./ts-output-symbol.js";
|
|
2
3
|
export interface RefOptions {
|
|
3
4
|
type?: boolean;
|
|
4
5
|
}
|
|
5
|
-
export declare function ref(refkey: Refkey, options?: RefOptions): () => string;
|
|
6
|
+
export declare function ref(refkey: Refkey, options?: RefOptions): () => [string, TSOutputSymbol | undefined];
|
|
6
7
|
//# sourceMappingURL=reference.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reference.d.ts","sourceRoot":"","sources":["../../../src/symbols/reference.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,MAAM,EAKP,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"reference.d.ts","sourceRoot":"","sources":["../../../src/symbols/reference.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,MAAM,EAKP,MAAM,gBAAgB,CAAC;AAWxB,OAAO,EAAE,cAAc,EAAiB,MAAM,uBAAuB,CAAC;AAGtE,MAAM,WAAW,UAAU;IACzB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AACD,wBAAgB,GAAG,CACjB,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,UAAU,GACnB,MAAM,CAAC,MAAM,EAAE,cAAc,GAAG,SAAS,CAAC,CA2G5C"}
|
|
@@ -11,14 +11,13 @@ export function ref(refkey, options) {
|
|
|
11
11
|
const currentPrivateScope = usePrivateScope();
|
|
12
12
|
return memo(() => {
|
|
13
13
|
if (resolveResult.value === undefined) {
|
|
14
|
-
return "<Unresolved Symbol>";
|
|
14
|
+
return ["<Unresolved Symbol>", undefined];
|
|
15
15
|
}
|
|
16
16
|
const {
|
|
17
17
|
targetDeclaration,
|
|
18
18
|
pathDown,
|
|
19
19
|
memberPath
|
|
20
20
|
} = resolveResult.value;
|
|
21
|
-
|
|
22
21
|
// if we resolved a instance member, check if we should be able to access
|
|
23
22
|
// it.
|
|
24
23
|
if (targetDeclaration.flags & OutputSymbolFlags.InstanceMember) {
|
|
@@ -75,9 +74,9 @@ export function ref(refkey, options) {
|
|
|
75
74
|
if (localSymbol) {
|
|
76
75
|
memberPath[0] = localSymbol;
|
|
77
76
|
}
|
|
78
|
-
return buildMemberExpression(memberPath);
|
|
77
|
+
return [buildMemberExpression(memberPath), memberPath.at(-1)];
|
|
79
78
|
} else {
|
|
80
|
-
return buildMemberExpression([localSymbol ?? targetDeclaration]);
|
|
79
|
+
return [buildMemberExpression([localSymbol ?? targetDeclaration]), localSymbol ?? targetDeclaration];
|
|
81
80
|
}
|
|
82
81
|
});
|
|
83
82
|
}
|
|
@@ -2,15 +2,12 @@ import { OutputScope } from "@alloy-js/core";
|
|
|
2
2
|
import { TSMemberScope } from "./ts-member-scope.js";
|
|
3
3
|
import { TSModuleScope } from "./ts-module-scope.js";
|
|
4
4
|
import { TSPackageScope } from "./ts-package-scope.js";
|
|
5
|
-
export type TSOutputScope = TSGlobalScope | TSPackageScope | TSModuleScope | TSFunctionScope | TSMemberScope
|
|
5
|
+
export type TSOutputScope = TSGlobalScope | TSPackageScope | TSModuleScope | TSFunctionScope | TSMemberScope;
|
|
6
6
|
export interface TSGlobalScope extends OutputScope {
|
|
7
7
|
kind: "global";
|
|
8
8
|
}
|
|
9
9
|
export interface TSFunctionScope extends OutputScope {
|
|
10
10
|
kind: "function";
|
|
11
11
|
}
|
|
12
|
-
export interface TSOtherScope extends OutputScope {
|
|
13
|
-
kind: never;
|
|
14
|
-
}
|
|
15
12
|
export declare function useTSScope(): TSOutputScope;
|
|
16
13
|
//# sourceMappingURL=scopes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scopes.d.ts","sourceRoot":"","sources":["../../../src/symbols/scopes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAY,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,MAAM,MAAM,aAAa,GACrB,aAAa,GACb,cAAc,GACd,aAAa,GACb,eAAe,GACf,aAAa,
|
|
1
|
+
{"version":3,"file":"scopes.d.ts","sourceRoot":"","sources":["../../../src/symbols/scopes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAY,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,MAAM,MAAM,aAAa,GACrB,aAAa,GACb,cAAc,GACd,aAAa,GACb,eAAe,GACf,aAAa,CAAC;AAElB,MAAM,WAAW,aAAc,SAAQ,WAAW;IAChD,IAAI,EAAE,QAAQ,CAAC;CAChB;AAED,MAAM,WAAW,eAAgB,SAAQ,WAAW;IAClD,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,wBAAgB,UAAU,IACH,aAAa,CACnC"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OutputScope } from "@alloy-js/core";
|
|
2
2
|
import { TSOutputSymbol } from "./ts-output-symbol.js";
|
|
3
|
-
export
|
|
4
|
-
kind: "member";
|
|
5
|
-
owner: TSOutputSymbol;
|
|
6
|
-
isStatic: boolean;
|
|
3
|
+
export declare class TSMemberScope extends OutputScope {
|
|
4
|
+
get kind(): "member";
|
|
5
|
+
get owner(): TSOutputSymbol;
|
|
7
6
|
}
|
|
8
|
-
export declare function createTSMemberScope(binder: Binder, parent: OutputScope | undefined, owner: TSOutputSymbol, isStatic?: boolean): TSMemberScope;
|
|
9
7
|
//# sourceMappingURL=ts-member-scope.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ts-member-scope.d.ts","sourceRoot":"","sources":["../../../src/symbols/ts-member-scope.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"ts-member-scope.d.ts","sourceRoot":"","sources":["../../../src/symbols/ts-member-scope.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,qBAAa,aAAc,SAAQ,WAAW;IAC5C,IAAI,IAAI,IACC,QAAQ,CAChB;IAED,IAAI,KAAK,IACe,cAAc,CACrC;CACF"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
owner
|
|
8
|
-
|
|
9
|
-
isStatic
|
|
10
|
-
});
|
|
1
|
+
import { OutputScope } from "@alloy-js/core";
|
|
2
|
+
export class TSMemberScope extends OutputScope {
|
|
3
|
+
get kind() {
|
|
4
|
+
return "member";
|
|
5
|
+
}
|
|
6
|
+
get owner() {
|
|
7
|
+
return super.owner;
|
|
8
|
+
}
|
|
11
9
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OutputScope, Refkey } from "@alloy-js/core";
|
|
2
2
|
import { TSOutputSymbol } from "./ts-output-symbol.js";
|
|
3
3
|
export interface ImportedSymbol {
|
|
4
4
|
local: TSOutputSymbol;
|
|
@@ -8,15 +8,12 @@ export type ImportRecords = Map<TSModuleScope, Set<ImportedSymbol>>;
|
|
|
8
8
|
export interface AddImportOptions {
|
|
9
9
|
type?: boolean;
|
|
10
10
|
}
|
|
11
|
-
export
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
importedModules: ImportRecords;
|
|
19
|
-
addImport(symbol: TSOutputSymbol, module: TSModuleScope, options?: AddImportOptions): TSOutputSymbol;
|
|
11
|
+
export declare class TSModuleScope extends OutputScope {
|
|
12
|
+
#private;
|
|
13
|
+
get kind(): "module";
|
|
14
|
+
get exportedSymbols(): Map<Refkey, TSOutputSymbol>;
|
|
15
|
+
get importedSymbols(): Map<TSOutputSymbol, TSOutputSymbol>;
|
|
16
|
+
get importedModules(): ImportRecords;
|
|
17
|
+
addImport(targetSymbol: TSOutputSymbol, targetModule: TSModuleScope, options?: AddImportOptions): TSOutputSymbol;
|
|
20
18
|
}
|
|
21
|
-
export declare function createTSModuleScope(binder: Binder, parent: OutputScope, path: string): TSModuleScope;
|
|
22
19
|
//# sourceMappingURL=ts-module-scope.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ts-module-scope.d.ts","sourceRoot":"","sources":["../../../src/symbols/ts-module-scope.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"ts-module-scope.d.ts","sourceRoot":"","sources":["../../../src/symbols/ts-module-scope.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAY,MAAM,EAAmB,MAAM,gBAAgB,CAAC;AAChF,OAAO,EAAE,cAAc,EAAiB,MAAM,uBAAuB,CAAC;AAEtE,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,cAAc,CAAC;IACtB,MAAM,EAAE,cAAc,CAAC;CACxB;AACD,MAAM,MAAM,aAAa,GAAG,GAAG,CAAC,aAAa,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC,CAAC;AAEpE,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,qBAAa,aAAc,SAAQ,WAAW;;IAC5C,IAAI,IAAI,IACC,QAAQ,CAChB;IAGD,IAAI,eAAe,gCAElB;IAKD,IAAI,eAAe,wCAElB;IAGD,IAAI,eAAe,kBAElB;IAED,SAAS,CACP,YAAY,EAAE,cAAc,EAC5B,YAAY,EAAE,aAAa,EAC3B,OAAO,CAAC,EAAE,gBAAgB;CAuC7B"}
|