|
15 | 15 | 'use strict'; |
16 | 16 |
|
17 | 17 | declare module '@babel/traverse' { |
| 18 | + // BEGIN GENERATED BABEL TYPE IMPORTS |
| 19 | + import type { |
| 20 | + Node as BabelNode, |
| 21 | + Accessor as BabelNodeAccessor, |
| 22 | + AnyTypeAnnotation as BabelNodeAnyTypeAnnotation, |
| 23 | + ArgumentPlaceholder as BabelNodeArgumentPlaceholder, |
| 24 | + ArrayExpression as BabelNodeArrayExpression, |
| 25 | + ArrayPattern as BabelNodeArrayPattern, |
| 26 | + ArrayTypeAnnotation as BabelNodeArrayTypeAnnotation, |
| 27 | + ArrowFunctionExpression as BabelNodeArrowFunctionExpression, |
| 28 | + AssignmentExpression as BabelNodeAssignmentExpression, |
| 29 | + AssignmentPattern as BabelNodeAssignmentPattern, |
| 30 | + AwaitExpression as BabelNodeAwaitExpression, |
| 31 | + BigIntLiteral as BabelNodeBigIntLiteral, |
| 32 | + Binary as BabelNodeBinary, |
| 33 | + BinaryExpression as BabelNodeBinaryExpression, |
| 34 | + BindExpression as BabelNodeBindExpression, |
| 35 | + Block as BabelNodeBlock, |
| 36 | + BlockParent as BabelNodeBlockParent, |
| 37 | + BlockStatement as BabelNodeBlockStatement, |
| 38 | + BooleanLiteral as BabelNodeBooleanLiteral, |
| 39 | + BooleanLiteralTypeAnnotation as BabelNodeBooleanLiteralTypeAnnotation, |
| 40 | + BooleanTypeAnnotation as BabelNodeBooleanTypeAnnotation, |
| 41 | + BreakStatement as BabelNodeBreakStatement, |
| 42 | + CallExpression as BabelNodeCallExpression, |
| 43 | + CatchClause as BabelNodeCatchClause, |
| 44 | + Class as BabelNodeClass, |
| 45 | + ClassAccessorProperty as BabelNodeClassAccessorProperty, |
| 46 | + ClassBody as BabelNodeClassBody, |
| 47 | + ClassDeclaration as BabelNodeClassDeclaration, |
| 48 | + ClassExpression as BabelNodeClassExpression, |
| 49 | + ClassImplements as BabelNodeClassImplements, |
| 50 | + ClassMethod as BabelNodeClassMethod, |
| 51 | + ClassPrivateMethod as BabelNodeClassPrivateMethod, |
| 52 | + ClassPrivateProperty as BabelNodeClassPrivateProperty, |
| 53 | + ClassProperty as BabelNodeClassProperty, |
| 54 | + Comment as BabelNodeComment, |
| 55 | + CompletionStatement as BabelNodeCompletionStatement, |
| 56 | + Conditional as BabelNodeConditional, |
| 57 | + ConditionalExpression as BabelNodeConditionalExpression, |
| 58 | + ContinueStatement as BabelNodeContinueStatement, |
| 59 | + DebuggerStatement as BabelNodeDebuggerStatement, |
| 60 | + DecimalLiteral as BabelNodeDecimalLiteral, |
| 61 | + Declaration as BabelNodeDeclaration, |
| 62 | + DeclareClass as BabelNodeDeclareClass, |
| 63 | + DeclareExportAllDeclaration as BabelNodeDeclareExportAllDeclaration, |
| 64 | + DeclareExportDeclaration as BabelNodeDeclareExportDeclaration, |
| 65 | + DeclareFunction as BabelNodeDeclareFunction, |
| 66 | + DeclareInterface as BabelNodeDeclareInterface, |
| 67 | + DeclareModule as BabelNodeDeclareModule, |
| 68 | + DeclareModuleExports as BabelNodeDeclareModuleExports, |
| 69 | + DeclareOpaqueType as BabelNodeDeclareOpaqueType, |
| 70 | + DeclareTypeAlias as BabelNodeDeclareTypeAlias, |
| 71 | + DeclareVariable as BabelNodeDeclareVariable, |
| 72 | + DeclaredPredicate as BabelNodeDeclaredPredicate, |
| 73 | + Decorator as BabelNodeDecorator, |
| 74 | + Directive as BabelNodeDirective, |
| 75 | + DirectiveLiteral as BabelNodeDirectiveLiteral, |
| 76 | + DoExpression as BabelNodeDoExpression, |
| 77 | + DoWhileStatement as BabelNodeDoWhileStatement, |
| 78 | + EmptyStatement as BabelNodeEmptyStatement, |
| 79 | + EmptyTypeAnnotation as BabelNodeEmptyTypeAnnotation, |
| 80 | + EnumBody as BabelNodeEnumBody, |
| 81 | + EnumBooleanBody as BabelNodeEnumBooleanBody, |
| 82 | + EnumBooleanMember as BabelNodeEnumBooleanMember, |
| 83 | + EnumDeclaration as BabelNodeEnumDeclaration, |
| 84 | + EnumDefaultedMember as BabelNodeEnumDefaultedMember, |
| 85 | + EnumMember as BabelNodeEnumMember, |
| 86 | + EnumNumberBody as BabelNodeEnumNumberBody, |
| 87 | + EnumNumberMember as BabelNodeEnumNumberMember, |
| 88 | + EnumStringBody as BabelNodeEnumStringBody, |
| 89 | + EnumStringMember as BabelNodeEnumStringMember, |
| 90 | + EnumSymbolBody as BabelNodeEnumSymbolBody, |
| 91 | + ExistsTypeAnnotation as BabelNodeExistsTypeAnnotation, |
| 92 | + ExportAllDeclaration as BabelNodeExportAllDeclaration, |
| 93 | + ExportDeclaration as BabelNodeExportDeclaration, |
| 94 | + ExportDefaultDeclaration as BabelNodeExportDefaultDeclaration, |
| 95 | + ExportDefaultSpecifier as BabelNodeExportDefaultSpecifier, |
| 96 | + ExportNamedDeclaration as BabelNodeExportNamedDeclaration, |
| 97 | + ExportNamespaceSpecifier as BabelNodeExportNamespaceSpecifier, |
| 98 | + ExportSpecifier as BabelNodeExportSpecifier, |
| 99 | + Expression as BabelNodeExpression, |
| 100 | + ExpressionStatement as BabelNodeExpressionStatement, |
| 101 | + ExpressionWrapper as BabelNodeExpressionWrapper, |
| 102 | + Flow as BabelNodeFlow, |
| 103 | + FlowBaseAnnotation as BabelNodeFlowBaseAnnotation, |
| 104 | + FlowDeclaration as BabelNodeFlowDeclaration, |
| 105 | + FlowPredicate as BabelNodeFlowPredicate, |
| 106 | + FlowType as BabelNodeFlowType, |
| 107 | + For as BabelNodeFor, |
| 108 | + ForInStatement as BabelNodeForInStatement, |
| 109 | + ForOfStatement as BabelNodeForOfStatement, |
| 110 | + ForStatement as BabelNodeForStatement, |
| 111 | + ForXStatement as BabelNodeForXStatement, |
| 112 | + Function as BabelNodeFunction, |
| 113 | + FunctionDeclaration as BabelNodeFunctionDeclaration, |
| 114 | + FunctionExpression as BabelNodeFunctionExpression, |
| 115 | + FunctionParameter as BabelNodeFunctionParameter, |
| 116 | + FunctionParent as BabelNodeFunctionParent, |
| 117 | + FunctionTypeAnnotation as BabelNodeFunctionTypeAnnotation, |
| 118 | + FunctionTypeParam as BabelNodeFunctionTypeParam, |
| 119 | + GenericTypeAnnotation as BabelNodeGenericTypeAnnotation, |
| 120 | + Identifier as BabelNodeIdentifier, |
| 121 | + IfStatement as BabelNodeIfStatement, |
| 122 | + Immutable as BabelNodeImmutable, |
| 123 | + Import as BabelNodeImport, |
| 124 | + ImportAttribute as BabelNodeImportAttribute, |
| 125 | + ImportDeclaration as BabelNodeImportDeclaration, |
| 126 | + ImportDefaultSpecifier as BabelNodeImportDefaultSpecifier, |
| 127 | + ImportExpression as BabelNodeImportExpression, |
| 128 | + ImportNamespaceSpecifier as BabelNodeImportNamespaceSpecifier, |
| 129 | + ImportOrExportDeclaration as BabelNodeImportOrExportDeclaration, |
| 130 | + ImportSpecifier as BabelNodeImportSpecifier, |
| 131 | + IndexedAccessType as BabelNodeIndexedAccessType, |
| 132 | + InferredPredicate as BabelNodeInferredPredicate, |
| 133 | + InterfaceDeclaration as BabelNodeInterfaceDeclaration, |
| 134 | + InterfaceExtends as BabelNodeInterfaceExtends, |
| 135 | + InterfaceTypeAnnotation as BabelNodeInterfaceTypeAnnotation, |
| 136 | + InterpreterDirective as BabelNodeInterpreterDirective, |
| 137 | + IntersectionTypeAnnotation as BabelNodeIntersectionTypeAnnotation, |
| 138 | + JSX as BabelNodeJSX, |
| 139 | + JSXAttribute as BabelNodeJSXAttribute, |
| 140 | + JSXClosingElement as BabelNodeJSXClosingElement, |
| 141 | + JSXClosingFragment as BabelNodeJSXClosingFragment, |
| 142 | + JSXElement as BabelNodeJSXElement, |
| 143 | + JSXEmptyExpression as BabelNodeJSXEmptyExpression, |
| 144 | + JSXExpressionContainer as BabelNodeJSXExpressionContainer, |
| 145 | + JSXFragment as BabelNodeJSXFragment, |
| 146 | + JSXIdentifier as BabelNodeJSXIdentifier, |
| 147 | + JSXMemberExpression as BabelNodeJSXMemberExpression, |
| 148 | + JSXNamespacedName as BabelNodeJSXNamespacedName, |
| 149 | + JSXOpeningElement as BabelNodeJSXOpeningElement, |
| 150 | + JSXOpeningFragment as BabelNodeJSXOpeningFragment, |
| 151 | + JSXSpreadAttribute as BabelNodeJSXSpreadAttribute, |
| 152 | + JSXSpreadChild as BabelNodeJSXSpreadChild, |
| 153 | + JSXText as BabelNodeJSXText, |
| 154 | + LVal as BabelNodeLVal, |
| 155 | + LabeledStatement as BabelNodeLabeledStatement, |
| 156 | + Literal as BabelNodeLiteral, |
| 157 | + LogicalExpression as BabelNodeLogicalExpression, |
| 158 | + Loop as BabelNodeLoop, |
| 159 | + MemberExpression as BabelNodeMemberExpression, |
| 160 | + MetaProperty as BabelNodeMetaProperty, |
| 161 | + Method as BabelNodeMethod, |
| 162 | + Miscellaneous as BabelNodeMiscellaneous, |
| 163 | + MixedTypeAnnotation as BabelNodeMixedTypeAnnotation, |
| 164 | + ModuleDeclaration as BabelNodeModuleDeclaration, |
| 165 | + ModuleExpression as BabelNodeModuleExpression, |
| 166 | + ModuleSpecifier as BabelNodeModuleSpecifier, |
| 167 | + NewExpression as BabelNodeNewExpression, |
| 168 | + Noop as BabelNodeNoop, |
| 169 | + NullLiteral as BabelNodeNullLiteral, |
| 170 | + NullLiteralTypeAnnotation as BabelNodeNullLiteralTypeAnnotation, |
| 171 | + NullableTypeAnnotation as BabelNodeNullableTypeAnnotation, |
| 172 | + NumberLiteralTypeAnnotation as BabelNodeNumberLiteralTypeAnnotation, |
| 173 | + NumberTypeAnnotation as BabelNodeNumberTypeAnnotation, |
| 174 | + NumericLiteral as BabelNodeNumericLiteral, |
| 175 | + ObjectExpression as BabelNodeObjectExpression, |
| 176 | + ObjectMember as BabelNodeObjectMember, |
| 177 | + ObjectMethod as BabelNodeObjectMethod, |
| 178 | + ObjectPattern as BabelNodeObjectPattern, |
| 179 | + ObjectProperty as BabelNodeObjectProperty, |
| 180 | + ObjectTypeAnnotation as BabelNodeObjectTypeAnnotation, |
| 181 | + ObjectTypeCallProperty as BabelNodeObjectTypeCallProperty, |
| 182 | + ObjectTypeIndexer as BabelNodeObjectTypeIndexer, |
| 183 | + ObjectTypeInternalSlot as BabelNodeObjectTypeInternalSlot, |
| 184 | + ObjectTypeProperty as BabelNodeObjectTypeProperty, |
| 185 | + ObjectTypeSpreadProperty as BabelNodeObjectTypeSpreadProperty, |
| 186 | + OpaqueType as BabelNodeOpaqueType, |
| 187 | + OptionalCallExpression as BabelNodeOptionalCallExpression, |
| 188 | + OptionalIndexedAccessType as BabelNodeOptionalIndexedAccessType, |
| 189 | + OptionalMemberExpression as BabelNodeOptionalMemberExpression, |
| 190 | + ParenthesizedExpression as BabelNodeParenthesizedExpression, |
| 191 | + Pattern as BabelNodePattern, |
| 192 | + PatternLike as BabelNodePatternLike, |
| 193 | + PipelineBareFunction as BabelNodePipelineBareFunction, |
| 194 | + PipelinePrimaryTopicReference as BabelNodePipelinePrimaryTopicReference, |
| 195 | + PipelineTopicExpression as BabelNodePipelineTopicExpression, |
| 196 | + Placeholder as BabelNodePlaceholder, |
| 197 | + Private as BabelNodePrivate, |
| 198 | + PrivateName as BabelNodePrivateName, |
| 199 | + Program as BabelNodeProgram, |
| 200 | + Property as BabelNodeProperty, |
| 201 | + Pureish as BabelNodePureish, |
| 202 | + QualifiedTypeIdentifier as BabelNodeQualifiedTypeIdentifier, |
| 203 | + RecordExpression as BabelNodeRecordExpression, |
| 204 | + RegExpLiteral as BabelNodeRegExpLiteral, |
| 205 | + RestElement as BabelNodeRestElement, |
| 206 | + ReturnStatement as BabelNodeReturnStatement, |
| 207 | + Scopable as BabelNodeScopable, |
| 208 | + SequenceExpression as BabelNodeSequenceExpression, |
| 209 | + SpreadElement as BabelNodeSpreadElement, |
| 210 | + Standardized as BabelNodeStandardized, |
| 211 | + Statement as BabelNodeStatement, |
| 212 | + StaticBlock as BabelNodeStaticBlock, |
| 213 | + StringLiteral as BabelNodeStringLiteral, |
| 214 | + StringLiteralTypeAnnotation as BabelNodeStringLiteralTypeAnnotation, |
| 215 | + StringTypeAnnotation as BabelNodeStringTypeAnnotation, |
| 216 | + Super as BabelNodeSuper, |
| 217 | + SwitchCase as BabelNodeSwitchCase, |
| 218 | + SwitchStatement as BabelNodeSwitchStatement, |
| 219 | + SymbolTypeAnnotation as BabelNodeSymbolTypeAnnotation, |
| 220 | + TSAnyKeyword as BabelNodeTSAnyKeyword, |
| 221 | + TSArrayType as BabelNodeTSArrayType, |
| 222 | + TSAsExpression as BabelNodeTSAsExpression, |
| 223 | + TSBaseType as BabelNodeTSBaseType, |
| 224 | + TSBigIntKeyword as BabelNodeTSBigIntKeyword, |
| 225 | + TSBooleanKeyword as BabelNodeTSBooleanKeyword, |
| 226 | + TSCallSignatureDeclaration as BabelNodeTSCallSignatureDeclaration, |
| 227 | + TSConditionalType as BabelNodeTSConditionalType, |
| 228 | + TSConstructSignatureDeclaration as BabelNodeTSConstructSignatureDeclaration, |
| 229 | + TSConstructorType as BabelNodeTSConstructorType, |
| 230 | + TSDeclareFunction as BabelNodeTSDeclareFunction, |
| 231 | + TSDeclareMethod as BabelNodeTSDeclareMethod, |
| 232 | + TSEntityName as BabelNodeTSEntityName, |
| 233 | + TSEnumBody as BabelNodeTSEnumBody, |
| 234 | + TSEnumDeclaration as BabelNodeTSEnumDeclaration, |
| 235 | + TSEnumMember as BabelNodeTSEnumMember, |
| 236 | + TSExportAssignment as BabelNodeTSExportAssignment, |
| 237 | + TSExpressionWithTypeArguments as BabelNodeTSExpressionWithTypeArguments, |
| 238 | + TSExternalModuleReference as BabelNodeTSExternalModuleReference, |
| 239 | + TSFunctionType as BabelNodeTSFunctionType, |
| 240 | + TSImportEqualsDeclaration as BabelNodeTSImportEqualsDeclaration, |
| 241 | + TSImportType as BabelNodeTSImportType, |
| 242 | + TSIndexSignature as BabelNodeTSIndexSignature, |
| 243 | + TSIndexedAccessType as BabelNodeTSIndexedAccessType, |
| 244 | + TSInferType as BabelNodeTSInferType, |
| 245 | + TSInstantiationExpression as BabelNodeTSInstantiationExpression, |
| 246 | + TSInterfaceBody as BabelNodeTSInterfaceBody, |
| 247 | + TSInterfaceDeclaration as BabelNodeTSInterfaceDeclaration, |
| 248 | + TSIntersectionType as BabelNodeTSIntersectionType, |
| 249 | + TSIntrinsicKeyword as BabelNodeTSIntrinsicKeyword, |
| 250 | + TSLiteralType as BabelNodeTSLiteralType, |
| 251 | + TSMappedType as BabelNodeTSMappedType, |
| 252 | + TSMethodSignature as BabelNodeTSMethodSignature, |
| 253 | + TSModuleBlock as BabelNodeTSModuleBlock, |
| 254 | + TSModuleDeclaration as BabelNodeTSModuleDeclaration, |
| 255 | + TSNamedTupleMember as BabelNodeTSNamedTupleMember, |
| 256 | + TSNamespaceExportDeclaration as BabelNodeTSNamespaceExportDeclaration, |
| 257 | + TSNeverKeyword as BabelNodeTSNeverKeyword, |
| 258 | + TSNonNullExpression as BabelNodeTSNonNullExpression, |
| 259 | + TSNullKeyword as BabelNodeTSNullKeyword, |
| 260 | + TSNumberKeyword as BabelNodeTSNumberKeyword, |
| 261 | + TSObjectKeyword as BabelNodeTSObjectKeyword, |
| 262 | + TSOptionalType as BabelNodeTSOptionalType, |
| 263 | + TSParameterProperty as BabelNodeTSParameterProperty, |
| 264 | + TSParenthesizedType as BabelNodeTSParenthesizedType, |
| 265 | + TSPropertySignature as BabelNodeTSPropertySignature, |
| 266 | + TSQualifiedName as BabelNodeTSQualifiedName, |
| 267 | + TSRestType as BabelNodeTSRestType, |
| 268 | + TSSatisfiesExpression as BabelNodeTSSatisfiesExpression, |
| 269 | + TSStringKeyword as BabelNodeTSStringKeyword, |
| 270 | + TSSymbolKeyword as BabelNodeTSSymbolKeyword, |
| 271 | + TSTemplateLiteralType as BabelNodeTSTemplateLiteralType, |
| 272 | + TSThisType as BabelNodeTSThisType, |
| 273 | + TSTupleType as BabelNodeTSTupleType, |
| 274 | + TSType as BabelNodeTSType, |
| 275 | + TSTypeAliasDeclaration as BabelNodeTSTypeAliasDeclaration, |
| 276 | + TSTypeAnnotation as BabelNodeTSTypeAnnotation, |
| 277 | + TSTypeAssertion as BabelNodeTSTypeAssertion, |
| 278 | + TSTypeElement as BabelNodeTSTypeElement, |
| 279 | + TSTypeLiteral as BabelNodeTSTypeLiteral, |
| 280 | + TSTypeOperator as BabelNodeTSTypeOperator, |
| 281 | + TSTypeParameter as BabelNodeTSTypeParameter, |
| 282 | + TSTypeParameterDeclaration as BabelNodeTSTypeParameterDeclaration, |
| 283 | + TSTypeParameterInstantiation as BabelNodeTSTypeParameterInstantiation, |
| 284 | + TSTypePredicate as BabelNodeTSTypePredicate, |
| 285 | + TSTypeQuery as BabelNodeTSTypeQuery, |
| 286 | + TSTypeReference as BabelNodeTSTypeReference, |
| 287 | + TSUndefinedKeyword as BabelNodeTSUndefinedKeyword, |
| 288 | + TSUnionType as BabelNodeTSUnionType, |
| 289 | + TSUnknownKeyword as BabelNodeTSUnknownKeyword, |
| 290 | + TSVoidKeyword as BabelNodeTSVoidKeyword, |
| 291 | + TaggedTemplateExpression as BabelNodeTaggedTemplateExpression, |
| 292 | + TemplateElement as BabelNodeTemplateElement, |
| 293 | + TemplateLiteral as BabelNodeTemplateLiteral, |
| 294 | + Terminatorless as BabelNodeTerminatorless, |
| 295 | + ThisExpression as BabelNodeThisExpression, |
| 296 | + ThisTypeAnnotation as BabelNodeThisTypeAnnotation, |
| 297 | + ThrowStatement as BabelNodeThrowStatement, |
| 298 | + TopicReference as BabelNodeTopicReference, |
| 299 | + TryStatement as BabelNodeTryStatement, |
| 300 | + TupleExpression as BabelNodeTupleExpression, |
| 301 | + TupleTypeAnnotation as BabelNodeTupleTypeAnnotation, |
| 302 | + TypeAlias as BabelNodeTypeAlias, |
| 303 | + TypeAnnotation as BabelNodeTypeAnnotation, |
| 304 | + TypeCastExpression as BabelNodeTypeCastExpression, |
| 305 | + TypeParameter as BabelNodeTypeParameter, |
| 306 | + TypeParameterDeclaration as BabelNodeTypeParameterDeclaration, |
| 307 | + TypeParameterInstantiation as BabelNodeTypeParameterInstantiation, |
| 308 | + TypeScript as BabelNodeTypeScript, |
| 309 | + TypeofTypeAnnotation as BabelNodeTypeofTypeAnnotation, |
| 310 | + UnaryExpression as BabelNodeUnaryExpression, |
| 311 | + UnaryLike as BabelNodeUnaryLike, |
| 312 | + UnionTypeAnnotation as BabelNodeUnionTypeAnnotation, |
| 313 | + UpdateExpression as BabelNodeUpdateExpression, |
| 314 | + UserWhitespacable as BabelNodeUserWhitespacable, |
| 315 | + V8IntrinsicIdentifier as BabelNodeV8IntrinsicIdentifier, |
| 316 | + VariableDeclaration as BabelNodeVariableDeclaration, |
| 317 | + VariableDeclarator as BabelNodeVariableDeclarator, |
| 318 | + Variance as BabelNodeVariance, |
| 319 | + VoidPattern as BabelNodeVoidPattern, |
| 320 | + VoidTypeAnnotation as BabelNodeVoidTypeAnnotation, |
| 321 | + While as BabelNodeWhile, |
| 322 | + WhileStatement as BabelNodeWhileStatement, |
| 323 | + WithStatement as BabelNodeWithStatement, |
| 324 | + YieldExpression as BabelNodeYieldExpression, |
| 325 | + } from '@babel/types'; |
| 326 | + // END GENERATED BABEL TYPE IMPORTS |
| 327 | + |
18 | 328 | declare export type TraverseOptions<TState> = { |
19 | 329 | ...Visitor<TState>, |
20 | 330 | scope?: Scope, |
|
0 commit comments