@alloy-js/typescript 0.16.0 → 0.18.0-dev.3
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 +11 -42
- package/dist/src/builtins/node.d.ts.map +1 -1
- package/dist/src/builtins/node.js +3 -0
- package/dist/src/components/ArrowFunction.d.ts +1 -1
- package/dist/src/components/ArrowFunction.d.ts.map +1 -1
- package/dist/src/components/CallSignature.d.ts +1 -1
- package/dist/src/components/CallSignature.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.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/ExportStatement.d.ts +1 -1
- package/dist/src/components/ExportStatement.d.ts.map +1 -1
- package/dist/src/components/FunctionBase.d.ts +1 -1
- 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 +1 -1
- package/dist/src/components/FunctionDeclaration.d.ts.map +1 -1
- package/dist/src/components/FunctionExpression.d.ts +1 -1
- package/dist/src/components/FunctionExpression.d.ts.map +1 -1
- package/dist/src/components/FunctionType.d.ts +1 -1
- package/dist/src/components/FunctionType.d.ts.map +1 -1
- package/dist/src/components/IfStatement.d.ts +1 -1
- package/dist/src/components/IfStatement.d.ts.map +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 +1 -2
- package/dist/src/components/InterfaceMethod.d.ts.map +1 -1
- package/dist/src/components/JSDoc.d.ts +1 -1
- package/dist/src/components/JSDoc.d.ts.map +1 -1
- package/dist/src/components/JSDocComment.d.ts +1 -1
- package/dist/src/components/JSDocComment.d.ts.map +1 -1
- package/dist/src/components/JSDocExample.d.ts +1 -1
- package/dist/src/components/JSDocExample.d.ts.map +1 -1
- package/dist/src/components/JSDocParam.d.ts +1 -1
- package/dist/src/components/JSDocParam.d.ts.map +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 +17 -18
- package/dist/src/components/PackageDirectory.d.ts.map +1 -1
- package/dist/src/components/PackageDirectory.js +3 -3
- package/dist/src/components/Reference.d.ts.map +1 -1
- package/dist/src/components/Reference.js +5 -1
- package/dist/src/components/SingleLineCommentBlock.d.ts +1 -1
- package/dist/src/components/SingleLineCommentBlock.d.ts.map +1 -1
- package/dist/src/components/SourceFile.d.ts +1 -2
- package/dist/src/components/SourceFile.d.ts.map +1 -1
- package/dist/src/components/SourceFile.js +3 -3
- package/dist/src/components/SwitchStatement.d.ts +1 -1
- package/dist/src/components/SwitchStatement.d.ts.map +1 -1
- package/dist/src/components/TypeRefContext.d.ts +1 -1
- package/dist/src/components/TypeRefContext.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 +63 -19
- package/dist/src/create-package.d.ts.map +1 -1
- package/dist/src/create-package.js +153 -15
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +2 -0
- package/dist/src/parameter-descriptor.d.ts +1 -1
- package/dist/src/parameter-descriptor.d.ts.map +1 -1
- 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/src/utils.js +1 -1
- 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/values.test.d.ts.map +1 -1
- package/dist/test/values.test.js +48 -1
- 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 +22 -21
- package/src/builtins/node.ts +4 -0
- package/src/components/ArrowFunction.tsx +1 -1
- package/src/components/CallSignature.tsx +1 -1
- 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 +26 -19
- package/src/components/FunctionDeclaration.tsx +1 -1
- package/src/components/FunctionExpression.tsx +1 -1
- package/src/components/FunctionType.tsx +1 -1
- package/src/components/IfStatement.tsx +1 -2
- package/src/components/ImportStatement.tsx +0 -1
- package/src/components/Interface.tsx +1 -1
- package/src/components/InterfaceMethod.tsx +1 -1
- package/src/components/JSDoc.tsx +1 -2
- package/src/components/JSDocComment.tsx +1 -1
- package/src/components/JSDocExample.tsx +1 -2
- package/src/components/JSDocParam.tsx +1 -2
- 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 +21 -19
- package/src/components/PackageDirectory.tsx +2 -10
- package/src/components/Reference.tsx +4 -2
- package/src/components/SingleLineCommentBlock.tsx +1 -2
- package/src/components/SourceFile.tsx +3 -6
- package/src/components/SwitchStatement.tsx +1 -2
- package/src/components/TypeRefContext.tsx +1 -1
- 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 +276 -37
- package/src/index.ts +2 -0
- package/src/parameter-descriptor.ts +1 -1
- 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/src/utils.ts +1 -1
- package/temp/api.json +3743 -3667
- 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 +34 -0
- package/test/var-declaration.test.tsx +101 -1
- package/tsconfig.json +2 -1
- package/tsdoc-metadata.json +1 -1
- package/LICENSE +0 -7
- package/dist/test/vitest.d.js +0 -1
- package/test/vitest.d.ts +0 -15
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
OutputScopeFlags,
|
|
3
3
|
OutputSymbol,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
OutputSymbolOptions,
|
|
5
|
+
track,
|
|
6
|
+
TrackOpTypes,
|
|
7
|
+
trigger,
|
|
8
|
+
TriggerOpTypes,
|
|
7
9
|
} from "@alloy-js/core";
|
|
8
10
|
import { TSOutputScope } from "./scopes.js";
|
|
9
|
-
import {
|
|
11
|
+
import { TSMemberScope } from "./ts-member-scope.js";
|
|
10
12
|
|
|
11
13
|
// prettier-ignore
|
|
12
14
|
export enum TSSymbolFlags {
|
|
@@ -19,63 +21,119 @@ export enum TSSymbolFlags {
|
|
|
19
21
|
Nullish = 1 << 5,
|
|
20
22
|
}
|
|
21
23
|
|
|
22
|
-
export interface
|
|
23
|
-
scope: TSOutputScope;
|
|
24
|
-
export: boolean;
|
|
25
|
-
default: boolean;
|
|
26
|
-
tsFlags: TSSymbolFlags;
|
|
27
|
-
privateMemberScope?: TSMemberScope;
|
|
28
|
-
privateStaticMemberScope?: TSMemberScope;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export interface createTsSymbolOptions {
|
|
32
|
-
name: string;
|
|
33
|
-
refkey?: Refkey | Refkey[];
|
|
34
|
-
binder?: Binder;
|
|
24
|
+
export interface CreateTsSymbolOptions extends OutputSymbolOptions {
|
|
35
25
|
scope?: TSOutputScope;
|
|
26
|
+
owner?: TSOutputSymbol;
|
|
36
27
|
export?: boolean;
|
|
37
28
|
default?: boolean;
|
|
38
|
-
flags?: OutputSymbolFlags;
|
|
39
29
|
tsFlags?: TSSymbolFlags;
|
|
40
|
-
metadata?: Record<string, unknown>;
|
|
41
30
|
}
|
|
42
31
|
|
|
43
|
-
export
|
|
44
|
-
|
|
45
|
-
|
|
32
|
+
export class TSOutputSymbol extends OutputSymbol {
|
|
33
|
+
constructor(name: string, options: CreateTsSymbolOptions = {}) {
|
|
34
|
+
super(name, options);
|
|
35
|
+
this.#export = !!options.export;
|
|
36
|
+
this.#default = !!options.default;
|
|
37
|
+
this.#tsFlags = options.tsFlags ?? TSSymbolFlags.None;
|
|
38
|
+
this.#privateMemberScope = undefined;
|
|
39
|
+
this.#privateStaticMemberScope = undefined;
|
|
40
|
+
if (this.#tsFlags & TSSymbolFlags.PrivateMemberContainer) {
|
|
41
|
+
this.#privateMemberScope = new TSMemberScope("private members", {
|
|
42
|
+
binder: this.binder,
|
|
43
|
+
owner: this,
|
|
44
|
+
flags: OutputScopeFlags.InstanceMemberScope,
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
this.#privateStaticMemberScope = new TSMemberScope(
|
|
48
|
+
"private static members",
|
|
49
|
+
{
|
|
50
|
+
flags: OutputScopeFlags.StaticMemberScope,
|
|
51
|
+
binder: this.binder,
|
|
52
|
+
owner: this,
|
|
53
|
+
},
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
if (options.export && this.scope.kind === "module") {
|
|
58
|
+
for (const refkey of this.refkeys) {
|
|
59
|
+
this.scope.exportedSymbols.set(refkey, this);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
46
63
|
|
|
47
|
-
|
|
48
|
-
|
|
64
|
+
#export: boolean;
|
|
65
|
+
get export() {
|
|
66
|
+
track(this, TrackOpTypes.GET, "export");
|
|
67
|
+
return this.#export;
|
|
49
68
|
}
|
|
50
69
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
);
|
|
70
|
+
set export(value: boolean) {
|
|
71
|
+
if (this.#export === value) {
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
this.#export = value;
|
|
75
|
+
trigger(this, TriggerOpTypes.SET, "export", value, !value);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
#default: boolean;
|
|
79
|
+
get default() {
|
|
80
|
+
track(this, TrackOpTypes.GET, "default");
|
|
81
|
+
return this.#default;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
set default(value: boolean) {
|
|
85
|
+
if (this.#default === value) {
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
this.#default = value;
|
|
89
|
+
trigger(this, TriggerOpTypes.SET, "default", value, !value);
|
|
72
90
|
}
|
|
73
91
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
92
|
+
#tsFlags: TSSymbolFlags;
|
|
93
|
+
get tsFlags() {
|
|
94
|
+
track(this, TrackOpTypes.GET, "tsFlags");
|
|
95
|
+
return this.#tsFlags;
|
|
96
|
+
}
|
|
97
|
+
set tsFlags(value: TSSymbolFlags) {
|
|
98
|
+
const oldValue = this.#tsFlags;
|
|
99
|
+
if (oldValue === value) {
|
|
100
|
+
return;
|
|
77
101
|
}
|
|
102
|
+
this.#tsFlags = value;
|
|
103
|
+
trigger(this, TriggerOpTypes.SET, "tsFlags", value, oldValue);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
get scope() {
|
|
107
|
+
return super.scope as TSOutputScope;
|
|
108
|
+
}
|
|
109
|
+
set scope(value: TSOutputScope) {
|
|
110
|
+
super.scope = value;
|
|
78
111
|
}
|
|
79
112
|
|
|
80
|
-
|
|
113
|
+
get staticMemberScope() {
|
|
114
|
+
return super.staticMemberScope as TSMemberScope | undefined;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
get instanceMemberScope() {
|
|
118
|
+
return super.instanceMemberScope as TSMemberScope | undefined;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
#privateMemberScope: TSMemberScope | undefined;
|
|
122
|
+
get privateMemberScope() {
|
|
123
|
+
return this.#privateMemberScope;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
#privateStaticMemberScope: TSMemberScope | undefined;
|
|
127
|
+
get privateStaticMemberScope() {
|
|
128
|
+
return this.#privateStaticMemberScope;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
protected createMemberScope(
|
|
132
|
+
name: string,
|
|
133
|
+
options: { owner?: OutputSymbol; flags?: OutputScopeFlags },
|
|
134
|
+
): TSMemberScope {
|
|
135
|
+
return new TSMemberScope(name, {
|
|
136
|
+
...options,
|
|
137
|
+
});
|
|
138
|
+
}
|
|
81
139
|
}
|
|
@@ -1,13 +1,28 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
OutputScope,
|
|
3
|
+
OutputScopeOptions,
|
|
4
|
+
Refkey,
|
|
5
|
+
shallowReactive,
|
|
6
|
+
} from "@alloy-js/core";
|
|
2
7
|
import { modulePath } from "../utils.js";
|
|
3
8
|
import { TSModuleScope } from "./ts-module-scope.js";
|
|
4
9
|
|
|
5
|
-
export interface
|
|
6
|
-
|
|
10
|
+
export interface TSPackageScopeOptions extends OutputScopeOptions {
|
|
11
|
+
builtin?: boolean;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export class TSPackageScope extends OutputScope {
|
|
15
|
+
get kind() {
|
|
16
|
+
return "package" as const;
|
|
17
|
+
}
|
|
18
|
+
|
|
7
19
|
/**
|
|
8
20
|
* The version of the this package.
|
|
9
21
|
*/
|
|
10
|
-
version
|
|
22
|
+
get version() {
|
|
23
|
+
return this.#version;
|
|
24
|
+
}
|
|
25
|
+
#version: string;
|
|
11
26
|
|
|
12
27
|
/**
|
|
13
28
|
* The symbols exported by this package. They are broken down by which paths
|
|
@@ -15,70 +30,73 @@ export interface TSPackageScope extends OutputScope {
|
|
|
15
30
|
* paths, in which case emitters can decide which symbol to use based on their
|
|
16
31
|
* own heuristics.
|
|
17
32
|
*/
|
|
18
|
-
exportedSymbols
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
*/
|
|
23
|
-
path: string;
|
|
33
|
+
get exportedSymbols() {
|
|
34
|
+
return this.#exportedSymbols;
|
|
35
|
+
}
|
|
36
|
+
#exportedSymbols: Map<string, TSModuleScope> = shallowReactive(new Map());
|
|
24
37
|
|
|
25
38
|
/**
|
|
26
39
|
* The scopes for the packages this package depends on.
|
|
27
40
|
*/
|
|
28
|
-
dependencies
|
|
41
|
+
get dependencies() {
|
|
42
|
+
return this.#dependencies;
|
|
43
|
+
}
|
|
44
|
+
#dependencies: Set<TSPackageScope> = shallowReactive(new Set());
|
|
29
45
|
|
|
30
46
|
/**
|
|
31
47
|
* All of the modules contained within the package. These modules may or may not
|
|
32
48
|
* be exported.
|
|
33
49
|
*/
|
|
34
|
-
modules
|
|
50
|
+
get modules() {
|
|
51
|
+
return this.#modules;
|
|
52
|
+
}
|
|
53
|
+
#modules: Set<TSModuleScope> = shallowReactive(new Set());
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* The path of the root directory of the package.
|
|
57
|
+
*/
|
|
58
|
+
get path() {
|
|
59
|
+
return this.#path;
|
|
60
|
+
}
|
|
61
|
+
#path: string;
|
|
35
62
|
|
|
36
63
|
/**
|
|
37
64
|
* Whether this is a built-in package provided by the platform.
|
|
38
65
|
*/
|
|
39
|
-
builtin
|
|
66
|
+
get builtin() {
|
|
67
|
+
return this.#builtin;
|
|
68
|
+
}
|
|
69
|
+
#builtin: boolean;
|
|
40
70
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
71
|
+
constructor(
|
|
72
|
+
name: string,
|
|
73
|
+
version: string,
|
|
74
|
+
path: string,
|
|
75
|
+
options: TSPackageScopeOptions = {},
|
|
76
|
+
) {
|
|
77
|
+
super(name, options);
|
|
78
|
+
this.#version = version;
|
|
79
|
+
this.#path = path;
|
|
80
|
+
this.#builtin = !!options.builtin;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
addDependency(pkg: TSPackageScope) {
|
|
84
|
+
this.dependencies.add(pkg);
|
|
85
|
+
}
|
|
86
|
+
addExport(publicPath: string, module: TSModuleScope) {
|
|
87
|
+
this.exportedSymbols.set(modulePath(publicPath), module);
|
|
88
|
+
}
|
|
89
|
+
addModule(module: TSModuleScope) {
|
|
90
|
+
this.modules.add(module);
|
|
91
|
+
}
|
|
46
92
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
version: string,
|
|
52
|
-
path: string,
|
|
53
|
-
builtin: boolean = false,
|
|
54
|
-
) {
|
|
55
|
-
return binder.createScope<TSPackageScope>({
|
|
56
|
-
kind: "package",
|
|
57
|
-
name,
|
|
58
|
-
parent,
|
|
59
|
-
exportedSymbols: new Map(),
|
|
60
|
-
dependencies: new Set(),
|
|
61
|
-
modules: new Set(),
|
|
62
|
-
version,
|
|
63
|
-
path: path,
|
|
64
|
-
builtin,
|
|
65
|
-
addDependency(pkg) {
|
|
66
|
-
this.dependencies.add(pkg);
|
|
67
|
-
},
|
|
68
|
-
addExport(publicPath, module) {
|
|
69
|
-
this.exportedSymbols.set(modulePath(publicPath), module);
|
|
70
|
-
},
|
|
71
|
-
addModule(module) {
|
|
72
|
-
this.modules.add(module);
|
|
73
|
-
},
|
|
74
|
-
findExportedSymbol(refkey: Refkey): [string, TSModuleScope] | null {
|
|
75
|
-
for (const [publicPath, module] of this.exportedSymbols) {
|
|
76
|
-
if (module.exportedSymbols.has(refkey)) {
|
|
77
|
-
return [publicPath, module];
|
|
78
|
-
}
|
|
93
|
+
findExportedSymbol(refkey: Refkey): [string, TSModuleScope] | null {
|
|
94
|
+
for (const [publicPath, module] of this.exportedSymbols) {
|
|
95
|
+
if (module.exportedSymbols.has(refkey)) {
|
|
96
|
+
return [publicPath, module];
|
|
79
97
|
}
|
|
98
|
+
}
|
|
80
99
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
});
|
|
100
|
+
return null;
|
|
101
|
+
}
|
|
84
102
|
}
|
package/src/utils.ts
CHANGED