333
schangxiang@126.com
2025-09-19 18966e02fb573c7e2bb0c6426ed792b38b910940
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
import { Type } from "../lib/types";
import * as N from "./nodes";
export interface NamedTypes {
    Printable: Type<N.Printable>;
    SourceLocation: Type<N.SourceLocation>;
    Node: Type<N.Node>;
    Comment: Type<N.Comment>;
    Position: Type<N.Position>;
    File: Type<N.File>;
    Program: Type<N.Program>;
    Statement: Type<N.Statement>;
    Function: Type<N.Function>;
    Pattern: Type<N.Pattern>;
    Expression: Type<N.Expression>;
    Identifier: Type<N.Identifier>;
    BlockStatement: Type<N.BlockStatement>;
    EmptyStatement: Type<N.EmptyStatement>;
    ExpressionStatement: Type<N.ExpressionStatement>;
    IfStatement: Type<N.IfStatement>;
    LabeledStatement: Type<N.LabeledStatement>;
    BreakStatement: Type<N.BreakStatement>;
    ContinueStatement: Type<N.ContinueStatement>;
    WithStatement: Type<N.WithStatement>;
    SwitchStatement: Type<N.SwitchStatement>;
    SwitchCase: Type<N.SwitchCase>;
    ReturnStatement: Type<N.ReturnStatement>;
    ThrowStatement: Type<N.ThrowStatement>;
    TryStatement: Type<N.TryStatement>;
    CatchClause: Type<N.CatchClause>;
    WhileStatement: Type<N.WhileStatement>;
    DoWhileStatement: Type<N.DoWhileStatement>;
    ForStatement: Type<N.ForStatement>;
    Declaration: Type<N.Declaration>;
    VariableDeclaration: Type<N.VariableDeclaration>;
    ForInStatement: Type<N.ForInStatement>;
    DebuggerStatement: Type<N.DebuggerStatement>;
    FunctionDeclaration: Type<N.FunctionDeclaration>;
    FunctionExpression: Type<N.FunctionExpression>;
    VariableDeclarator: Type<N.VariableDeclarator>;
    ThisExpression: Type<N.ThisExpression>;
    ArrayExpression: Type<N.ArrayExpression>;
    ObjectExpression: Type<N.ObjectExpression>;
    Property: Type<N.Property>;
    Literal: Type<N.Literal>;
    SequenceExpression: Type<N.SequenceExpression>;
    UnaryExpression: Type<N.UnaryExpression>;
    BinaryExpression: Type<N.BinaryExpression>;
    AssignmentExpression: Type<N.AssignmentExpression>;
    UpdateExpression: Type<N.UpdateExpression>;
    LogicalExpression: Type<N.LogicalExpression>;
    ConditionalExpression: Type<N.ConditionalExpression>;
    NewExpression: Type<N.NewExpression>;
    CallExpression: Type<N.CallExpression>;
    MemberExpression: Type<N.MemberExpression>;
    RestElement: Type<N.RestElement>;
    TypeAnnotation: Type<N.TypeAnnotation>;
    TSTypeAnnotation: Type<N.TSTypeAnnotation>;
    SpreadElementPattern: Type<N.SpreadElementPattern>;
    ArrowFunctionExpression: Type<N.ArrowFunctionExpression>;
    ForOfStatement: Type<N.ForOfStatement>;
    YieldExpression: Type<N.YieldExpression>;
    GeneratorExpression: Type<N.GeneratorExpression>;
    ComprehensionBlock: Type<N.ComprehensionBlock>;
    ComprehensionExpression: Type<N.ComprehensionExpression>;
    ObjectProperty: Type<N.ObjectProperty>;
    PropertyPattern: Type<N.PropertyPattern>;
    ObjectPattern: Type<N.ObjectPattern>;
    ArrayPattern: Type<N.ArrayPattern>;
    MethodDefinition: Type<N.MethodDefinition>;
    SpreadElement: Type<N.SpreadElement>;
    AssignmentPattern: Type<N.AssignmentPattern>;
    ClassPropertyDefinition: Type<N.ClassPropertyDefinition>;
    ClassProperty: Type<N.ClassProperty>;
    ClassBody: Type<N.ClassBody>;
    ClassDeclaration: Type<N.ClassDeclaration>;
    ClassExpression: Type<N.ClassExpression>;
    Specifier: Type<N.Specifier>;
    ModuleSpecifier: Type<N.ModuleSpecifier>;
    ImportSpecifier: Type<N.ImportSpecifier>;
    ImportNamespaceSpecifier: Type<N.ImportNamespaceSpecifier>;
    ImportDefaultSpecifier: Type<N.ImportDefaultSpecifier>;
    ImportDeclaration: Type<N.ImportDeclaration>;
    TaggedTemplateExpression: Type<N.TaggedTemplateExpression>;
    TemplateLiteral: Type<N.TemplateLiteral>;
    TemplateElement: Type<N.TemplateElement>;
    SpreadProperty: Type<N.SpreadProperty>;
    SpreadPropertyPattern: Type<N.SpreadPropertyPattern>;
    AwaitExpression: Type<N.AwaitExpression>;
    JSXAttribute: Type<N.JSXAttribute>;
    JSXIdentifier: Type<N.JSXIdentifier>;
    JSXNamespacedName: Type<N.JSXNamespacedName>;
    JSXExpressionContainer: Type<N.JSXExpressionContainer>;
    JSXMemberExpression: Type<N.JSXMemberExpression>;
    JSXSpreadAttribute: Type<N.JSXSpreadAttribute>;
    JSXElement: Type<N.JSXElement>;
    JSXOpeningElement: Type<N.JSXOpeningElement>;
    JSXClosingElement: Type<N.JSXClosingElement>;
    JSXFragment: Type<N.JSXFragment>;
    JSXText: Type<N.JSXText>;
    JSXOpeningFragment: Type<N.JSXOpeningFragment>;
    JSXClosingFragment: Type<N.JSXClosingFragment>;
    JSXEmptyExpression: Type<N.JSXEmptyExpression>;
    JSXSpreadChild: Type<N.JSXSpreadChild>;
    TypeParameterDeclaration: Type<N.TypeParameterDeclaration>;
    TSTypeParameterDeclaration: Type<N.TSTypeParameterDeclaration>;
    TypeParameterInstantiation: Type<N.TypeParameterInstantiation>;
    TSTypeParameterInstantiation: Type<N.TSTypeParameterInstantiation>;
    ClassImplements: Type<N.ClassImplements>;
    TSType: Type<N.TSType>;
    TSHasOptionalTypeParameterInstantiation: Type<N.TSHasOptionalTypeParameterInstantiation>;
    TSExpressionWithTypeArguments: Type<N.TSExpressionWithTypeArguments>;
    Flow: Type<N.Flow>;
    FlowType: Type<N.FlowType>;
    AnyTypeAnnotation: Type<N.AnyTypeAnnotation>;
    EmptyTypeAnnotation: Type<N.EmptyTypeAnnotation>;
    MixedTypeAnnotation: Type<N.MixedTypeAnnotation>;
    VoidTypeAnnotation: Type<N.VoidTypeAnnotation>;
    NumberTypeAnnotation: Type<N.NumberTypeAnnotation>;
    NumberLiteralTypeAnnotation: Type<N.NumberLiteralTypeAnnotation>;
    NumericLiteralTypeAnnotation: Type<N.NumericLiteralTypeAnnotation>;
    StringTypeAnnotation: Type<N.StringTypeAnnotation>;
    StringLiteralTypeAnnotation: Type<N.StringLiteralTypeAnnotation>;
    BooleanTypeAnnotation: Type<N.BooleanTypeAnnotation>;
    BooleanLiteralTypeAnnotation: Type<N.BooleanLiteralTypeAnnotation>;
    NullableTypeAnnotation: Type<N.NullableTypeAnnotation>;
    NullLiteralTypeAnnotation: Type<N.NullLiteralTypeAnnotation>;
    NullTypeAnnotation: Type<N.NullTypeAnnotation>;
    ThisTypeAnnotation: Type<N.ThisTypeAnnotation>;
    ExistsTypeAnnotation: Type<N.ExistsTypeAnnotation>;
    ExistentialTypeParam: Type<N.ExistentialTypeParam>;
    FunctionTypeAnnotation: Type<N.FunctionTypeAnnotation>;
    FunctionTypeParam: Type<N.FunctionTypeParam>;
    ArrayTypeAnnotation: Type<N.ArrayTypeAnnotation>;
    ObjectTypeAnnotation: Type<N.ObjectTypeAnnotation>;
    ObjectTypeProperty: Type<N.ObjectTypeProperty>;
    ObjectTypeSpreadProperty: Type<N.ObjectTypeSpreadProperty>;
    ObjectTypeIndexer: Type<N.ObjectTypeIndexer>;
    ObjectTypeCallProperty: Type<N.ObjectTypeCallProperty>;
    ObjectTypeInternalSlot: Type<N.ObjectTypeInternalSlot>;
    Variance: Type<N.Variance>;
    QualifiedTypeIdentifier: Type<N.QualifiedTypeIdentifier>;
    GenericTypeAnnotation: Type<N.GenericTypeAnnotation>;
    MemberTypeAnnotation: Type<N.MemberTypeAnnotation>;
    UnionTypeAnnotation: Type<N.UnionTypeAnnotation>;
    IntersectionTypeAnnotation: Type<N.IntersectionTypeAnnotation>;
    TypeofTypeAnnotation: Type<N.TypeofTypeAnnotation>;
    TypeParameter: Type<N.TypeParameter>;
    InterfaceTypeAnnotation: Type<N.InterfaceTypeAnnotation>;
    InterfaceExtends: Type<N.InterfaceExtends>;
    InterfaceDeclaration: Type<N.InterfaceDeclaration>;
    DeclareInterface: Type<N.DeclareInterface>;
    TypeAlias: Type<N.TypeAlias>;
    OpaqueType: Type<N.OpaqueType>;
    DeclareTypeAlias: Type<N.DeclareTypeAlias>;
    DeclareOpaqueType: Type<N.DeclareOpaqueType>;
    TypeCastExpression: Type<N.TypeCastExpression>;
    TupleTypeAnnotation: Type<N.TupleTypeAnnotation>;
    DeclareVariable: Type<N.DeclareVariable>;
    DeclareFunction: Type<N.DeclareFunction>;
    DeclareClass: Type<N.DeclareClass>;
    DeclareModule: Type<N.DeclareModule>;
    DeclareModuleExports: Type<N.DeclareModuleExports>;
    DeclareExportDeclaration: Type<N.DeclareExportDeclaration>;
    ExportSpecifier: Type<N.ExportSpecifier>;
    ExportBatchSpecifier: Type<N.ExportBatchSpecifier>;
    DeclareExportAllDeclaration: Type<N.DeclareExportAllDeclaration>;
    FlowPredicate: Type<N.FlowPredicate>;
    InferredPredicate: Type<N.InferredPredicate>;
    DeclaredPredicate: Type<N.DeclaredPredicate>;
    ExportDeclaration: Type<N.ExportDeclaration>;
    Block: Type<N.Block>;
    Line: Type<N.Line>;
    Noop: Type<N.Noop>;
    DoExpression: Type<N.DoExpression>;
    Super: Type<N.Super>;
    BindExpression: Type<N.BindExpression>;
    Decorator: Type<N.Decorator>;
    MetaProperty: Type<N.MetaProperty>;
    ParenthesizedExpression: Type<N.ParenthesizedExpression>;
    ExportDefaultDeclaration: Type<N.ExportDefaultDeclaration>;
    ExportNamedDeclaration: Type<N.ExportNamedDeclaration>;
    ExportNamespaceSpecifier: Type<N.ExportNamespaceSpecifier>;
    ExportDefaultSpecifier: Type<N.ExportDefaultSpecifier>;
    ExportAllDeclaration: Type<N.ExportAllDeclaration>;
    CommentBlock: Type<N.CommentBlock>;
    CommentLine: Type<N.CommentLine>;
    Directive: Type<N.Directive>;
    DirectiveLiteral: Type<N.DirectiveLiteral>;
    InterpreterDirective: Type<N.InterpreterDirective>;
    StringLiteral: Type<N.StringLiteral>;
    NumericLiteral: Type<N.NumericLiteral>;
    BigIntLiteral: Type<N.BigIntLiteral>;
    NullLiteral: Type<N.NullLiteral>;
    BooleanLiteral: Type<N.BooleanLiteral>;
    RegExpLiteral: Type<N.RegExpLiteral>;
    ObjectMethod: Type<N.ObjectMethod>;
    ClassPrivateProperty: Type<N.ClassPrivateProperty>;
    ClassMethod: Type<N.ClassMethod>;
    ClassPrivateMethod: Type<N.ClassPrivateMethod>;
    PrivateName: Type<N.PrivateName>;
    RestProperty: Type<N.RestProperty>;
    ForAwaitStatement: Type<N.ForAwaitStatement>;
    Import: Type<N.Import>;
    TSQualifiedName: Type<N.TSQualifiedName>;
    TSTypeReference: Type<N.TSTypeReference>;
    TSHasOptionalTypeParameters: Type<N.TSHasOptionalTypeParameters>;
    TSHasOptionalTypeAnnotation: Type<N.TSHasOptionalTypeAnnotation>;
    TSAsExpression: Type<N.TSAsExpression>;
    TSNonNullExpression: Type<N.TSNonNullExpression>;
    TSAnyKeyword: Type<N.TSAnyKeyword>;
    TSBigIntKeyword: Type<N.TSBigIntKeyword>;
    TSBooleanKeyword: Type<N.TSBooleanKeyword>;
    TSNeverKeyword: Type<N.TSNeverKeyword>;
    TSNullKeyword: Type<N.TSNullKeyword>;
    TSNumberKeyword: Type<N.TSNumberKeyword>;
    TSObjectKeyword: Type<N.TSObjectKeyword>;
    TSStringKeyword: Type<N.TSStringKeyword>;
    TSSymbolKeyword: Type<N.TSSymbolKeyword>;
    TSUndefinedKeyword: Type<N.TSUndefinedKeyword>;
    TSUnknownKeyword: Type<N.TSUnknownKeyword>;
    TSVoidKeyword: Type<N.TSVoidKeyword>;
    TSThisType: Type<N.TSThisType>;
    TSArrayType: Type<N.TSArrayType>;
    TSLiteralType: Type<N.TSLiteralType>;
    TSUnionType: Type<N.TSUnionType>;
    TSIntersectionType: Type<N.TSIntersectionType>;
    TSConditionalType: Type<N.TSConditionalType>;
    TSInferType: Type<N.TSInferType>;
    TSTypeParameter: Type<N.TSTypeParameter>;
    TSParenthesizedType: Type<N.TSParenthesizedType>;
    TSFunctionType: Type<N.TSFunctionType>;
    TSConstructorType: Type<N.TSConstructorType>;
    TSDeclareFunction: Type<N.TSDeclareFunction>;
    TSDeclareMethod: Type<N.TSDeclareMethod>;
    TSMappedType: Type<N.TSMappedType>;
    TSTupleType: Type<N.TSTupleType>;
    TSRestType: Type<N.TSRestType>;
    TSOptionalType: Type<N.TSOptionalType>;
    TSIndexedAccessType: Type<N.TSIndexedAccessType>;
    TSTypeOperator: Type<N.TSTypeOperator>;
    TSIndexSignature: Type<N.TSIndexSignature>;
    TSPropertySignature: Type<N.TSPropertySignature>;
    TSMethodSignature: Type<N.TSMethodSignature>;
    TSTypePredicate: Type<N.TSTypePredicate>;
    TSCallSignatureDeclaration: Type<N.TSCallSignatureDeclaration>;
    TSConstructSignatureDeclaration: Type<N.TSConstructSignatureDeclaration>;
    TSEnumMember: Type<N.TSEnumMember>;
    TSTypeQuery: Type<N.TSTypeQuery>;
    TSImportType: Type<N.TSImportType>;
    TSTypeLiteral: Type<N.TSTypeLiteral>;
    TSTypeAssertion: Type<N.TSTypeAssertion>;
    TSEnumDeclaration: Type<N.TSEnumDeclaration>;
    TSTypeAliasDeclaration: Type<N.TSTypeAliasDeclaration>;
    TSModuleBlock: Type<N.TSModuleBlock>;
    TSModuleDeclaration: Type<N.TSModuleDeclaration>;
    TSImportEqualsDeclaration: Type<N.TSImportEqualsDeclaration>;
    TSExternalModuleReference: Type<N.TSExternalModuleReference>;
    TSExportAssignment: Type<N.TSExportAssignment>;
    TSNamespaceExportDeclaration: Type<N.TSNamespaceExportDeclaration>;
    TSInterfaceBody: Type<N.TSInterfaceBody>;
    TSInterfaceDeclaration: Type<N.TSInterfaceDeclaration>;
    TSParameterProperty: Type<N.TSParameterProperty>;
    OptionalMemberExpression: Type<N.OptionalMemberExpression>;
    OptionalCallExpression: Type<N.OptionalCallExpression>;
}