@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.
Files changed (169) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/src/builtins/node.d.ts +11 -42
  3. package/dist/src/builtins/node.d.ts.map +1 -1
  4. package/dist/src/builtins/node.js +3 -0
  5. package/dist/src/components/ArrowFunction.d.ts +1 -1
  6. package/dist/src/components/ArrowFunction.d.ts.map +1 -1
  7. package/dist/src/components/CallSignature.d.ts +1 -1
  8. package/dist/src/components/CallSignature.d.ts.map +1 -1
  9. package/dist/src/components/ClassDeclaration.d.ts.map +1 -1
  10. package/dist/src/components/ClassDeclaration.js +5 -7
  11. package/dist/src/components/Declaration.d.ts.map +1 -1
  12. package/dist/src/components/Declaration.js +3 -4
  13. package/dist/src/components/EnumDeclaration.d.ts.map +1 -1
  14. package/dist/src/components/EnumDeclaration.js +3 -4
  15. package/dist/src/components/EnumMember.d.ts.map +1 -1
  16. package/dist/src/components/EnumMember.js +3 -4
  17. package/dist/src/components/ExportStatement.d.ts +1 -1
  18. package/dist/src/components/ExportStatement.d.ts.map +1 -1
  19. package/dist/src/components/FunctionBase.d.ts +1 -1
  20. package/dist/src/components/FunctionBase.d.ts.map +1 -1
  21. package/dist/src/components/FunctionBase.js +15 -10
  22. package/dist/src/components/FunctionDeclaration.d.ts +1 -1
  23. package/dist/src/components/FunctionDeclaration.d.ts.map +1 -1
  24. package/dist/src/components/FunctionExpression.d.ts +1 -1
  25. package/dist/src/components/FunctionExpression.d.ts.map +1 -1
  26. package/dist/src/components/FunctionType.d.ts +1 -1
  27. package/dist/src/components/FunctionType.d.ts.map +1 -1
  28. package/dist/src/components/IfStatement.d.ts +1 -1
  29. package/dist/src/components/IfStatement.d.ts.map +1 -1
  30. package/dist/src/components/ImportStatement.d.ts.map +1 -1
  31. package/dist/src/components/Interface.js +1 -1
  32. package/dist/src/components/InterfaceMethod.d.ts +1 -2
  33. package/dist/src/components/InterfaceMethod.d.ts.map +1 -1
  34. package/dist/src/components/JSDoc.d.ts +1 -1
  35. package/dist/src/components/JSDoc.d.ts.map +1 -1
  36. package/dist/src/components/JSDocComment.d.ts +1 -1
  37. package/dist/src/components/JSDocComment.d.ts.map +1 -1
  38. package/dist/src/components/JSDocExample.d.ts +1 -1
  39. package/dist/src/components/JSDocExample.d.ts.map +1 -1
  40. package/dist/src/components/JSDocParam.d.ts +1 -1
  41. package/dist/src/components/JSDocParam.d.ts.map +1 -1
  42. package/dist/src/components/MemberDeclaration.d.ts.map +1 -1
  43. package/dist/src/components/MemberDeclaration.js +4 -4
  44. package/dist/src/components/MemberExpression.d.ts +6 -1
  45. package/dist/src/components/MemberExpression.d.ts.map +1 -1
  46. package/dist/src/components/MemberExpression.js +38 -14
  47. package/dist/src/components/NewExpression.d.ts +5 -0
  48. package/dist/src/components/NewExpression.d.ts.map +1 -0
  49. package/dist/src/components/NewExpression.js +12 -0
  50. package/dist/src/components/ObjectExpression.d.ts.map +1 -1
  51. package/dist/src/components/ObjectExpression.js +17 -18
  52. package/dist/src/components/PackageDirectory.d.ts.map +1 -1
  53. package/dist/src/components/PackageDirectory.js +3 -3
  54. package/dist/src/components/Reference.d.ts.map +1 -1
  55. package/dist/src/components/Reference.js +5 -1
  56. package/dist/src/components/SingleLineCommentBlock.d.ts +1 -1
  57. package/dist/src/components/SingleLineCommentBlock.d.ts.map +1 -1
  58. package/dist/src/components/SourceFile.d.ts +1 -2
  59. package/dist/src/components/SourceFile.d.ts.map +1 -1
  60. package/dist/src/components/SourceFile.js +3 -3
  61. package/dist/src/components/SwitchStatement.d.ts +1 -1
  62. package/dist/src/components/SwitchStatement.d.ts.map +1 -1
  63. package/dist/src/components/TypeRefContext.d.ts +1 -1
  64. package/dist/src/components/TypeRefContext.d.ts.map +1 -1
  65. package/dist/src/components/VarDeclaration.d.ts.map +1 -1
  66. package/dist/src/components/VarDeclaration.js +30 -10
  67. package/dist/src/components/index.d.ts +1 -0
  68. package/dist/src/components/index.d.ts.map +1 -1
  69. package/dist/src/components/index.js +1 -0
  70. package/dist/src/components/stc/index.d.ts +45 -43
  71. package/dist/src/components/stc/index.d.ts.map +1 -1
  72. package/dist/src/components/stc/index.js +46 -44
  73. package/dist/src/create-package.d.ts +63 -19
  74. package/dist/src/create-package.d.ts.map +1 -1
  75. package/dist/src/create-package.js +153 -15
  76. package/dist/src/index.d.ts +2 -0
  77. package/dist/src/index.d.ts.map +1 -1
  78. package/dist/src/index.js +2 -0
  79. package/dist/src/parameter-descriptor.d.ts +1 -1
  80. package/dist/src/parameter-descriptor.d.ts.map +1 -1
  81. package/dist/src/source-directory-data.d.ts.map +1 -1
  82. package/dist/src/source-directory-data.js +2 -2
  83. package/dist/src/symbols/reference.d.ts +2 -1
  84. package/dist/src/symbols/reference.d.ts.map +1 -1
  85. package/dist/src/symbols/reference.js +3 -4
  86. package/dist/src/symbols/scopes.d.ts +1 -4
  87. package/dist/src/symbols/scopes.d.ts.map +1 -1
  88. package/dist/src/symbols/ts-member-scope.d.ts +4 -6
  89. package/dist/src/symbols/ts-member-scope.d.ts.map +1 -1
  90. package/dist/src/symbols/ts-member-scope.js +8 -10
  91. package/dist/src/symbols/ts-module-scope.d.ts +8 -11
  92. package/dist/src/symbols/ts-module-scope.d.ts.map +1 -1
  93. package/dist/src/symbols/ts-module-scope.js +47 -40
  94. package/dist/src/symbols/ts-output-symbol.d.ts +23 -16
  95. package/dist/src/symbols/ts-output-symbol.d.ts.map +1 -1
  96. package/dist/src/symbols/ts-output-symbol.js +88 -27
  97. package/dist/src/symbols/ts-package-scope.d.ts +18 -14
  98. package/dist/src/symbols/ts-package-scope.d.ts.map +1 -1
  99. package/dist/src/symbols/ts-package-scope.js +78 -27
  100. package/dist/src/utils.js +1 -1
  101. package/dist/test/class.test.js +2 -1
  102. package/dist/test/externals.test.js +87 -2
  103. package/dist/test/function-declaration.test.js +74 -3
  104. package/dist/test/member-expression.test.js +108 -2
  105. package/dist/test/new-expression.test.d.ts +2 -0
  106. package/dist/test/new-expression.test.d.ts.map +1 -0
  107. package/dist/test/new-expression.test.js +62 -0
  108. package/dist/test/values.test.d.ts.map +1 -1
  109. package/dist/test/values.test.js +48 -1
  110. package/dist/test/var-declaration.test.d.ts.map +1 -1
  111. package/dist/test/var-declaration.test.js +145 -2
  112. package/dist/tsconfig.tsbuildinfo +1 -1
  113. package/package.json +22 -21
  114. package/src/builtins/node.ts +4 -0
  115. package/src/components/ArrowFunction.tsx +1 -1
  116. package/src/components/CallSignature.tsx +1 -1
  117. package/src/components/ClassDeclaration.tsx +5 -7
  118. package/src/components/Declaration.tsx +3 -8
  119. package/src/components/EnumDeclaration.tsx +3 -4
  120. package/src/components/EnumMember.tsx +3 -4
  121. package/src/components/FunctionBase.tsx +26 -19
  122. package/src/components/FunctionDeclaration.tsx +1 -1
  123. package/src/components/FunctionExpression.tsx +1 -1
  124. package/src/components/FunctionType.tsx +1 -1
  125. package/src/components/IfStatement.tsx +1 -2
  126. package/src/components/ImportStatement.tsx +0 -1
  127. package/src/components/Interface.tsx +1 -1
  128. package/src/components/InterfaceMethod.tsx +1 -1
  129. package/src/components/JSDoc.tsx +1 -2
  130. package/src/components/JSDocComment.tsx +1 -1
  131. package/src/components/JSDocExample.tsx +1 -2
  132. package/src/components/JSDocParam.tsx +1 -2
  133. package/src/components/MemberDeclaration.tsx +5 -8
  134. package/src/components/MemberExpression.tsx +67 -15
  135. package/src/components/NewExpression.tsx +25 -0
  136. package/src/components/ObjectExpression.tsx +21 -19
  137. package/src/components/PackageDirectory.tsx +2 -10
  138. package/src/components/Reference.tsx +4 -2
  139. package/src/components/SingleLineCommentBlock.tsx +1 -2
  140. package/src/components/SourceFile.tsx +3 -6
  141. package/src/components/SwitchStatement.tsx +1 -2
  142. package/src/components/TypeRefContext.tsx +1 -1
  143. package/src/components/VarDeclaration.tsx +34 -11
  144. package/src/components/index.ts +1 -0
  145. package/src/components/stc/index.ts +46 -44
  146. package/src/create-package.ts +276 -37
  147. package/src/index.ts +2 -0
  148. package/src/parameter-descriptor.ts +1 -1
  149. package/src/source-directory-data.ts +2 -2
  150. package/src/symbols/reference.ts +10 -5
  151. package/src/symbols/scopes.ts +1 -6
  152. package/src/symbols/ts-member-scope.ts +8 -23
  153. package/src/symbols/ts-module-scope.ts +58 -62
  154. package/src/symbols/ts-output-symbol.ts +108 -50
  155. package/src/symbols/ts-package-scope.ts +71 -53
  156. package/src/utils.ts +1 -1
  157. package/temp/api.json +3743 -3667
  158. package/test/class.test.tsx +2 -1
  159. package/test/externals.test.tsx +99 -1
  160. package/test/function-declaration.test.tsx +75 -2
  161. package/test/member-expression.test.tsx +93 -2
  162. package/test/new-expression.test.tsx +42 -0
  163. package/test/values.test.tsx +34 -0
  164. package/test/var-declaration.test.tsx +101 -1
  165. package/tsconfig.json +2 -1
  166. package/tsdoc-metadata.json +1 -1
  167. package/LICENSE +0 -7
  168. package/dist/test/vitest.d.js +0 -1
  169. package/test/vitest.d.ts +0 -15
