@alloy-js/typescript 0.15.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 +25 -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 +27 -5
- package/dist/src/components/MemberExpression.d.ts.map +1 -1
- package/dist/src/components/MemberExpression.js +327 -89
- 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 -1
- package/dist/src/components/index.d.ts.map +1 -1
- package/dist/src/components/index.js +1 -1
- package/dist/src/components/stc/index.d.ts +45 -44
- package/dist/src/components/stc/index.d.ts.map +1 -1
- package/dist/src/components/stc/index.js +46 -45
- 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 +391 -5
- 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 +416 -103
- 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 -1
- package/src/components/stc/index.ts +46 -45
- 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 +1665 -1733
- 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 +312 -8
- 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
- package/dist/src/components/MemberChainExpression.d.ts +0 -11
- package/dist/src/components/MemberChainExpression.d.ts.map +0 -1
- package/dist/src/components/MemberChainExpression.js +0 -98
- package/dist/test/member-chain.test.d.ts +0 -2
- package/dist/test/member-chain.test.d.ts.map +0 -1
- package/dist/test/member-chain.test.js +0 -141
- package/src/components/MemberChainExpression.tsx +0 -91
- package/test/member-chain.test.tsx +0 -124
|
@@ -4,17 +4,18 @@ import {
|
|
|
4
4
|
Children,
|
|
5
5
|
computed,
|
|
6
6
|
createAssignmentContext,
|
|
7
|
+
emitSymbol,
|
|
7
8
|
For,
|
|
8
|
-
getAssignmentSymbol,
|
|
9
9
|
Match,
|
|
10
10
|
MemberScope,
|
|
11
|
+
moveTakenMembersTo,
|
|
11
12
|
OutputSymbolFlags,
|
|
12
13
|
Refkey,
|
|
13
14
|
Switch,
|
|
14
|
-
|
|
15
|
+
takeSymbols,
|
|
15
16
|
} from "@alloy-js/core";
|
|
16
17
|
import { useTSNamePolicy } from "../name-policy.js";
|
|
17
|
-
import {
|
|
18
|
+
import { TSOutputSymbol } from "../symbols/ts-output-symbol.js";
|
|
18
19
|
import { PropertyName } from "./PropertyName.jsx";
|
|
19
20
|
import { ValueExpression } from "./ValueExpression.js";
|
|
20
21
|
|
|
@@ -27,11 +28,12 @@ export interface ObjectExpressionProps {
|
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
export function ObjectExpression(props: ObjectExpressionProps) {
|
|
30
|
-
const
|
|
31
|
+
const symbol = new TSOutputSymbol("", {
|
|
32
|
+
flags:
|
|
33
|
+
OutputSymbolFlags.StaticMemberContainer | OutputSymbolFlags.Transient,
|
|
34
|
+
});
|
|
31
35
|
|
|
32
|
-
|
|
33
|
-
assignmentSymbol.binder.addStaticMembersToSymbol(assignmentSymbol);
|
|
34
|
-
}
|
|
36
|
+
emitSymbol(symbol);
|
|
35
37
|
|
|
36
38
|
const jsValueProperties = computed(() => {
|
|
37
39
|
const jsValue = props.jsValue;
|
|
@@ -57,11 +59,7 @@ export function ObjectExpression(props: ObjectExpressionProps) {
|
|
|
57
59
|
</Match>
|
|
58
60
|
<Match else>
|
|
59
61
|
<group>
|
|
60
|
-
<
|
|
61
|
-
when={!!assignmentSymbol}
|
|
62
|
-
with={MemberScope}
|
|
63
|
-
props={{ owner: assignmentSymbol! }}
|
|
64
|
-
>
|
|
62
|
+
<MemberScope owner={symbol}>
|
|
65
63
|
<Block>
|
|
66
64
|
<For each={jsValueProperties} comma softline enderPunctuation>
|
|
67
65
|
{([name, value]) => (
|
|
@@ -79,7 +77,7 @@ export function ObjectExpression(props: ObjectExpressionProps) {
|
|
|
79
77
|
</>
|
|
80
78
|
)}
|
|
81
79
|
</Block>
|
|
82
|
-
</
|
|
80
|
+
</MemberScope>
|
|
83
81
|
</group>
|
|
84
82
|
</Match>
|
|
85
83
|
</Switch>
|
|
@@ -110,11 +108,15 @@ export function ObjectProperty(props: ObjectPropertyProps) {
|
|
|
110
108
|
|
|
111
109
|
let sym = undefined;
|
|
112
110
|
if (props.refkey && props.name) {
|
|
113
|
-
sym =
|
|
114
|
-
|
|
115
|
-
refkey: props.refkey,
|
|
111
|
+
sym = new TSOutputSymbol(props.name, {
|
|
112
|
+
refkeys: props.refkey,
|
|
116
113
|
flags: OutputSymbolFlags.StaticMember,
|
|
117
114
|
});
|
|
115
|
+
|
|
116
|
+
moveTakenMembersTo(sym);
|
|
117
|
+
} else {
|
|
118
|
+
// noop
|
|
119
|
+
takeSymbols();
|
|
118
120
|
}
|
|
119
121
|
|
|
120
122
|
let value;
|
|
@@ -8,12 +8,10 @@ import {
|
|
|
8
8
|
SourceDirectory,
|
|
9
9
|
SourceDirectoryContext,
|
|
10
10
|
splitProps,
|
|
11
|
-
useBinder,
|
|
12
11
|
useContext,
|
|
13
|
-
useScope,
|
|
14
12
|
} from "@alloy-js/core";
|
|
15
13
|
import { join } from "pathe";
|
|
16
|
-
import {
|
|
14
|
+
import { TSPackageScope } from "../symbols/index.js";
|
|
17
15
|
import { modulePath } from "../utils.js";
|
|
18
16
|
import { PackageJsonFile, PackageJsonFileProps } from "./PackageJson.js";
|
|
19
17
|
import { TSConfigJson } from "./TsConfigJson.js";
|
|
@@ -82,13 +80,7 @@ function createPackageContext(
|
|
|
82
80
|
// todo: this can probably just use context.
|
|
83
81
|
const fullPath = parentDir ? join(parentDir.path, path) : path;
|
|
84
82
|
|
|
85
|
-
const scope =
|
|
86
|
-
useBinder(),
|
|
87
|
-
useScope(),
|
|
88
|
-
name,
|
|
89
|
-
version,
|
|
90
|
-
fullPath,
|
|
91
|
-
);
|
|
83
|
+
const scope = new TSPackageScope(name, version, fullPath);
|
|
92
84
|
|
|
93
85
|
return {
|
|
94
86
|
scope,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Refkey } from "@alloy-js/core";
|
|
1
|
+
import { computed, emitSymbol, Refkey } from "@alloy-js/core";
|
|
2
2
|
import { isTypeRefContext } from "../context/type-ref-context.js";
|
|
3
3
|
import { ref } from "../symbols/index.js";
|
|
4
4
|
|
|
@@ -17,6 +17,8 @@ export interface ReferenceProps {
|
|
|
17
17
|
export function Reference({ refkey, type }: ReferenceProps) {
|
|
18
18
|
const inTypeRef = isTypeRefContext();
|
|
19
19
|
const reference = ref(refkey, { type: type ?? inTypeRef });
|
|
20
|
+
const symbolRef = computed(() => reference()[1]);
|
|
20
21
|
|
|
21
|
-
|
|
22
|
+
emitSymbol(symbolRef);
|
|
23
|
+
return <>{reference()[0]}</>;
|
|
22
24
|
}
|
|
@@ -5,15 +5,13 @@ import {
|
|
|
5
5
|
Scope,
|
|
6
6
|
Show,
|
|
7
7
|
SourceDirectoryContext,
|
|
8
|
-
useBinder,
|
|
9
8
|
useContext,
|
|
10
|
-
useScope,
|
|
11
9
|
} from "@alloy-js/core";
|
|
12
10
|
|
|
13
11
|
import { Children } from "@alloy-js/core/jsx-runtime";
|
|
14
12
|
import { join } from "pathe";
|
|
15
13
|
import { getSourceDirectoryData } from "../source-directory-data.js";
|
|
16
|
-
import {
|
|
14
|
+
import { TSModuleScope } from "../symbols/index.js";
|
|
17
15
|
import { ImportStatements } from "./ImportStatement.js";
|
|
18
16
|
import { PackageContext } from "./PackageDirectory.js";
|
|
19
17
|
import { Reference } from "./Reference.js";
|
|
@@ -41,13 +39,12 @@ export function SourceFile(props: SourceFileProps) {
|
|
|
41
39
|
const sdData = getSourceDirectoryData(directoryContext);
|
|
42
40
|
const currentDir = directoryContext.path;
|
|
43
41
|
const path: string = join(currentDir, props.path);
|
|
44
|
-
const scope =
|
|
42
|
+
const scope = new TSModuleScope(path);
|
|
45
43
|
sdData.modules.add(scope);
|
|
46
44
|
const pkg = useContext(PackageContext);
|
|
47
45
|
if (pkg) {
|
|
48
46
|
pkg.scope.addModule(scope);
|
|
49
47
|
}
|
|
50
|
-
|
|
51
48
|
const sfContext: SourceFileContext = {
|
|
52
49
|
scope,
|
|
53
50
|
};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
|
-
AssignmentContext,
|
|
3
2
|
Children,
|
|
4
3
|
Declaration as CoreDeclaration,
|
|
5
|
-
|
|
4
|
+
createSymbolSlot,
|
|
5
|
+
effect,
|
|
6
6
|
Name,
|
|
7
|
+
OutputSymbolFlags,
|
|
7
8
|
Show,
|
|
8
9
|
} from "@alloy-js/core";
|
|
9
10
|
import { useTSNamePolicy } from "../name-policy.js";
|
|
10
|
-
import {
|
|
11
|
+
import { TSOutputSymbol, TSSymbolFlags } from "../symbols/ts-output-symbol.js";
|
|
11
12
|
import { BaseDeclarationProps } from "./Declaration.js";
|
|
12
13
|
import { JSDoc } from "./JSDoc.jsx";
|
|
13
14
|
import { TypeRefContext } from "./TypeRefContext.jsx";
|
|
@@ -22,24 +23,46 @@ export interface VarDeclarationProps extends BaseDeclarationProps {
|
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
export function VarDeclaration(props: VarDeclarationProps) {
|
|
26
|
+
const TypeSymbolSlot = createSymbolSlot();
|
|
27
|
+
const ValueTypeSymbolSlot = createSymbolSlot();
|
|
28
|
+
|
|
29
|
+
effect(() => {
|
|
30
|
+
if (TypeSymbolSlot.ref.value) {
|
|
31
|
+
const takenSymbols = TypeSymbolSlot.ref.value;
|
|
32
|
+
for (const symbol of takenSymbols) {
|
|
33
|
+
symbol.instantiateTo(sym);
|
|
34
|
+
}
|
|
35
|
+
} else if (ValueTypeSymbolSlot.ref.value) {
|
|
36
|
+
const takenSymbols = ValueTypeSymbolSlot.ref.value;
|
|
37
|
+
for (const symbol of takenSymbols) {
|
|
38
|
+
// ignore non-transient symbols (likely not the result of an
|
|
39
|
+
// expression).
|
|
40
|
+
if (symbol.flags & OutputSymbolFlags.Transient) {
|
|
41
|
+
symbol.moveTo(sym);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
|
|
25
47
|
const keyword =
|
|
26
48
|
props.var ? "var"
|
|
27
49
|
: props.let ? "let"
|
|
28
50
|
: "const";
|
|
29
51
|
const type =
|
|
30
|
-
props.type ?
|
|
52
|
+
props.type ?
|
|
53
|
+
<TypeRefContext>
|
|
54
|
+
: <TypeSymbolSlot>{props.type}</TypeSymbolSlot>
|
|
55
|
+
</TypeRefContext>
|
|
56
|
+
: undefined;
|
|
31
57
|
const name = useTSNamePolicy().getName(props.name, "variable");
|
|
32
|
-
const sym =
|
|
33
|
-
|
|
34
|
-
refkey: props.refkey,
|
|
58
|
+
const sym = new TSOutputSymbol(name, {
|
|
59
|
+
refkeys: props.refkey,
|
|
35
60
|
default: props.default,
|
|
36
61
|
export: props.export,
|
|
37
62
|
metadata: props.metadata,
|
|
38
63
|
tsFlags: props.nullish ? TSSymbolFlags.Nullish : TSSymbolFlags.None,
|
|
39
64
|
});
|
|
40
65
|
|
|
41
|
-
const assignmentContext = createAssignmentContext(sym);
|
|
42
|
-
|
|
43
66
|
return (
|
|
44
67
|
<>
|
|
45
68
|
<Show when={Boolean(props.doc)}>
|
|
@@ -51,9 +74,9 @@ export function VarDeclaration(props: VarDeclarationProps) {
|
|
|
51
74
|
{props.default ? "default " : ""}
|
|
52
75
|
{keyword} <Name />
|
|
53
76
|
{type} ={" "}
|
|
54
|
-
<
|
|
77
|
+
<ValueTypeSymbolSlot>
|
|
55
78
|
{props.initializer ?? props.children}
|
|
56
|
-
</
|
|
79
|
+
</ValueTypeSymbolSlot>
|
|
57
80
|
</CoreDeclaration>
|
|
58
81
|
</>
|
|
59
82
|
);
|
package/src/components/index.ts
CHANGED
|
@@ -26,8 +26,8 @@ export * from "./InterfaceMethod.jsx";
|
|
|
26
26
|
export * from "./JSDoc.jsx";
|
|
27
27
|
export * from "./JSDocComment.jsx";
|
|
28
28
|
export * from "./JSDocExample.jsx";
|
|
29
|
-
export * from "./MemberChainExpression.jsx";
|
|
30
29
|
export * from "./MemberExpression.jsx";
|
|
30
|
+
export * from "./NewExpression.jsx";
|
|
31
31
|
export * from "./ObjectExpression.js";
|
|
32
32
|
export * from "./PackageDirectory.js";
|
|
33
33
|
export * from "./PackageJson.js";
|
|
@@ -1,47 +1,48 @@
|
|
|
1
|
-
|
|
1
|
+
// prettier-ignore
|
|
2
|
+
import * as core from "@alloy-js/core";
|
|
2
3
|
import * as base from "../index.js";
|
|
3
4
|
|
|
4
|
-
export const ArrayExpression = stc(base.ArrayExpression);
|
|
5
|
-
export const ArrowFunction = stc(base.ArrowFunction);
|
|
6
|
-
export const BarrelFile = stc(base.BarrelFile);
|
|
7
|
-
export const CallSignature = stc(base.CallSignature);
|
|
8
|
-
export const ClassDeclaration = stc(base.ClassDeclaration);
|
|
9
|
-
export const ClassField = stc(base.ClassField);
|
|
10
|
-
export const ClassMember = stc(base.ClassMember);
|
|
11
|
-
export const ClassMethod = stc(base.ClassMethod);
|
|
12
|
-
export const CommaList = stc(base.CommaList);
|
|
13
|
-
export const Declaration = stc(base.Declaration);
|
|
14
|
-
export const EnumDeclaration = stc(base.EnumDeclaration);
|
|
15
|
-
export const EnumMember = stc(base.EnumMember);
|
|
16
|
-
export const ExportStatement = stc(base.ExportStatement);
|
|
17
|
-
export const FunctionCallExpression = stc(base.FunctionCallExpression);
|
|
18
|
-
export const FunctionDeclaration = stc(base.FunctionDeclaration);
|
|
19
|
-
export const FunctionExpression = stc(base.FunctionExpression);
|
|
20
|
-
export const IfStatement = stc(base.IfStatement);
|
|
21
|
-
export const ElseClause = stc(base.ElseClause);
|
|
22
|
-
export const ElseIfClause = stc(base.ElseIfClause);
|
|
23
|
-
export const ImportStatement = stc(base.ImportStatement);
|
|
24
|
-
export const ImportStatements = stc(base.ImportStatements);
|
|
25
|
-
export const InterfaceDeclaration = stc(base.InterfaceDeclaration);
|
|
26
|
-
export const InterfaceExpression = stc(base.InterfaceExpression);
|
|
27
|
-
export const InterfaceMember = stc(base.InterfaceMember);
|
|
28
|
-
export const InterfaceMethod = stc(base.InterfaceMethod);
|
|
29
|
-
export const JSDoc = stc(base.JSDoc);
|
|
30
|
-
export const JSDocExample = stc(base.JSDocExample);
|
|
31
|
-
export const JSDocComment = stc(base.JSDocComment);
|
|
32
|
-
export const MemberExpression = stc(base.MemberExpression);
|
|
33
|
-
export const
|
|
34
|
-
export const ObjectExpression = stc(base.ObjectExpression);
|
|
35
|
-
export const ObjectProperty = stc(base.ObjectProperty);
|
|
36
|
-
export const PackageDirectory = stc(base.PackageDirectory);
|
|
37
|
-
export const PackageJsonFile = stc(base.PackageJsonFile);
|
|
38
|
-
export const Reference = stc(base.Reference);
|
|
39
|
-
export const SourceFile = stc(base.SourceFile);
|
|
40
|
-
export const SwitchStatement = stc(base.SwitchStatement);
|
|
41
|
-
export const CaseClause = stc(base.CaseClause);
|
|
42
|
-
export const TSConfigJson = stc(base.TSConfigJson);
|
|
43
|
-
export const FunctionType = stc(base.FunctionType);
|
|
44
|
-
export const TypeDeclaration = stc(base.TypeDeclaration);
|
|
45
|
-
export const TypeRefContext = stc(base.TypeRefContext);
|
|
46
|
-
export const ValueExpression = stc(base.ValueExpression);
|
|
47
|
-
export const VarDeclaration = stc(base.VarDeclaration);
|
|
5
|
+
export const ArrayExpression = core.stc(base.ArrayExpression);
|
|
6
|
+
export const ArrowFunction = core.stc(base.ArrowFunction);
|
|
7
|
+
export const BarrelFile = core.stc(base.BarrelFile);
|
|
8
|
+
export const CallSignature = core.stc(base.CallSignature);
|
|
9
|
+
export const ClassDeclaration = core.stc(base.ClassDeclaration);
|
|
10
|
+
export const ClassField = core.stc(base.ClassField);
|
|
11
|
+
export const ClassMember = core.stc(base.ClassMember);
|
|
12
|
+
export const ClassMethod = core.stc(base.ClassMethod);
|
|
13
|
+
export const CommaList = core.stc(base.CommaList);
|
|
14
|
+
export const Declaration = core.stc(base.Declaration);
|
|
15
|
+
export const EnumDeclaration = core.stc(base.EnumDeclaration);
|
|
16
|
+
export const EnumMember = core.stc(base.EnumMember);
|
|
17
|
+
export const ExportStatement = core.stc(base.ExportStatement);
|
|
18
|
+
export const FunctionCallExpression = core.stc(base.FunctionCallExpression);
|
|
19
|
+
export const FunctionDeclaration = core.stc(base.FunctionDeclaration);
|
|
20
|
+
export const FunctionExpression = core.stc(base.FunctionExpression);
|
|
21
|
+
export const IfStatement = core.stc(base.IfStatement);
|
|
22
|
+
export const ElseClause = core.stc(base.ElseClause);
|
|
23
|
+
export const ElseIfClause = core.stc(base.ElseIfClause);
|
|
24
|
+
export const ImportStatement = core.stc(base.ImportStatement);
|
|
25
|
+
export const ImportStatements = core.stc(base.ImportStatements);
|
|
26
|
+
export const InterfaceDeclaration = core.stc(base.InterfaceDeclaration);
|
|
27
|
+
export const InterfaceExpression = core.stc(base.InterfaceExpression);
|
|
28
|
+
export const InterfaceMember = core.stc(base.InterfaceMember);
|
|
29
|
+
export const InterfaceMethod = core.stc(base.InterfaceMethod);
|
|
30
|
+
export const JSDoc = core.stc(base.JSDoc);
|
|
31
|
+
export const JSDocExample = core.stc(base.JSDocExample);
|
|
32
|
+
export const JSDocComment = core.stc(base.JSDocComment);
|
|
33
|
+
export const MemberExpression = core.stc(base.MemberExpression);
|
|
34
|
+
export const NewExpression = core.stc(base.NewExpression);
|
|
35
|
+
export const ObjectExpression = core.stc(base.ObjectExpression);
|
|
36
|
+
export const ObjectProperty = core.stc(base.ObjectProperty);
|
|
37
|
+
export const PackageDirectory = core.stc(base.PackageDirectory);
|
|
38
|
+
export const PackageJsonFile = core.stc(base.PackageJsonFile);
|
|
39
|
+
export const Reference = core.stc(base.Reference);
|
|
40
|
+
export const SourceFile = core.stc(base.SourceFile);
|
|
41
|
+
export const SwitchStatement = core.stc(base.SwitchStatement);
|
|
42
|
+
export const CaseClause = core.stc(base.CaseClause);
|
|
43
|
+
export const TSConfigJson = core.stc(base.TSConfigJson);
|
|
44
|
+
export const FunctionType = core.stc(base.FunctionType);
|
|
45
|
+
export const TypeDeclaration = core.stc(base.TypeDeclaration);
|
|
46
|
+
export const TypeRefContext = core.stc(base.TypeRefContext);
|
|
47
|
+
export const ValueExpression = core.stc(base.ValueExpression);
|
|
48
|
+
export const VarDeclaration = core.stc(base.VarDeclaration);
|