@workday/canvas-kit-docs 9.0.0-alpha.368-next.6 → 9.0.0-alpha.382-next.2
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/dist/es6/docgen/createTraversals.js +41 -22
- package/dist/es6/docgen/docParser.js +285 -257
- package/dist/es6/docgen/getExternalSymbol.js +2 -2
- package/dist/es6/docgen/plugins/componentParser.js +28 -33
- package/dist/es6/docgen/plugins/enhancedComponentParser.js +211 -150
- package/dist/es6/docgen/plugins/modelParser.js +139 -79
- package/dist/es6/docgen/traversals.js +396 -397
- package/dist/es6/docgen/traverse.js +8 -9
- package/dist/es6/lib/DescriptionTooltip.js +1 -1
- package/dist/es6/lib/MDXElements.js +13 -39
- package/dist/es6/lib/MoreTooltip.js +21 -41
- package/dist/es6/lib/Specifications.js +30 -34
- package/dist/es6/lib/StylePropsTable.js +8 -9
- package/dist/es6/lib/Table.js +19 -30
- package/dist/es6/lib/Value.js +13 -17
- package/dist/es6/lib/docs.js +701 -397
- package/dist/es6/lib/widgetUtils.js +44 -76
- package/dist/es6/lib/widgets/array.js +1 -2
- package/dist/es6/lib/widgets/callExpression.js +4 -5
- package/dist/es6/lib/widgets/canvasColor.js +2 -2
- package/dist/es6/lib/widgets/component.js +1 -2
- package/dist/es6/lib/widgets/conditional.js +1 -2
- package/dist/es6/lib/widgets/enhancedComponent.js +19 -24
- package/dist/es6/lib/widgets/external.js +1 -4
- package/dist/es6/lib/widgets/function.js +5 -7
- package/dist/es6/lib/widgets/intersection.js +3 -4
- package/dist/es6/lib/widgets/model.js +4 -6
- package/dist/es6/lib/widgets/object.js +2 -3
- package/dist/es6/lib/widgets/parenthesis.js +1 -2
- package/dist/es6/lib/widgets/primitives.js +17 -39
- package/dist/es6/lib/widgets/qualifiedName.js +1 -2
- package/dist/es6/lib/widgets/symbol.js +1 -2
- package/dist/es6/lib/widgets/tuple.js +2 -3
- package/dist/es6/lib/widgets/typeParameter.js +1 -2
- package/dist/es6/lib/widgets/union.js +3 -4
- package/dist/es6/mdx/installBlock.js +6 -7
- package/dist/es6/mdx/style-props/examples/Background.js +5 -16
- package/dist/es6/mdx/style-props/examples/Border.js +5 -16
- package/dist/es6/mdx/style-props/examples/Color.js +5 -16
- package/dist/es6/mdx/style-props/examples/Depth.js +5 -16
- package/dist/es6/mdx/style-props/examples/Flex.js +11 -22
- package/dist/es6/mdx/style-props/examples/FlexItem.js +10 -21
- package/dist/es6/mdx/style-props/examples/Grid.js +6 -17
- package/dist/es6/mdx/style-props/examples/GridItem.js +6 -17
- package/dist/es6/mdx/style-props/examples/Layout.js +5 -16
- package/dist/es6/mdx/style-props/examples/Other.js +5 -16
- package/dist/es6/mdx/style-props/examples/Position.js +5 -16
- package/dist/es6/mdx/style-props/examples/Space.js +6 -17
- package/dist/es6/mdx/style-props/examples/Text.js +2 -2
- package/dist/es6/mdx/welcomePage.js +3 -3
- package/dist/mdx/9.0-UPGRADE-GUIDE.mdx +30 -3
- package/dist/mdx/preview-react/text-area/examples/Alert.tsx +1 -1
- package/dist/mdx/preview-react/text-input/examples/Alert.tsx +1 -1
- package/dist/mdx/preview-react/text-input/examples/ThemedAlert.tsx +5 -2
- package/dist/mdx/react/banner/examples/StickyAnimation.tsx +7 -5
- package/dist/mdx/react/common/examples/ResponsiveViewport.tsx +2 -3
- package/package.json +5 -5
|
@@ -1,597 +1,596 @@
|
|
|
1
|
-
var _a;
|
|
2
1
|
// This file is auto-generated from the createTraversals.ts file. Do not modify contents
|
|
3
2
|
import ts from 'typescript';
|
|
4
|
-
export
|
|
5
|
-
isNumericLiteral
|
|
3
|
+
export const guards = {
|
|
4
|
+
isNumericLiteral(node) {
|
|
6
5
|
return node.kind === ts.SyntaxKind.NumericLiteral;
|
|
7
6
|
},
|
|
8
|
-
isBigIntLiteral
|
|
7
|
+
isBigIntLiteral(node) {
|
|
9
8
|
return node.kind === ts.SyntaxKind.BigIntLiteral;
|
|
10
9
|
},
|
|
11
|
-
isStringLiteral
|
|
10
|
+
isStringLiteral(node) {
|
|
12
11
|
return node.kind === ts.SyntaxKind.StringLiteral;
|
|
13
12
|
},
|
|
14
|
-
isJsxText
|
|
13
|
+
isJsxText(node) {
|
|
15
14
|
return node.kind === ts.SyntaxKind.JsxText;
|
|
16
15
|
},
|
|
17
|
-
isRegularExpressionLiteral
|
|
16
|
+
isRegularExpressionLiteral(node) {
|
|
18
17
|
return node.kind === ts.SyntaxKind.RegularExpressionLiteral;
|
|
19
18
|
},
|
|
20
|
-
isNoSubstitutionTemplateLiteral
|
|
19
|
+
isNoSubstitutionTemplateLiteral(node) {
|
|
21
20
|
return node.kind === ts.SyntaxKind.NoSubstitutionTemplateLiteral;
|
|
22
21
|
},
|
|
23
|
-
isTemplateHead
|
|
22
|
+
isTemplateHead(node) {
|
|
24
23
|
return node.kind === ts.SyntaxKind.TemplateHead;
|
|
25
24
|
},
|
|
26
|
-
isTemplateMiddle
|
|
25
|
+
isTemplateMiddle(node) {
|
|
27
26
|
return node.kind === ts.SyntaxKind.TemplateMiddle;
|
|
28
27
|
},
|
|
29
|
-
isTemplateTail
|
|
28
|
+
isTemplateTail(node) {
|
|
30
29
|
return node.kind === ts.SyntaxKind.TemplateTail;
|
|
31
30
|
},
|
|
32
|
-
isIdentifier
|
|
31
|
+
isIdentifier(node) {
|
|
33
32
|
return node.kind === ts.SyntaxKind.Identifier;
|
|
34
33
|
},
|
|
35
|
-
isPrivateIdentifier
|
|
34
|
+
isPrivateIdentifier(node) {
|
|
36
35
|
return node.kind === ts.SyntaxKind.PrivateIdentifier;
|
|
37
36
|
},
|
|
38
|
-
isFalseKeyword
|
|
37
|
+
isFalseKeyword(node) {
|
|
39
38
|
return node.kind === ts.SyntaxKind.FalseKeyword;
|
|
40
39
|
},
|
|
41
|
-
isImportKeyword
|
|
40
|
+
isImportKeyword(node) {
|
|
42
41
|
return node.kind === ts.SyntaxKind.ImportKeyword;
|
|
43
42
|
},
|
|
44
|
-
isNullKeyword
|
|
43
|
+
isNullKeyword(node) {
|
|
45
44
|
return node.kind === ts.SyntaxKind.NullKeyword;
|
|
46
45
|
},
|
|
47
|
-
isSuperKeyword
|
|
46
|
+
isSuperKeyword(node) {
|
|
48
47
|
return node.kind === ts.SyntaxKind.SuperKeyword;
|
|
49
48
|
},
|
|
50
|
-
isThisKeyword
|
|
49
|
+
isThisKeyword(node) {
|
|
51
50
|
return node.kind === ts.SyntaxKind.ThisKeyword;
|
|
52
51
|
},
|
|
53
|
-
isTrueKeyword
|
|
52
|
+
isTrueKeyword(node) {
|
|
54
53
|
return node.kind === ts.SyntaxKind.TrueKeyword;
|
|
55
54
|
},
|
|
56
|
-
isQualifiedName
|
|
55
|
+
isQualifiedName(node) {
|
|
57
56
|
return node.kind === ts.SyntaxKind.QualifiedName;
|
|
58
57
|
},
|
|
59
|
-
isComputedPropertyName
|
|
58
|
+
isComputedPropertyName(node) {
|
|
60
59
|
return node.kind === ts.SyntaxKind.ComputedPropertyName;
|
|
61
60
|
},
|
|
62
|
-
isTypeParameter
|
|
61
|
+
isTypeParameter(node) {
|
|
63
62
|
return node.kind === ts.SyntaxKind.TypeParameter;
|
|
64
63
|
},
|
|
65
|
-
isParameter
|
|
64
|
+
isParameter(node) {
|
|
66
65
|
return node.kind === ts.SyntaxKind.Parameter;
|
|
67
66
|
},
|
|
68
|
-
isDecorator
|
|
67
|
+
isDecorator(node) {
|
|
69
68
|
return node.kind === ts.SyntaxKind.Decorator;
|
|
70
69
|
},
|
|
71
|
-
isPropertySignature
|
|
70
|
+
isPropertySignature(node) {
|
|
72
71
|
return node.kind === ts.SyntaxKind.PropertySignature;
|
|
73
72
|
},
|
|
74
|
-
isPropertyDeclaration
|
|
73
|
+
isPropertyDeclaration(node) {
|
|
75
74
|
return node.kind === ts.SyntaxKind.PropertyDeclaration;
|
|
76
75
|
},
|
|
77
|
-
isMethodSignature
|
|
76
|
+
isMethodSignature(node) {
|
|
78
77
|
return node.kind === ts.SyntaxKind.MethodSignature;
|
|
79
78
|
},
|
|
80
|
-
isMethodDeclaration
|
|
79
|
+
isMethodDeclaration(node) {
|
|
81
80
|
return node.kind === ts.SyntaxKind.MethodDeclaration;
|
|
82
81
|
},
|
|
83
|
-
isConstructor
|
|
82
|
+
isConstructor(node) {
|
|
84
83
|
return node.kind === ts.SyntaxKind.Constructor;
|
|
85
84
|
},
|
|
86
|
-
isGetAccessor
|
|
85
|
+
isGetAccessor(node) {
|
|
87
86
|
return node.kind === ts.SyntaxKind.GetAccessor;
|
|
88
87
|
},
|
|
89
|
-
isSetAccessor
|
|
88
|
+
isSetAccessor(node) {
|
|
90
89
|
return node.kind === ts.SyntaxKind.SetAccessor;
|
|
91
90
|
},
|
|
92
|
-
isCallSignature
|
|
91
|
+
isCallSignature(node) {
|
|
93
92
|
return node.kind === ts.SyntaxKind.CallSignature;
|
|
94
93
|
},
|
|
95
|
-
isConstructSignature
|
|
94
|
+
isConstructSignature(node) {
|
|
96
95
|
return node.kind === ts.SyntaxKind.ConstructSignature;
|
|
97
96
|
},
|
|
98
|
-
isIndexSignature
|
|
97
|
+
isIndexSignature(node) {
|
|
99
98
|
return node.kind === ts.SyntaxKind.IndexSignature;
|
|
100
99
|
},
|
|
101
|
-
isTypePredicate
|
|
100
|
+
isTypePredicate(node) {
|
|
102
101
|
return node.kind === ts.SyntaxKind.TypePredicate;
|
|
103
102
|
},
|
|
104
|
-
isTypeReference
|
|
103
|
+
isTypeReference(node) {
|
|
105
104
|
return node.kind === ts.SyntaxKind.TypeReference;
|
|
106
105
|
},
|
|
107
|
-
isFunctionType
|
|
106
|
+
isFunctionType(node) {
|
|
108
107
|
return node.kind === ts.SyntaxKind.FunctionType;
|
|
109
108
|
},
|
|
110
|
-
isConstructorType
|
|
109
|
+
isConstructorType(node) {
|
|
111
110
|
return node.kind === ts.SyntaxKind.ConstructorType;
|
|
112
111
|
},
|
|
113
|
-
isTypeQuery
|
|
112
|
+
isTypeQuery(node) {
|
|
114
113
|
return node.kind === ts.SyntaxKind.TypeQuery;
|
|
115
114
|
},
|
|
116
|
-
isTypeLiteral
|
|
115
|
+
isTypeLiteral(node) {
|
|
117
116
|
return node.kind === ts.SyntaxKind.TypeLiteral;
|
|
118
117
|
},
|
|
119
|
-
isArrayType
|
|
118
|
+
isArrayType(node) {
|
|
120
119
|
return node.kind === ts.SyntaxKind.ArrayType;
|
|
121
120
|
},
|
|
122
|
-
isTupleType
|
|
121
|
+
isTupleType(node) {
|
|
123
122
|
return node.kind === ts.SyntaxKind.TupleType;
|
|
124
123
|
},
|
|
125
|
-
isOptionalType
|
|
124
|
+
isOptionalType(node) {
|
|
126
125
|
return node.kind === ts.SyntaxKind.OptionalType;
|
|
127
126
|
},
|
|
128
|
-
isRestType
|
|
127
|
+
isRestType(node) {
|
|
129
128
|
return node.kind === ts.SyntaxKind.RestType;
|
|
130
129
|
},
|
|
131
|
-
isUnionType
|
|
130
|
+
isUnionType(node) {
|
|
132
131
|
return node.kind === ts.SyntaxKind.UnionType;
|
|
133
132
|
},
|
|
134
|
-
isIntersectionType
|
|
133
|
+
isIntersectionType(node) {
|
|
135
134
|
return node.kind === ts.SyntaxKind.IntersectionType;
|
|
136
135
|
},
|
|
137
|
-
isConditionalType
|
|
136
|
+
isConditionalType(node) {
|
|
138
137
|
return node.kind === ts.SyntaxKind.ConditionalType;
|
|
139
138
|
},
|
|
140
|
-
isInferType
|
|
139
|
+
isInferType(node) {
|
|
141
140
|
return node.kind === ts.SyntaxKind.InferType;
|
|
142
141
|
},
|
|
143
|
-
isParenthesizedType
|
|
142
|
+
isParenthesizedType(node) {
|
|
144
143
|
return node.kind === ts.SyntaxKind.ParenthesizedType;
|
|
145
144
|
},
|
|
146
|
-
isThisType
|
|
145
|
+
isThisType(node) {
|
|
147
146
|
return node.kind === ts.SyntaxKind.ThisType;
|
|
148
147
|
},
|
|
149
|
-
isTypeOperator
|
|
148
|
+
isTypeOperator(node) {
|
|
150
149
|
return node.kind === ts.SyntaxKind.TypeOperator;
|
|
151
150
|
},
|
|
152
|
-
isIndexedAccessType
|
|
151
|
+
isIndexedAccessType(node) {
|
|
153
152
|
return node.kind === ts.SyntaxKind.IndexedAccessType;
|
|
154
153
|
},
|
|
155
|
-
isMappedType
|
|
154
|
+
isMappedType(node) {
|
|
156
155
|
return node.kind === ts.SyntaxKind.MappedType;
|
|
157
156
|
},
|
|
158
|
-
isLiteralType
|
|
157
|
+
isLiteralType(node) {
|
|
159
158
|
return node.kind === ts.SyntaxKind.LiteralType;
|
|
160
159
|
},
|
|
161
|
-
isNamedTupleMember
|
|
160
|
+
isNamedTupleMember(node) {
|
|
162
161
|
return node.kind === ts.SyntaxKind.NamedTupleMember;
|
|
163
162
|
},
|
|
164
|
-
isTemplateLiteralType
|
|
163
|
+
isTemplateLiteralType(node) {
|
|
165
164
|
return node.kind === ts.SyntaxKind.TemplateLiteralType;
|
|
166
165
|
},
|
|
167
|
-
isTemplateLiteralTypeSpan
|
|
166
|
+
isTemplateLiteralTypeSpan(node) {
|
|
168
167
|
return node.kind === ts.SyntaxKind.TemplateLiteralTypeSpan;
|
|
169
168
|
},
|
|
170
|
-
isImportType
|
|
169
|
+
isImportType(node) {
|
|
171
170
|
return node.kind === ts.SyntaxKind.ImportType;
|
|
172
171
|
},
|
|
173
|
-
isObjectBindingPattern
|
|
172
|
+
isObjectBindingPattern(node) {
|
|
174
173
|
return node.kind === ts.SyntaxKind.ObjectBindingPattern;
|
|
175
174
|
},
|
|
176
|
-
isArrayBindingPattern
|
|
175
|
+
isArrayBindingPattern(node) {
|
|
177
176
|
return node.kind === ts.SyntaxKind.ArrayBindingPattern;
|
|
178
177
|
},
|
|
179
|
-
isBindingElement
|
|
178
|
+
isBindingElement(node) {
|
|
180
179
|
return node.kind === ts.SyntaxKind.BindingElement;
|
|
181
180
|
},
|
|
182
|
-
isArrayLiteralExpression
|
|
181
|
+
isArrayLiteralExpression(node) {
|
|
183
182
|
return node.kind === ts.SyntaxKind.ArrayLiteralExpression;
|
|
184
183
|
},
|
|
185
|
-
isObjectLiteralExpression
|
|
184
|
+
isObjectLiteralExpression(node) {
|
|
186
185
|
return node.kind === ts.SyntaxKind.ObjectLiteralExpression;
|
|
187
186
|
},
|
|
188
|
-
isPropertyAccessExpression
|
|
187
|
+
isPropertyAccessExpression(node) {
|
|
189
188
|
return node.kind === ts.SyntaxKind.PropertyAccessExpression;
|
|
190
189
|
},
|
|
191
|
-
isElementAccessExpression
|
|
190
|
+
isElementAccessExpression(node) {
|
|
192
191
|
return node.kind === ts.SyntaxKind.ElementAccessExpression;
|
|
193
192
|
},
|
|
194
|
-
isCallExpression
|
|
193
|
+
isCallExpression(node) {
|
|
195
194
|
return node.kind === ts.SyntaxKind.CallExpression;
|
|
196
195
|
},
|
|
197
|
-
isNewExpression
|
|
196
|
+
isNewExpression(node) {
|
|
198
197
|
return node.kind === ts.SyntaxKind.NewExpression;
|
|
199
198
|
},
|
|
200
|
-
isTaggedTemplateExpression
|
|
199
|
+
isTaggedTemplateExpression(node) {
|
|
201
200
|
return node.kind === ts.SyntaxKind.TaggedTemplateExpression;
|
|
202
201
|
},
|
|
203
|
-
isTypeAssertionExpression
|
|
202
|
+
isTypeAssertionExpression(node) {
|
|
204
203
|
return node.kind === ts.SyntaxKind.TypeAssertionExpression;
|
|
205
204
|
},
|
|
206
|
-
isParenthesizedExpression
|
|
205
|
+
isParenthesizedExpression(node) {
|
|
207
206
|
return node.kind === ts.SyntaxKind.ParenthesizedExpression;
|
|
208
207
|
},
|
|
209
|
-
isFunctionExpression
|
|
208
|
+
isFunctionExpression(node) {
|
|
210
209
|
return node.kind === ts.SyntaxKind.FunctionExpression;
|
|
211
210
|
},
|
|
212
|
-
isArrowFunction
|
|
211
|
+
isArrowFunction(node) {
|
|
213
212
|
return node.kind === ts.SyntaxKind.ArrowFunction;
|
|
214
213
|
},
|
|
215
|
-
isDeleteExpression
|
|
214
|
+
isDeleteExpression(node) {
|
|
216
215
|
return node.kind === ts.SyntaxKind.DeleteExpression;
|
|
217
216
|
},
|
|
218
|
-
isTypeOfExpression
|
|
217
|
+
isTypeOfExpression(node) {
|
|
219
218
|
return node.kind === ts.SyntaxKind.TypeOfExpression;
|
|
220
219
|
},
|
|
221
|
-
isVoidExpression
|
|
220
|
+
isVoidExpression(node) {
|
|
222
221
|
return node.kind === ts.SyntaxKind.VoidExpression;
|
|
223
222
|
},
|
|
224
|
-
isAwaitExpression
|
|
223
|
+
isAwaitExpression(node) {
|
|
225
224
|
return node.kind === ts.SyntaxKind.AwaitExpression;
|
|
226
225
|
},
|
|
227
|
-
isPrefixUnaryExpression
|
|
226
|
+
isPrefixUnaryExpression(node) {
|
|
228
227
|
return node.kind === ts.SyntaxKind.PrefixUnaryExpression;
|
|
229
228
|
},
|
|
230
|
-
isPostfixUnaryExpression
|
|
229
|
+
isPostfixUnaryExpression(node) {
|
|
231
230
|
return node.kind === ts.SyntaxKind.PostfixUnaryExpression;
|
|
232
231
|
},
|
|
233
|
-
isBinaryExpression
|
|
232
|
+
isBinaryExpression(node) {
|
|
234
233
|
return node.kind === ts.SyntaxKind.BinaryExpression;
|
|
235
234
|
},
|
|
236
|
-
isConditionalExpression
|
|
235
|
+
isConditionalExpression(node) {
|
|
237
236
|
return node.kind === ts.SyntaxKind.ConditionalExpression;
|
|
238
237
|
},
|
|
239
|
-
isTemplateExpression
|
|
238
|
+
isTemplateExpression(node) {
|
|
240
239
|
return node.kind === ts.SyntaxKind.TemplateExpression;
|
|
241
240
|
},
|
|
242
|
-
isYieldExpression
|
|
241
|
+
isYieldExpression(node) {
|
|
243
242
|
return node.kind === ts.SyntaxKind.YieldExpression;
|
|
244
243
|
},
|
|
245
|
-
isSpreadElement
|
|
244
|
+
isSpreadElement(node) {
|
|
246
245
|
return node.kind === ts.SyntaxKind.SpreadElement;
|
|
247
246
|
},
|
|
248
|
-
isClassExpression
|
|
247
|
+
isClassExpression(node) {
|
|
249
248
|
return node.kind === ts.SyntaxKind.ClassExpression;
|
|
250
249
|
},
|
|
251
|
-
isOmittedExpression
|
|
250
|
+
isOmittedExpression(node) {
|
|
252
251
|
return node.kind === ts.SyntaxKind.OmittedExpression;
|
|
253
252
|
},
|
|
254
|
-
isExpressionWithTypeArguments
|
|
253
|
+
isExpressionWithTypeArguments(node) {
|
|
255
254
|
return node.kind === ts.SyntaxKind.ExpressionWithTypeArguments;
|
|
256
255
|
},
|
|
257
|
-
isAsExpression
|
|
256
|
+
isAsExpression(node) {
|
|
258
257
|
return node.kind === ts.SyntaxKind.AsExpression;
|
|
259
258
|
},
|
|
260
|
-
isNonNullExpression
|
|
259
|
+
isNonNullExpression(node) {
|
|
261
260
|
return node.kind === ts.SyntaxKind.NonNullExpression;
|
|
262
261
|
},
|
|
263
|
-
isMetaProperty
|
|
262
|
+
isMetaProperty(node) {
|
|
264
263
|
return node.kind === ts.SyntaxKind.MetaProperty;
|
|
265
264
|
},
|
|
266
|
-
isSyntheticExpression
|
|
265
|
+
isSyntheticExpression(node) {
|
|
267
266
|
return node.kind === ts.SyntaxKind.SyntheticExpression;
|
|
268
267
|
},
|
|
269
|
-
isTemplateSpan
|
|
268
|
+
isTemplateSpan(node) {
|
|
270
269
|
return node.kind === ts.SyntaxKind.TemplateSpan;
|
|
271
270
|
},
|
|
272
|
-
isSemicolonClassElement
|
|
271
|
+
isSemicolonClassElement(node) {
|
|
273
272
|
return node.kind === ts.SyntaxKind.SemicolonClassElement;
|
|
274
273
|
},
|
|
275
|
-
isBlock
|
|
274
|
+
isBlock(node) {
|
|
276
275
|
return node.kind === ts.SyntaxKind.Block;
|
|
277
276
|
},
|
|
278
|
-
isEmptyStatement
|
|
277
|
+
isEmptyStatement(node) {
|
|
279
278
|
return node.kind === ts.SyntaxKind.EmptyStatement;
|
|
280
279
|
},
|
|
281
|
-
isVariableStatement
|
|
280
|
+
isVariableStatement(node) {
|
|
282
281
|
return node.kind === ts.SyntaxKind.VariableStatement;
|
|
283
282
|
},
|
|
284
|
-
isExpressionStatement
|
|
283
|
+
isExpressionStatement(node) {
|
|
285
284
|
return node.kind === ts.SyntaxKind.ExpressionStatement;
|
|
286
285
|
},
|
|
287
|
-
isIfStatement
|
|
286
|
+
isIfStatement(node) {
|
|
288
287
|
return node.kind === ts.SyntaxKind.IfStatement;
|
|
289
288
|
},
|
|
290
|
-
isDoStatement
|
|
289
|
+
isDoStatement(node) {
|
|
291
290
|
return node.kind === ts.SyntaxKind.DoStatement;
|
|
292
291
|
},
|
|
293
|
-
isWhileStatement
|
|
292
|
+
isWhileStatement(node) {
|
|
294
293
|
return node.kind === ts.SyntaxKind.WhileStatement;
|
|
295
294
|
},
|
|
296
|
-
isForStatement
|
|
295
|
+
isForStatement(node) {
|
|
297
296
|
return node.kind === ts.SyntaxKind.ForStatement;
|
|
298
297
|
},
|
|
299
|
-
isForInStatement
|
|
298
|
+
isForInStatement(node) {
|
|
300
299
|
return node.kind === ts.SyntaxKind.ForInStatement;
|
|
301
300
|
},
|
|
302
|
-
isForOfStatement
|
|
301
|
+
isForOfStatement(node) {
|
|
303
302
|
return node.kind === ts.SyntaxKind.ForOfStatement;
|
|
304
303
|
},
|
|
305
|
-
isContinueStatement
|
|
304
|
+
isContinueStatement(node) {
|
|
306
305
|
return node.kind === ts.SyntaxKind.ContinueStatement;
|
|
307
306
|
},
|
|
308
|
-
isBreakStatement
|
|
307
|
+
isBreakStatement(node) {
|
|
309
308
|
return node.kind === ts.SyntaxKind.BreakStatement;
|
|
310
309
|
},
|
|
311
|
-
isReturnStatement
|
|
310
|
+
isReturnStatement(node) {
|
|
312
311
|
return node.kind === ts.SyntaxKind.ReturnStatement;
|
|
313
312
|
},
|
|
314
|
-
isWithStatement
|
|
313
|
+
isWithStatement(node) {
|
|
315
314
|
return node.kind === ts.SyntaxKind.WithStatement;
|
|
316
315
|
},
|
|
317
|
-
isSwitchStatement
|
|
316
|
+
isSwitchStatement(node) {
|
|
318
317
|
return node.kind === ts.SyntaxKind.SwitchStatement;
|
|
319
318
|
},
|
|
320
|
-
isLabeledStatement
|
|
319
|
+
isLabeledStatement(node) {
|
|
321
320
|
return node.kind === ts.SyntaxKind.LabeledStatement;
|
|
322
321
|
},
|
|
323
|
-
isThrowStatement
|
|
322
|
+
isThrowStatement(node) {
|
|
324
323
|
return node.kind === ts.SyntaxKind.ThrowStatement;
|
|
325
324
|
},
|
|
326
|
-
isTryStatement
|
|
325
|
+
isTryStatement(node) {
|
|
327
326
|
return node.kind === ts.SyntaxKind.TryStatement;
|
|
328
327
|
},
|
|
329
|
-
isDebuggerStatement
|
|
328
|
+
isDebuggerStatement(node) {
|
|
330
329
|
return node.kind === ts.SyntaxKind.DebuggerStatement;
|
|
331
330
|
},
|
|
332
|
-
isVariableDeclaration
|
|
331
|
+
isVariableDeclaration(node) {
|
|
333
332
|
return node.kind === ts.SyntaxKind.VariableDeclaration;
|
|
334
333
|
},
|
|
335
|
-
isVariableDeclarationList
|
|
334
|
+
isVariableDeclarationList(node) {
|
|
336
335
|
return node.kind === ts.SyntaxKind.VariableDeclarationList;
|
|
337
336
|
},
|
|
338
|
-
isFunctionDeclaration
|
|
337
|
+
isFunctionDeclaration(node) {
|
|
339
338
|
return node.kind === ts.SyntaxKind.FunctionDeclaration;
|
|
340
339
|
},
|
|
341
|
-
isClassDeclaration
|
|
340
|
+
isClassDeclaration(node) {
|
|
342
341
|
return node.kind === ts.SyntaxKind.ClassDeclaration;
|
|
343
342
|
},
|
|
344
|
-
isInterfaceDeclaration
|
|
343
|
+
isInterfaceDeclaration(node) {
|
|
345
344
|
return node.kind === ts.SyntaxKind.InterfaceDeclaration;
|
|
346
345
|
},
|
|
347
|
-
isTypeAliasDeclaration
|
|
346
|
+
isTypeAliasDeclaration(node) {
|
|
348
347
|
return node.kind === ts.SyntaxKind.TypeAliasDeclaration;
|
|
349
348
|
},
|
|
350
|
-
isEnumDeclaration
|
|
349
|
+
isEnumDeclaration(node) {
|
|
351
350
|
return node.kind === ts.SyntaxKind.EnumDeclaration;
|
|
352
351
|
},
|
|
353
|
-
isModuleDeclaration
|
|
352
|
+
isModuleDeclaration(node) {
|
|
354
353
|
return node.kind === ts.SyntaxKind.ModuleDeclaration;
|
|
355
354
|
},
|
|
356
|
-
isModuleBlock
|
|
355
|
+
isModuleBlock(node) {
|
|
357
356
|
return node.kind === ts.SyntaxKind.ModuleBlock;
|
|
358
357
|
},
|
|
359
|
-
isCaseBlock
|
|
358
|
+
isCaseBlock(node) {
|
|
360
359
|
return node.kind === ts.SyntaxKind.CaseBlock;
|
|
361
360
|
},
|
|
362
|
-
isNamespaceExportDeclaration
|
|
361
|
+
isNamespaceExportDeclaration(node) {
|
|
363
362
|
return node.kind === ts.SyntaxKind.NamespaceExportDeclaration;
|
|
364
363
|
},
|
|
365
|
-
isImportEqualsDeclaration
|
|
364
|
+
isImportEqualsDeclaration(node) {
|
|
366
365
|
return node.kind === ts.SyntaxKind.ImportEqualsDeclaration;
|
|
367
366
|
},
|
|
368
|
-
isImportDeclaration
|
|
367
|
+
isImportDeclaration(node) {
|
|
369
368
|
return node.kind === ts.SyntaxKind.ImportDeclaration;
|
|
370
369
|
},
|
|
371
|
-
isImportClause
|
|
370
|
+
isImportClause(node) {
|
|
372
371
|
return node.kind === ts.SyntaxKind.ImportClause;
|
|
373
372
|
},
|
|
374
|
-
isNamespaceImport
|
|
373
|
+
isNamespaceImport(node) {
|
|
375
374
|
return node.kind === ts.SyntaxKind.NamespaceImport;
|
|
376
375
|
},
|
|
377
|
-
isNamedImports
|
|
376
|
+
isNamedImports(node) {
|
|
378
377
|
return node.kind === ts.SyntaxKind.NamedImports;
|
|
379
378
|
},
|
|
380
|
-
isImportSpecifier
|
|
379
|
+
isImportSpecifier(node) {
|
|
381
380
|
return node.kind === ts.SyntaxKind.ImportSpecifier;
|
|
382
381
|
},
|
|
383
|
-
isExportAssignment
|
|
382
|
+
isExportAssignment(node) {
|
|
384
383
|
return node.kind === ts.SyntaxKind.ExportAssignment;
|
|
385
384
|
},
|
|
386
|
-
isExportDeclaration
|
|
385
|
+
isExportDeclaration(node) {
|
|
387
386
|
return node.kind === ts.SyntaxKind.ExportDeclaration;
|
|
388
387
|
},
|
|
389
|
-
isNamedExports
|
|
388
|
+
isNamedExports(node) {
|
|
390
389
|
return node.kind === ts.SyntaxKind.NamedExports;
|
|
391
390
|
},
|
|
392
|
-
isNamespaceExport
|
|
391
|
+
isNamespaceExport(node) {
|
|
393
392
|
return node.kind === ts.SyntaxKind.NamespaceExport;
|
|
394
393
|
},
|
|
395
|
-
isExportSpecifier
|
|
394
|
+
isExportSpecifier(node) {
|
|
396
395
|
return node.kind === ts.SyntaxKind.ExportSpecifier;
|
|
397
396
|
},
|
|
398
|
-
isMissingDeclaration
|
|
397
|
+
isMissingDeclaration(node) {
|
|
399
398
|
return node.kind === ts.SyntaxKind.MissingDeclaration;
|
|
400
399
|
},
|
|
401
|
-
isExternalModuleReference
|
|
400
|
+
isExternalModuleReference(node) {
|
|
402
401
|
return node.kind === ts.SyntaxKind.ExternalModuleReference;
|
|
403
402
|
},
|
|
404
|
-
isJsxElement
|
|
403
|
+
isJsxElement(node) {
|
|
405
404
|
return node.kind === ts.SyntaxKind.JsxElement;
|
|
406
405
|
},
|
|
407
|
-
isJsxSelfClosingElement
|
|
406
|
+
isJsxSelfClosingElement(node) {
|
|
408
407
|
return node.kind === ts.SyntaxKind.JsxSelfClosingElement;
|
|
409
408
|
},
|
|
410
|
-
isJsxOpeningElement
|
|
409
|
+
isJsxOpeningElement(node) {
|
|
411
410
|
return node.kind === ts.SyntaxKind.JsxOpeningElement;
|
|
412
411
|
},
|
|
413
|
-
isJsxClosingElement
|
|
412
|
+
isJsxClosingElement(node) {
|
|
414
413
|
return node.kind === ts.SyntaxKind.JsxClosingElement;
|
|
415
414
|
},
|
|
416
|
-
isJsxFragment
|
|
415
|
+
isJsxFragment(node) {
|
|
417
416
|
return node.kind === ts.SyntaxKind.JsxFragment;
|
|
418
417
|
},
|
|
419
|
-
isJsxOpeningFragment
|
|
418
|
+
isJsxOpeningFragment(node) {
|
|
420
419
|
return node.kind === ts.SyntaxKind.JsxOpeningFragment;
|
|
421
420
|
},
|
|
422
|
-
isJsxClosingFragment
|
|
421
|
+
isJsxClosingFragment(node) {
|
|
423
422
|
return node.kind === ts.SyntaxKind.JsxClosingFragment;
|
|
424
423
|
},
|
|
425
|
-
isJsxAttribute
|
|
424
|
+
isJsxAttribute(node) {
|
|
426
425
|
return node.kind === ts.SyntaxKind.JsxAttribute;
|
|
427
426
|
},
|
|
428
|
-
isJsxAttributes
|
|
427
|
+
isJsxAttributes(node) {
|
|
429
428
|
return node.kind === ts.SyntaxKind.JsxAttributes;
|
|
430
429
|
},
|
|
431
|
-
isJsxSpreadAttribute
|
|
430
|
+
isJsxSpreadAttribute(node) {
|
|
432
431
|
return node.kind === ts.SyntaxKind.JsxSpreadAttribute;
|
|
433
432
|
},
|
|
434
|
-
isJsxExpression
|
|
433
|
+
isJsxExpression(node) {
|
|
435
434
|
return node.kind === ts.SyntaxKind.JsxExpression;
|
|
436
435
|
},
|
|
437
|
-
isCaseClause
|
|
436
|
+
isCaseClause(node) {
|
|
438
437
|
return node.kind === ts.SyntaxKind.CaseClause;
|
|
439
438
|
},
|
|
440
|
-
isDefaultClause
|
|
439
|
+
isDefaultClause(node) {
|
|
441
440
|
return node.kind === ts.SyntaxKind.DefaultClause;
|
|
442
441
|
},
|
|
443
|
-
isHeritageClause
|
|
442
|
+
isHeritageClause(node) {
|
|
444
443
|
return node.kind === ts.SyntaxKind.HeritageClause;
|
|
445
444
|
},
|
|
446
|
-
isCatchClause
|
|
445
|
+
isCatchClause(node) {
|
|
447
446
|
return node.kind === ts.SyntaxKind.CatchClause;
|
|
448
447
|
},
|
|
449
|
-
isPropertyAssignment
|
|
448
|
+
isPropertyAssignment(node) {
|
|
450
449
|
return node.kind === ts.SyntaxKind.PropertyAssignment;
|
|
451
450
|
},
|
|
452
|
-
isShorthandPropertyAssignment
|
|
451
|
+
isShorthandPropertyAssignment(node) {
|
|
453
452
|
return node.kind === ts.SyntaxKind.ShorthandPropertyAssignment;
|
|
454
453
|
},
|
|
455
|
-
isSpreadAssignment
|
|
454
|
+
isSpreadAssignment(node) {
|
|
456
455
|
return node.kind === ts.SyntaxKind.SpreadAssignment;
|
|
457
456
|
},
|
|
458
|
-
isEnumMember
|
|
457
|
+
isEnumMember(node) {
|
|
459
458
|
return node.kind === ts.SyntaxKind.EnumMember;
|
|
460
459
|
},
|
|
461
|
-
isUnparsedPrologue
|
|
460
|
+
isUnparsedPrologue(node) {
|
|
462
461
|
return node.kind === ts.SyntaxKind.UnparsedPrologue;
|
|
463
462
|
},
|
|
464
|
-
isUnparsedPrepend
|
|
463
|
+
isUnparsedPrepend(node) {
|
|
465
464
|
return node.kind === ts.SyntaxKind.UnparsedPrepend;
|
|
466
465
|
},
|
|
467
|
-
isUnparsedSyntheticReference
|
|
466
|
+
isUnparsedSyntheticReference(node) {
|
|
468
467
|
return node.kind === ts.SyntaxKind.UnparsedSyntheticReference;
|
|
469
468
|
},
|
|
470
|
-
isSourceFile
|
|
469
|
+
isSourceFile(node) {
|
|
471
470
|
return node.kind === ts.SyntaxKind.SourceFile;
|
|
472
471
|
},
|
|
473
|
-
isBundle
|
|
472
|
+
isBundle(node) {
|
|
474
473
|
return node.kind === ts.SyntaxKind.Bundle;
|
|
475
474
|
},
|
|
476
|
-
isUnparsedSource
|
|
475
|
+
isUnparsedSource(node) {
|
|
477
476
|
return node.kind === ts.SyntaxKind.UnparsedSource;
|
|
478
477
|
},
|
|
479
|
-
isInputFiles
|
|
478
|
+
isInputFiles(node) {
|
|
480
479
|
return node.kind === ts.SyntaxKind.InputFiles;
|
|
481
480
|
},
|
|
482
|
-
isJSDocTypeExpression
|
|
481
|
+
isJSDocTypeExpression(node) {
|
|
483
482
|
return node.kind === ts.SyntaxKind.JSDocTypeExpression;
|
|
484
483
|
},
|
|
485
|
-
isJSDocNameReference
|
|
484
|
+
isJSDocNameReference(node) {
|
|
486
485
|
return node.kind === ts.SyntaxKind.JSDocNameReference;
|
|
487
486
|
},
|
|
488
|
-
isJSDocAllType
|
|
487
|
+
isJSDocAllType(node) {
|
|
489
488
|
return node.kind === ts.SyntaxKind.JSDocAllType;
|
|
490
489
|
},
|
|
491
|
-
isJSDocUnknownType
|
|
490
|
+
isJSDocUnknownType(node) {
|
|
492
491
|
return node.kind === ts.SyntaxKind.JSDocUnknownType;
|
|
493
492
|
},
|
|
494
|
-
isJSDocNullableType
|
|
493
|
+
isJSDocNullableType(node) {
|
|
495
494
|
return node.kind === ts.SyntaxKind.JSDocNullableType;
|
|
496
495
|
},
|
|
497
|
-
isJSDocNonNullableType
|
|
496
|
+
isJSDocNonNullableType(node) {
|
|
498
497
|
return node.kind === ts.SyntaxKind.JSDocNonNullableType;
|
|
499
498
|
},
|
|
500
|
-
isJSDocOptionalType
|
|
499
|
+
isJSDocOptionalType(node) {
|
|
501
500
|
return node.kind === ts.SyntaxKind.JSDocOptionalType;
|
|
502
501
|
},
|
|
503
|
-
isJSDocFunctionType
|
|
502
|
+
isJSDocFunctionType(node) {
|
|
504
503
|
return node.kind === ts.SyntaxKind.JSDocFunctionType;
|
|
505
504
|
},
|
|
506
|
-
isJSDocVariadicType
|
|
505
|
+
isJSDocVariadicType(node) {
|
|
507
506
|
return node.kind === ts.SyntaxKind.JSDocVariadicType;
|
|
508
507
|
},
|
|
509
|
-
isJSDocNamepathType
|
|
508
|
+
isJSDocNamepathType(node) {
|
|
510
509
|
return node.kind === ts.SyntaxKind.JSDocNamepathType;
|
|
511
510
|
},
|
|
512
|
-
isJSDocComment
|
|
511
|
+
isJSDocComment(node) {
|
|
513
512
|
return node.kind === ts.SyntaxKind.JSDocComment;
|
|
514
513
|
},
|
|
515
|
-
isJSDocTypeLiteral
|
|
514
|
+
isJSDocTypeLiteral(node) {
|
|
516
515
|
return node.kind === ts.SyntaxKind.JSDocTypeLiteral;
|
|
517
516
|
},
|
|
518
|
-
isJSDocSignature
|
|
517
|
+
isJSDocSignature(node) {
|
|
519
518
|
return node.kind === ts.SyntaxKind.JSDocSignature;
|
|
520
519
|
},
|
|
521
|
-
isJSDocTag
|
|
520
|
+
isJSDocTag(node) {
|
|
522
521
|
return node.kind === ts.SyntaxKind.JSDocTag;
|
|
523
522
|
},
|
|
524
|
-
isJSDocAugmentsTag
|
|
523
|
+
isJSDocAugmentsTag(node) {
|
|
525
524
|
return node.kind === ts.SyntaxKind.JSDocAugmentsTag;
|
|
526
525
|
},
|
|
527
|
-
isJSDocImplementsTag
|
|
526
|
+
isJSDocImplementsTag(node) {
|
|
528
527
|
return node.kind === ts.SyntaxKind.JSDocImplementsTag;
|
|
529
528
|
},
|
|
530
|
-
isJSDocAuthorTag
|
|
529
|
+
isJSDocAuthorTag(node) {
|
|
531
530
|
return node.kind === ts.SyntaxKind.JSDocAuthorTag;
|
|
532
531
|
},
|
|
533
|
-
isJSDocDeprecatedTag
|
|
532
|
+
isJSDocDeprecatedTag(node) {
|
|
534
533
|
return node.kind === ts.SyntaxKind.JSDocDeprecatedTag;
|
|
535
534
|
},
|
|
536
|
-
isJSDocClassTag
|
|
535
|
+
isJSDocClassTag(node) {
|
|
537
536
|
return node.kind === ts.SyntaxKind.JSDocClassTag;
|
|
538
537
|
},
|
|
539
|
-
isJSDocPublicTag
|
|
538
|
+
isJSDocPublicTag(node) {
|
|
540
539
|
return node.kind === ts.SyntaxKind.JSDocPublicTag;
|
|
541
540
|
},
|
|
542
|
-
isJSDocPrivateTag
|
|
541
|
+
isJSDocPrivateTag(node) {
|
|
543
542
|
return node.kind === ts.SyntaxKind.JSDocPrivateTag;
|
|
544
543
|
},
|
|
545
|
-
isJSDocProtectedTag
|
|
544
|
+
isJSDocProtectedTag(node) {
|
|
546
545
|
return node.kind === ts.SyntaxKind.JSDocProtectedTag;
|
|
547
546
|
},
|
|
548
|
-
isJSDocReadonlyTag
|
|
547
|
+
isJSDocReadonlyTag(node) {
|
|
549
548
|
return node.kind === ts.SyntaxKind.JSDocReadonlyTag;
|
|
550
549
|
},
|
|
551
|
-
isJSDocCallbackTag
|
|
550
|
+
isJSDocCallbackTag(node) {
|
|
552
551
|
return node.kind === ts.SyntaxKind.JSDocCallbackTag;
|
|
553
552
|
},
|
|
554
|
-
isJSDocEnumTag
|
|
553
|
+
isJSDocEnumTag(node) {
|
|
555
554
|
return node.kind === ts.SyntaxKind.JSDocEnumTag;
|
|
556
555
|
},
|
|
557
|
-
isJSDocParameterTag
|
|
556
|
+
isJSDocParameterTag(node) {
|
|
558
557
|
return node.kind === ts.SyntaxKind.JSDocParameterTag;
|
|
559
558
|
},
|
|
560
|
-
isJSDocReturnTag
|
|
559
|
+
isJSDocReturnTag(node) {
|
|
561
560
|
return node.kind === ts.SyntaxKind.JSDocReturnTag;
|
|
562
561
|
},
|
|
563
|
-
isJSDocThisTag
|
|
562
|
+
isJSDocThisTag(node) {
|
|
564
563
|
return node.kind === ts.SyntaxKind.JSDocThisTag;
|
|
565
564
|
},
|
|
566
|
-
isJSDocTypeTag
|
|
565
|
+
isJSDocTypeTag(node) {
|
|
567
566
|
return node.kind === ts.SyntaxKind.JSDocTypeTag;
|
|
568
567
|
},
|
|
569
|
-
isJSDocTemplateTag
|
|
568
|
+
isJSDocTemplateTag(node) {
|
|
570
569
|
return node.kind === ts.SyntaxKind.JSDocTemplateTag;
|
|
571
570
|
},
|
|
572
|
-
isJSDocTypedefTag
|
|
571
|
+
isJSDocTypedefTag(node) {
|
|
573
572
|
return node.kind === ts.SyntaxKind.JSDocTypedefTag;
|
|
574
573
|
},
|
|
575
|
-
isJSDocSeeTag
|
|
574
|
+
isJSDocSeeTag(node) {
|
|
576
575
|
return node.kind === ts.SyntaxKind.JSDocSeeTag;
|
|
577
576
|
},
|
|
578
|
-
isJSDocPropertyTag
|
|
577
|
+
isJSDocPropertyTag(node) {
|
|
579
578
|
return node.kind === ts.SyntaxKind.JSDocPropertyTag;
|
|
580
579
|
},
|
|
581
|
-
isSyntaxList
|
|
580
|
+
isSyntaxList(node) {
|
|
582
581
|
return node.kind === ts.SyntaxKind.SyntaxList;
|
|
583
582
|
},
|
|
584
|
-
isNotEmittedStatement
|
|
583
|
+
isNotEmittedStatement(node) {
|
|
585
584
|
return node.kind === ts.SyntaxKind.NotEmittedStatement;
|
|
586
585
|
},
|
|
587
|
-
isPartiallyEmittedExpression
|
|
586
|
+
isPartiallyEmittedExpression(node) {
|
|
588
587
|
return node.kind === ts.SyntaxKind.PartiallyEmittedExpression;
|
|
589
588
|
},
|
|
590
|
-
isCommaListExpression
|
|
589
|
+
isCommaListExpression(node) {
|
|
591
590
|
return node.kind === ts.SyntaxKind.CommaListExpression;
|
|
592
591
|
},
|
|
593
592
|
};
|
|
594
|
-
export
|
|
593
|
+
export const kindsMap = {
|
|
595
594
|
NumericLiteral: {},
|
|
596
595
|
BigIntLiteral: {},
|
|
597
596
|
StringLiteral: {},
|
|
@@ -789,204 +788,204 @@ export var kindsMap = {
|
|
|
789
788
|
PartiallyEmittedExpression: {},
|
|
790
789
|
CommaListExpression: {},
|
|
791
790
|
};
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
791
|
+
const kindToString = {
|
|
792
|
+
[ts.SyntaxKind.NumericLiteral]: 'NumericLiteral',
|
|
793
|
+
[ts.SyntaxKind.BigIntLiteral]: 'BigIntLiteral',
|
|
794
|
+
[ts.SyntaxKind.StringLiteral]: 'StringLiteral',
|
|
795
|
+
[ts.SyntaxKind.JsxText]: 'JsxText',
|
|
796
|
+
[ts.SyntaxKind.RegularExpressionLiteral]: 'RegularExpressionLiteral',
|
|
797
|
+
[ts.SyntaxKind.NoSubstitutionTemplateLiteral]: 'NoSubstitutionTemplateLiteral',
|
|
798
|
+
[ts.SyntaxKind.TemplateHead]: 'TemplateHead',
|
|
799
|
+
[ts.SyntaxKind.TemplateMiddle]: 'TemplateMiddle',
|
|
800
|
+
[ts.SyntaxKind.TemplateTail]: 'TemplateTail',
|
|
801
|
+
[ts.SyntaxKind.Identifier]: 'Identifier',
|
|
802
|
+
[ts.SyntaxKind.PrivateIdentifier]: 'PrivateIdentifier',
|
|
803
|
+
[ts.SyntaxKind.FalseKeyword]: 'FalseKeyword',
|
|
804
|
+
[ts.SyntaxKind.ImportKeyword]: 'ImportKeyword',
|
|
805
|
+
[ts.SyntaxKind.NullKeyword]: 'NullKeyword',
|
|
806
|
+
[ts.SyntaxKind.SuperKeyword]: 'SuperKeyword',
|
|
807
|
+
[ts.SyntaxKind.ThisKeyword]: 'ThisKeyword',
|
|
808
|
+
[ts.SyntaxKind.TrueKeyword]: 'TrueKeyword',
|
|
809
|
+
[ts.SyntaxKind.QualifiedName]: 'QualifiedName',
|
|
810
|
+
[ts.SyntaxKind.ComputedPropertyName]: 'ComputedPropertyName',
|
|
811
|
+
[ts.SyntaxKind.TypeParameter]: 'TypeParameter',
|
|
812
|
+
[ts.SyntaxKind.Parameter]: 'Parameter',
|
|
813
|
+
[ts.SyntaxKind.Decorator]: 'Decorator',
|
|
814
|
+
[ts.SyntaxKind.PropertySignature]: 'PropertySignature',
|
|
815
|
+
[ts.SyntaxKind.PropertyDeclaration]: 'PropertyDeclaration',
|
|
816
|
+
[ts.SyntaxKind.MethodSignature]: 'MethodSignature',
|
|
817
|
+
[ts.SyntaxKind.MethodDeclaration]: 'MethodDeclaration',
|
|
818
|
+
[ts.SyntaxKind.Constructor]: 'Constructor',
|
|
819
|
+
[ts.SyntaxKind.GetAccessor]: 'GetAccessor',
|
|
820
|
+
[ts.SyntaxKind.SetAccessor]: 'SetAccessor',
|
|
821
|
+
[ts.SyntaxKind.CallSignature]: 'CallSignature',
|
|
822
|
+
[ts.SyntaxKind.ConstructSignature]: 'ConstructSignature',
|
|
823
|
+
[ts.SyntaxKind.IndexSignature]: 'IndexSignature',
|
|
824
|
+
[ts.SyntaxKind.TypePredicate]: 'TypePredicate',
|
|
825
|
+
[ts.SyntaxKind.TypeReference]: 'TypeReference',
|
|
826
|
+
[ts.SyntaxKind.FunctionType]: 'FunctionType',
|
|
827
|
+
[ts.SyntaxKind.ConstructorType]: 'ConstructorType',
|
|
828
|
+
[ts.SyntaxKind.TypeQuery]: 'TypeQuery',
|
|
829
|
+
[ts.SyntaxKind.TypeLiteral]: 'TypeLiteral',
|
|
830
|
+
[ts.SyntaxKind.ArrayType]: 'ArrayType',
|
|
831
|
+
[ts.SyntaxKind.TupleType]: 'TupleType',
|
|
832
|
+
[ts.SyntaxKind.OptionalType]: 'OptionalType',
|
|
833
|
+
[ts.SyntaxKind.RestType]: 'RestType',
|
|
834
|
+
[ts.SyntaxKind.UnionType]: 'UnionType',
|
|
835
|
+
[ts.SyntaxKind.IntersectionType]: 'IntersectionType',
|
|
836
|
+
[ts.SyntaxKind.ConditionalType]: 'ConditionalType',
|
|
837
|
+
[ts.SyntaxKind.InferType]: 'InferType',
|
|
838
|
+
[ts.SyntaxKind.ParenthesizedType]: 'ParenthesizedType',
|
|
839
|
+
[ts.SyntaxKind.ThisType]: 'ThisType',
|
|
840
|
+
[ts.SyntaxKind.TypeOperator]: 'TypeOperator',
|
|
841
|
+
[ts.SyntaxKind.IndexedAccessType]: 'IndexedAccessType',
|
|
842
|
+
[ts.SyntaxKind.MappedType]: 'MappedType',
|
|
843
|
+
[ts.SyntaxKind.LiteralType]: 'LiteralType',
|
|
844
|
+
[ts.SyntaxKind.NamedTupleMember]: 'NamedTupleMember',
|
|
845
|
+
[ts.SyntaxKind.TemplateLiteralType]: 'TemplateLiteralType',
|
|
846
|
+
[ts.SyntaxKind.TemplateLiteralTypeSpan]: 'TemplateLiteralTypeSpan',
|
|
847
|
+
[ts.SyntaxKind.ImportType]: 'ImportType',
|
|
848
|
+
[ts.SyntaxKind.ObjectBindingPattern]: 'ObjectBindingPattern',
|
|
849
|
+
[ts.SyntaxKind.ArrayBindingPattern]: 'ArrayBindingPattern',
|
|
850
|
+
[ts.SyntaxKind.BindingElement]: 'BindingElement',
|
|
851
|
+
[ts.SyntaxKind.ArrayLiteralExpression]: 'ArrayLiteralExpression',
|
|
852
|
+
[ts.SyntaxKind.ObjectLiteralExpression]: 'ObjectLiteralExpression',
|
|
853
|
+
[ts.SyntaxKind.PropertyAccessExpression]: 'PropertyAccessExpression',
|
|
854
|
+
[ts.SyntaxKind.ElementAccessExpression]: 'ElementAccessExpression',
|
|
855
|
+
[ts.SyntaxKind.CallExpression]: 'CallExpression',
|
|
856
|
+
[ts.SyntaxKind.NewExpression]: 'NewExpression',
|
|
857
|
+
[ts.SyntaxKind.TaggedTemplateExpression]: 'TaggedTemplateExpression',
|
|
858
|
+
[ts.SyntaxKind.TypeAssertionExpression]: 'TypeAssertionExpression',
|
|
859
|
+
[ts.SyntaxKind.ParenthesizedExpression]: 'ParenthesizedExpression',
|
|
860
|
+
[ts.SyntaxKind.FunctionExpression]: 'FunctionExpression',
|
|
861
|
+
[ts.SyntaxKind.ArrowFunction]: 'ArrowFunction',
|
|
862
|
+
[ts.SyntaxKind.DeleteExpression]: 'DeleteExpression',
|
|
863
|
+
[ts.SyntaxKind.TypeOfExpression]: 'TypeOfExpression',
|
|
864
|
+
[ts.SyntaxKind.VoidExpression]: 'VoidExpression',
|
|
865
|
+
[ts.SyntaxKind.AwaitExpression]: 'AwaitExpression',
|
|
866
|
+
[ts.SyntaxKind.PrefixUnaryExpression]: 'PrefixUnaryExpression',
|
|
867
|
+
[ts.SyntaxKind.PostfixUnaryExpression]: 'PostfixUnaryExpression',
|
|
868
|
+
[ts.SyntaxKind.BinaryExpression]: 'BinaryExpression',
|
|
869
|
+
[ts.SyntaxKind.ConditionalExpression]: 'ConditionalExpression',
|
|
870
|
+
[ts.SyntaxKind.TemplateExpression]: 'TemplateExpression',
|
|
871
|
+
[ts.SyntaxKind.YieldExpression]: 'YieldExpression',
|
|
872
|
+
[ts.SyntaxKind.SpreadElement]: 'SpreadElement',
|
|
873
|
+
[ts.SyntaxKind.ClassExpression]: 'ClassExpression',
|
|
874
|
+
[ts.SyntaxKind.OmittedExpression]: 'OmittedExpression',
|
|
875
|
+
[ts.SyntaxKind.ExpressionWithTypeArguments]: 'ExpressionWithTypeArguments',
|
|
876
|
+
[ts.SyntaxKind.AsExpression]: 'AsExpression',
|
|
877
|
+
[ts.SyntaxKind.NonNullExpression]: 'NonNullExpression',
|
|
878
|
+
[ts.SyntaxKind.MetaProperty]: 'MetaProperty',
|
|
879
|
+
[ts.SyntaxKind.SyntheticExpression]: 'SyntheticExpression',
|
|
880
|
+
[ts.SyntaxKind.TemplateSpan]: 'TemplateSpan',
|
|
881
|
+
[ts.SyntaxKind.SemicolonClassElement]: 'SemicolonClassElement',
|
|
882
|
+
[ts.SyntaxKind.Block]: 'Block',
|
|
883
|
+
[ts.SyntaxKind.EmptyStatement]: 'EmptyStatement',
|
|
884
|
+
[ts.SyntaxKind.VariableStatement]: 'VariableStatement',
|
|
885
|
+
[ts.SyntaxKind.ExpressionStatement]: 'ExpressionStatement',
|
|
886
|
+
[ts.SyntaxKind.IfStatement]: 'IfStatement',
|
|
887
|
+
[ts.SyntaxKind.DoStatement]: 'DoStatement',
|
|
888
|
+
[ts.SyntaxKind.WhileStatement]: 'WhileStatement',
|
|
889
|
+
[ts.SyntaxKind.ForStatement]: 'ForStatement',
|
|
890
|
+
[ts.SyntaxKind.ForInStatement]: 'ForInStatement',
|
|
891
|
+
[ts.SyntaxKind.ForOfStatement]: 'ForOfStatement',
|
|
892
|
+
[ts.SyntaxKind.ContinueStatement]: 'ContinueStatement',
|
|
893
|
+
[ts.SyntaxKind.BreakStatement]: 'BreakStatement',
|
|
894
|
+
[ts.SyntaxKind.ReturnStatement]: 'ReturnStatement',
|
|
895
|
+
[ts.SyntaxKind.WithStatement]: 'WithStatement',
|
|
896
|
+
[ts.SyntaxKind.SwitchStatement]: 'SwitchStatement',
|
|
897
|
+
[ts.SyntaxKind.LabeledStatement]: 'LabeledStatement',
|
|
898
|
+
[ts.SyntaxKind.ThrowStatement]: 'ThrowStatement',
|
|
899
|
+
[ts.SyntaxKind.TryStatement]: 'TryStatement',
|
|
900
|
+
[ts.SyntaxKind.DebuggerStatement]: 'DebuggerStatement',
|
|
901
|
+
[ts.SyntaxKind.VariableDeclaration]: 'VariableDeclaration',
|
|
902
|
+
[ts.SyntaxKind.VariableDeclarationList]: 'VariableDeclarationList',
|
|
903
|
+
[ts.SyntaxKind.FunctionDeclaration]: 'FunctionDeclaration',
|
|
904
|
+
[ts.SyntaxKind.ClassDeclaration]: 'ClassDeclaration',
|
|
905
|
+
[ts.SyntaxKind.InterfaceDeclaration]: 'InterfaceDeclaration',
|
|
906
|
+
[ts.SyntaxKind.TypeAliasDeclaration]: 'TypeAliasDeclaration',
|
|
907
|
+
[ts.SyntaxKind.EnumDeclaration]: 'EnumDeclaration',
|
|
908
|
+
[ts.SyntaxKind.ModuleDeclaration]: 'ModuleDeclaration',
|
|
909
|
+
[ts.SyntaxKind.ModuleBlock]: 'ModuleBlock',
|
|
910
|
+
[ts.SyntaxKind.CaseBlock]: 'CaseBlock',
|
|
911
|
+
[ts.SyntaxKind.NamespaceExportDeclaration]: 'NamespaceExportDeclaration',
|
|
912
|
+
[ts.SyntaxKind.ImportEqualsDeclaration]: 'ImportEqualsDeclaration',
|
|
913
|
+
[ts.SyntaxKind.ImportDeclaration]: 'ImportDeclaration',
|
|
914
|
+
[ts.SyntaxKind.ImportClause]: 'ImportClause',
|
|
915
|
+
[ts.SyntaxKind.NamespaceImport]: 'NamespaceImport',
|
|
916
|
+
[ts.SyntaxKind.NamedImports]: 'NamedImports',
|
|
917
|
+
[ts.SyntaxKind.ImportSpecifier]: 'ImportSpecifier',
|
|
918
|
+
[ts.SyntaxKind.ExportAssignment]: 'ExportAssignment',
|
|
919
|
+
[ts.SyntaxKind.ExportDeclaration]: 'ExportDeclaration',
|
|
920
|
+
[ts.SyntaxKind.NamedExports]: 'NamedExports',
|
|
921
|
+
[ts.SyntaxKind.NamespaceExport]: 'NamespaceExport',
|
|
922
|
+
[ts.SyntaxKind.ExportSpecifier]: 'ExportSpecifier',
|
|
923
|
+
[ts.SyntaxKind.MissingDeclaration]: 'MissingDeclaration',
|
|
924
|
+
[ts.SyntaxKind.ExternalModuleReference]: 'ExternalModuleReference',
|
|
925
|
+
[ts.SyntaxKind.JsxElement]: 'JsxElement',
|
|
926
|
+
[ts.SyntaxKind.JsxSelfClosingElement]: 'JsxSelfClosingElement',
|
|
927
|
+
[ts.SyntaxKind.JsxOpeningElement]: 'JsxOpeningElement',
|
|
928
|
+
[ts.SyntaxKind.JsxClosingElement]: 'JsxClosingElement',
|
|
929
|
+
[ts.SyntaxKind.JsxFragment]: 'JsxFragment',
|
|
930
|
+
[ts.SyntaxKind.JsxOpeningFragment]: 'JsxOpeningFragment',
|
|
931
|
+
[ts.SyntaxKind.JsxClosingFragment]: 'JsxClosingFragment',
|
|
932
|
+
[ts.SyntaxKind.JsxAttribute]: 'JsxAttribute',
|
|
933
|
+
[ts.SyntaxKind.JsxAttributes]: 'JsxAttributes',
|
|
934
|
+
[ts.SyntaxKind.JsxSpreadAttribute]: 'JsxSpreadAttribute',
|
|
935
|
+
[ts.SyntaxKind.JsxExpression]: 'JsxExpression',
|
|
936
|
+
[ts.SyntaxKind.CaseClause]: 'CaseClause',
|
|
937
|
+
[ts.SyntaxKind.DefaultClause]: 'DefaultClause',
|
|
938
|
+
[ts.SyntaxKind.HeritageClause]: 'HeritageClause',
|
|
939
|
+
[ts.SyntaxKind.CatchClause]: 'CatchClause',
|
|
940
|
+
[ts.SyntaxKind.PropertyAssignment]: 'PropertyAssignment',
|
|
941
|
+
[ts.SyntaxKind.ShorthandPropertyAssignment]: 'ShorthandPropertyAssignment',
|
|
942
|
+
[ts.SyntaxKind.SpreadAssignment]: 'SpreadAssignment',
|
|
943
|
+
[ts.SyntaxKind.EnumMember]: 'EnumMember',
|
|
944
|
+
[ts.SyntaxKind.UnparsedPrologue]: 'UnparsedPrologue',
|
|
945
|
+
[ts.SyntaxKind.UnparsedPrepend]: 'UnparsedPrepend',
|
|
946
|
+
[ts.SyntaxKind.UnparsedSyntheticReference]: 'UnparsedSyntheticReference',
|
|
947
|
+
[ts.SyntaxKind.SourceFile]: 'SourceFile',
|
|
948
|
+
[ts.SyntaxKind.Bundle]: 'Bundle',
|
|
949
|
+
[ts.SyntaxKind.UnparsedSource]: 'UnparsedSource',
|
|
950
|
+
[ts.SyntaxKind.InputFiles]: 'InputFiles',
|
|
951
|
+
[ts.SyntaxKind.JSDocTypeExpression]: 'JSDocTypeExpression',
|
|
952
|
+
[ts.SyntaxKind.JSDocNameReference]: 'JSDocNameReference',
|
|
953
|
+
[ts.SyntaxKind.JSDocAllType]: 'JSDocAllType',
|
|
954
|
+
[ts.SyntaxKind.JSDocUnknownType]: 'JSDocUnknownType',
|
|
955
|
+
[ts.SyntaxKind.JSDocNullableType]: 'JSDocNullableType',
|
|
956
|
+
[ts.SyntaxKind.JSDocNonNullableType]: 'JSDocNonNullableType',
|
|
957
|
+
[ts.SyntaxKind.JSDocOptionalType]: 'JSDocOptionalType',
|
|
958
|
+
[ts.SyntaxKind.JSDocFunctionType]: 'JSDocFunctionType',
|
|
959
|
+
[ts.SyntaxKind.JSDocVariadicType]: 'JSDocVariadicType',
|
|
960
|
+
[ts.SyntaxKind.JSDocNamepathType]: 'JSDocNamepathType',
|
|
961
|
+
[ts.SyntaxKind.JSDocComment]: 'JSDocComment',
|
|
962
|
+
[ts.SyntaxKind.JSDocTypeLiteral]: 'JSDocTypeLiteral',
|
|
963
|
+
[ts.SyntaxKind.JSDocSignature]: 'JSDocSignature',
|
|
964
|
+
[ts.SyntaxKind.JSDocTag]: 'JSDocTag',
|
|
965
|
+
[ts.SyntaxKind.JSDocAugmentsTag]: 'JSDocAugmentsTag',
|
|
966
|
+
[ts.SyntaxKind.JSDocImplementsTag]: 'JSDocImplementsTag',
|
|
967
|
+
[ts.SyntaxKind.JSDocAuthorTag]: 'JSDocAuthorTag',
|
|
968
|
+
[ts.SyntaxKind.JSDocDeprecatedTag]: 'JSDocDeprecatedTag',
|
|
969
|
+
[ts.SyntaxKind.JSDocClassTag]: 'JSDocClassTag',
|
|
970
|
+
[ts.SyntaxKind.JSDocPublicTag]: 'JSDocPublicTag',
|
|
971
|
+
[ts.SyntaxKind.JSDocPrivateTag]: 'JSDocPrivateTag',
|
|
972
|
+
[ts.SyntaxKind.JSDocProtectedTag]: 'JSDocProtectedTag',
|
|
973
|
+
[ts.SyntaxKind.JSDocReadonlyTag]: 'JSDocReadonlyTag',
|
|
974
|
+
[ts.SyntaxKind.JSDocCallbackTag]: 'JSDocCallbackTag',
|
|
975
|
+
[ts.SyntaxKind.JSDocEnumTag]: 'JSDocEnumTag',
|
|
976
|
+
[ts.SyntaxKind.JSDocParameterTag]: 'JSDocParameterTag',
|
|
977
|
+
[ts.SyntaxKind.JSDocReturnTag]: 'JSDocReturnTag',
|
|
978
|
+
[ts.SyntaxKind.JSDocThisTag]: 'JSDocThisTag',
|
|
979
|
+
[ts.SyntaxKind.JSDocTypeTag]: 'JSDocTypeTag',
|
|
980
|
+
[ts.SyntaxKind.JSDocTemplateTag]: 'JSDocTemplateTag',
|
|
981
|
+
[ts.SyntaxKind.JSDocTypedefTag]: 'JSDocTypedefTag',
|
|
982
|
+
[ts.SyntaxKind.JSDocSeeTag]: 'JSDocSeeTag',
|
|
983
|
+
[ts.SyntaxKind.JSDocPropertyTag]: 'JSDocPropertyTag',
|
|
984
|
+
[ts.SyntaxKind.SyntaxList]: 'SyntaxList',
|
|
985
|
+
[ts.SyntaxKind.NotEmittedStatement]: 'NotEmittedStatement',
|
|
986
|
+
[ts.SyntaxKind.PartiallyEmittedExpression]: 'PartiallyEmittedExpression',
|
|
987
|
+
[ts.SyntaxKind.CommaListExpression]: 'CommaListExpression',
|
|
988
|
+
};
|
|
990
989
|
export function getKindNameFromNode(node) {
|
|
991
990
|
// @ts-ignore
|
|
992
991
|
return kindToString[node.kind] || String(node.kind);
|