@@ -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
- Wrap,
15
+ takeSymbols,
15
16
  } from "@alloy-js/core";
16
17
  import { useTSNamePolicy } from "../name-policy.js";
17
- import { createTSSymbol } from "../symbols/index.js";
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 assignmentSymbol = getAssignmentSymbol();
31
+ const symbol = new TSOutputSymbol("", {
32
+ flags:
33
+ OutputSymbolFlags.StaticMemberContainer | OutputSymbolFlags.Transient,
34
+ });
31
35
 
32
- if (assignmentSymbol) {
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
- <Wrap
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
- </Wrap>
80
+ </MemberScope>
83
81
  </group>
84
82
  </Match>
85
83
  </Switch>
@@ -97,11 +95,11 @@ export interface ObjectPropertyProps {
97
95
 
98
96
  export function ObjectProperty(props: ObjectPropertyProps) {
99
97
  let name;
98
+ let symbolName = props.name;
100
99
  if (props.name) {
101
100
  const namer = useTSNamePolicy();
102
- name = (
103
- <PropertyName name={namer.getName(props.name, "object-member-data")} />
104
- );
101
+ symbolName = namer.getName(props.name, "object-member-data");
102
+ name = <PropertyName name={symbolName} />;
105
103
  } else if (props.nameExpression) {
106
104
  name = <>[{props.nameExpression}]</>;
107
105
  } else {
@@ -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 = createTSSymbol({
114
- name: props.name,
115
- refkey: props.refkey,
111
+ sym = new TSOutputSymbol(symbolName!, {
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 { createTSPackageScope, TSPackageScope } from "../symbols/index.js";
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 = createTSPackageScope(
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
- return <>{reference}</>;
22
+ emitSymbol(symbolRef);
23
+ return <>{reference()[0]}</>;
22
24
  }
@@ -1,5 +1,4 @@
1
- import { Prose } from "@alloy-js/core";
2
- import { Children } from "@alloy-js/core/jsx-runtime";
1
+ import { Prose, type Children } from "@alloy-js/core";
3
2
 
4
3
  export interface SingleLineCommentBlockProps {
5
4
  children: Children;
@@ -5,15 +5,13 @@ import {
5
5
  Scope,
6
6
  Show,
7
7
  SourceDirectoryContext,
8
- useBinder,
9
8
  useContext,
10
- useScope,
9
+ type Children,
11
10
  } from "@alloy-js/core";
12
11
 
13
- 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 { createTSModuleScope, TSModuleScope } from "../symbols/index.js";
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 = createTSModuleScope(useBinder(), useScope(), path);
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,5 +1,4 @@
1
- import { Block, Indent, Match, Switch } from "@alloy-js/core";
2
- import { Children } from "@alloy-js/core/jsx-runtime";
1
+ import { Block, Indent, Match, Switch, type Children } from "@alloy-js/core";
3
2
  import { BlockScope } from "./BlockScope.jsx";
4
3
  import { ValueExpression } from "./ValueExpression.jsx";
5
4
 
@@ -1,4 +1,4 @@
1
- import type { Children } from "@alloy-js/core/jsx-runtime";
1
+ import type { Children } from "@alloy-js/core";
2
2
  import {
3
3
  isTypeRefContext,
4
4
  TypeRefContext as TypeRefContextDef,
@@ -1,13 +1,14 @@
1
1
  import {
2
- AssignmentContext,
3
2
  Children,
4
3
  Declaration as CoreDeclaration,
5
- createAssignmentContext,
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 { createTSSymbol, TSSymbolFlags } from "../symbols/index.js";
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 ? <TypeRefContext>: {props.type}</TypeRefContext> : undefined;
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 = createTSSymbol({
33
- name: name,
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
- <AssignmentContext.Provider value={assignmentContext}>
77
+ <ValueTypeSymbolSlot>
55
78
  {props.initializer ?? props.children}
56
- </AssignmentContext.Provider>
79
+ </ValueTypeSymbolSlot>
57
80
  </CoreDeclaration>
58
81
  </>
59
82
  );
@@ -27,6 +27,7 @@ export * from "./JSDoc.jsx";
27
27
  export * from "./JSDocComment.jsx";
28
28
  export * from "./JSDocExample.jsx";
29
29
  export * from "./MemberExpression.jsx";
30
+ export * from "./NewExpression.jsx";
30
31
  export * from "./ObjectExpression.js";
31
32
  export * from "./PackageDirectory.js";
32
33
  export * from "./PackageJson.js";
@@ -1,46 +1,48 @@
1
- import { stc } from "@alloy-js/core";
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 ObjectExpression = stc(base.ObjectExpression);
34
- export const ObjectProperty = stc(base.ObjectProperty);
35
- export const PackageDirectory = stc(base.PackageDirectory);
36
- export const PackageJsonFile = stc(base.PackageJsonFile);
37
- export const Reference = stc(base.Reference);
38
- export const SourceFile = stc(base.SourceFile);
39
- export const SwitchStatement = stc(base.SwitchStatement);
40
- export const CaseClause = stc(base.CaseClause);
41
- export const TSConfigJson = stc(base.TSConfigJson);
42
- export const FunctionType = stc(base.FunctionType);
43
- export const TypeDeclaration = stc(base.TypeDeclaration);
44
- export const TypeRefContext = stc(base.TypeRefContext);
45
- export const ValueExpression = stc(base.ValueExpression);
46
- 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);