You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

visitor.d.ts 25KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  1. import { NodePath } from "../lib/node-path";
  2. import { Context } from "../lib/path-visitor";
  3. import { namedTypes } from "./namedTypes";
  4. export interface Visitor<M = {}> {
  5. visitPrintable?(this: Context & M, path: NodePath<namedTypes.Printable>): any;
  6. visitSourceLocation?(this: Context & M, path: NodePath<namedTypes.SourceLocation>): any;
  7. visitNode?(this: Context & M, path: NodePath<namedTypes.Node>): any;
  8. visitComment?(this: Context & M, path: NodePath<namedTypes.Comment>): any;
  9. visitPosition?(this: Context & M, path: NodePath<namedTypes.Position>): any;
  10. visitFile?(this: Context & M, path: NodePath<namedTypes.File>): any;
  11. visitProgram?(this: Context & M, path: NodePath<namedTypes.Program>): any;
  12. visitStatement?(this: Context & M, path: NodePath<namedTypes.Statement>): any;
  13. visitFunction?(this: Context & M, path: NodePath<namedTypes.Function>): any;
  14. visitExpression?(this: Context & M, path: NodePath<namedTypes.Expression>): any;
  15. visitPattern?(this: Context & M, path: NodePath<namedTypes.Pattern>): any;
  16. visitIdentifier?(this: Context & M, path: NodePath<namedTypes.Identifier>): any;
  17. visitBlockStatement?(this: Context & M, path: NodePath<namedTypes.BlockStatement>): any;
  18. visitEmptyStatement?(this: Context & M, path: NodePath<namedTypes.EmptyStatement>): any;
  19. visitExpressionStatement?(this: Context & M, path: NodePath<namedTypes.ExpressionStatement>): any;
  20. visitIfStatement?(this: Context & M, path: NodePath<namedTypes.IfStatement>): any;
  21. visitLabeledStatement?(this: Context & M, path: NodePath<namedTypes.LabeledStatement>): any;
  22. visitBreakStatement?(this: Context & M, path: NodePath<namedTypes.BreakStatement>): any;
  23. visitContinueStatement?(this: Context & M, path: NodePath<namedTypes.ContinueStatement>): any;
  24. visitWithStatement?(this: Context & M, path: NodePath<namedTypes.WithStatement>): any;
  25. visitSwitchStatement?(this: Context & M, path: NodePath<namedTypes.SwitchStatement>): any;
  26. visitSwitchCase?(this: Context & M, path: NodePath<namedTypes.SwitchCase>): any;
  27. visitReturnStatement?(this: Context & M, path: NodePath<namedTypes.ReturnStatement>): any;
  28. visitThrowStatement?(this: Context & M, path: NodePath<namedTypes.ThrowStatement>): any;
  29. visitTryStatement?(this: Context & M, path: NodePath<namedTypes.TryStatement>): any;
  30. visitCatchClause?(this: Context & M, path: NodePath<namedTypes.CatchClause>): any;
  31. visitWhileStatement?(this: Context & M, path: NodePath<namedTypes.WhileStatement>): any;
  32. visitDoWhileStatement?(this: Context & M, path: NodePath<namedTypes.DoWhileStatement>): any;
  33. visitForStatement?(this: Context & M, path: NodePath<namedTypes.ForStatement>): any;
  34. visitDeclaration?(this: Context & M, path: NodePath<namedTypes.Declaration>): any;
  35. visitVariableDeclaration?(this: Context & M, path: NodePath<namedTypes.VariableDeclaration>): any;
  36. visitForInStatement?(this: Context & M, path: NodePath<namedTypes.ForInStatement>): any;
  37. visitDebuggerStatement?(this: Context & M, path: NodePath<namedTypes.DebuggerStatement>): any;
  38. visitFunctionDeclaration?(this: Context & M, path: NodePath<namedTypes.FunctionDeclaration>): any;
  39. visitFunctionExpression?(this: Context & M, path: NodePath<namedTypes.FunctionExpression>): any;
  40. visitVariableDeclarator?(this: Context & M, path: NodePath<namedTypes.VariableDeclarator>): any;
  41. visitThisExpression?(this: Context & M, path: NodePath<namedTypes.ThisExpression>): any;
  42. visitArrayExpression?(this: Context & M, path: NodePath<namedTypes.ArrayExpression>): any;
  43. visitObjectExpression?(this: Context & M, path: NodePath<namedTypes.ObjectExpression>): any;
  44. visitProperty?(this: Context & M, path: NodePath<namedTypes.Property>): any;
  45. visitLiteral?(this: Context & M, path: NodePath<namedTypes.Literal>): any;
  46. visitSequenceExpression?(this: Context & M, path: NodePath<namedTypes.SequenceExpression>): any;
  47. visitUnaryExpression?(this: Context & M, path: NodePath<namedTypes.UnaryExpression>): any;
  48. visitBinaryExpression?(this: Context & M, path: NodePath<namedTypes.BinaryExpression>): any;
  49. visitAssignmentExpression?(this: Context & M, path: NodePath<namedTypes.AssignmentExpression>): any;
  50. visitMemberExpression?(this: Context & M, path: NodePath<namedTypes.MemberExpression>): any;
  51. visitUpdateExpression?(this: Context & M, path: NodePath<namedTypes.UpdateExpression>): any;
  52. visitLogicalExpression?(this: Context & M, path: NodePath<namedTypes.LogicalExpression>): any;
  53. visitConditionalExpression?(this: Context & M, path: NodePath<namedTypes.ConditionalExpression>): any;
  54. visitNewExpression?(this: Context & M, path: NodePath<namedTypes.NewExpression>): any;
  55. visitCallExpression?(this: Context & M, path: NodePath<namedTypes.CallExpression>): any;
  56. visitRestElement?(this: Context & M, path: NodePath<namedTypes.RestElement>): any;
  57. visitTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.TypeAnnotation>): any;
  58. visitTSTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.TSTypeAnnotation>): any;
  59. visitSpreadElementPattern?(this: Context & M, path: NodePath<namedTypes.SpreadElementPattern>): any;
  60. visitArrowFunctionExpression?(this: Context & M, path: NodePath<namedTypes.ArrowFunctionExpression>): any;
  61. visitForOfStatement?(this: Context & M, path: NodePath<namedTypes.ForOfStatement>): any;
  62. visitYieldExpression?(this: Context & M, path: NodePath<namedTypes.YieldExpression>): any;
  63. visitGeneratorExpression?(this: Context & M, path: NodePath<namedTypes.GeneratorExpression>): any;
  64. visitComprehensionBlock?(this: Context & M, path: NodePath<namedTypes.ComprehensionBlock>): any;
  65. visitComprehensionExpression?(this: Context & M, path: NodePath<namedTypes.ComprehensionExpression>): any;
  66. visitObjectProperty?(this: Context & M, path: NodePath<namedTypes.ObjectProperty>): any;
  67. visitPropertyPattern?(this: Context & M, path: NodePath<namedTypes.PropertyPattern>): any;
  68. visitObjectPattern?(this: Context & M, path: NodePath<namedTypes.ObjectPattern>): any;
  69. visitArrayPattern?(this: Context & M, path: NodePath<namedTypes.ArrayPattern>): any;
  70. visitMethodDefinition?(this: Context & M, path: NodePath<namedTypes.MethodDefinition>): any;
  71. visitSpreadElement?(this: Context & M, path: NodePath<namedTypes.SpreadElement>): any;
  72. visitAssignmentPattern?(this: Context & M, path: NodePath<namedTypes.AssignmentPattern>): any;
  73. visitClassPropertyDefinition?(this: Context & M, path: NodePath<namedTypes.ClassPropertyDefinition>): any;
  74. visitClassProperty?(this: Context & M, path: NodePath<namedTypes.ClassProperty>): any;
  75. visitClassBody?(this: Context & M, path: NodePath<namedTypes.ClassBody>): any;
  76. visitClassDeclaration?(this: Context & M, path: NodePath<namedTypes.ClassDeclaration>): any;
  77. visitClassExpression?(this: Context & M, path: NodePath<namedTypes.ClassExpression>): any;
  78. visitSpecifier?(this: Context & M, path: NodePath<namedTypes.Specifier>): any;
  79. visitModuleSpecifier?(this: Context & M, path: NodePath<namedTypes.ModuleSpecifier>): any;
  80. visitImportSpecifier?(this: Context & M, path: NodePath<namedTypes.ImportSpecifier>): any;
  81. visitImportNamespaceSpecifier?(this: Context & M, path: NodePath<namedTypes.ImportNamespaceSpecifier>): any;
  82. visitImportDefaultSpecifier?(this: Context & M, path: NodePath<namedTypes.ImportDefaultSpecifier>): any;
  83. visitImportDeclaration?(this: Context & M, path: NodePath<namedTypes.ImportDeclaration>): any;
  84. visitTaggedTemplateExpression?(this: Context & M, path: NodePath<namedTypes.TaggedTemplateExpression>): any;
  85. visitTemplateLiteral?(this: Context & M, path: NodePath<namedTypes.TemplateLiteral>): any;
  86. visitTemplateElement?(this: Context & M, path: NodePath<namedTypes.TemplateElement>): any;
  87. visitSpreadProperty?(this: Context & M, path: NodePath<namedTypes.SpreadProperty>): any;
  88. visitSpreadPropertyPattern?(this: Context & M, path: NodePath<namedTypes.SpreadPropertyPattern>): any;
  89. visitAwaitExpression?(this: Context & M, path: NodePath<namedTypes.AwaitExpression>): any;
  90. visitImportExpression?(this: Context & M, path: NodePath<namedTypes.ImportExpression>): any;
  91. visitJSXAttribute?(this: Context & M, path: NodePath<namedTypes.JSXAttribute>): any;
  92. visitJSXIdentifier?(this: Context & M, path: NodePath<namedTypes.JSXIdentifier>): any;
  93. visitJSXNamespacedName?(this: Context & M, path: NodePath<namedTypes.JSXNamespacedName>): any;
  94. visitJSXExpressionContainer?(this: Context & M, path: NodePath<namedTypes.JSXExpressionContainer>): any;
  95. visitJSXMemberExpression?(this: Context & M, path: NodePath<namedTypes.JSXMemberExpression>): any;
  96. visitJSXSpreadAttribute?(this: Context & M, path: NodePath<namedTypes.JSXSpreadAttribute>): any;
  97. visitJSXElement?(this: Context & M, path: NodePath<namedTypes.JSXElement>): any;
  98. visitJSXOpeningElement?(this: Context & M, path: NodePath<namedTypes.JSXOpeningElement>): any;
  99. visitJSXClosingElement?(this: Context & M, path: NodePath<namedTypes.JSXClosingElement>): any;
  100. visitJSXFragment?(this: Context & M, path: NodePath<namedTypes.JSXFragment>): any;
  101. visitJSXText?(this: Context & M, path: NodePath<namedTypes.JSXText>): any;
  102. visitJSXOpeningFragment?(this: Context & M, path: NodePath<namedTypes.JSXOpeningFragment>): any;
  103. visitJSXClosingFragment?(this: Context & M, path: NodePath<namedTypes.JSXClosingFragment>): any;
  104. visitJSXEmptyExpression?(this: Context & M, path: NodePath<namedTypes.JSXEmptyExpression>): any;
  105. visitJSXSpreadChild?(this: Context & M, path: NodePath<namedTypes.JSXSpreadChild>): any;
  106. visitTypeParameterDeclaration?(this: Context & M, path: NodePath<namedTypes.TypeParameterDeclaration>): any;
  107. visitTSTypeParameterDeclaration?(this: Context & M, path: NodePath<namedTypes.TSTypeParameterDeclaration>): any;
  108. visitTypeParameterInstantiation?(this: Context & M, path: NodePath<namedTypes.TypeParameterInstantiation>): any;
  109. visitTSTypeParameterInstantiation?(this: Context & M, path: NodePath<namedTypes.TSTypeParameterInstantiation>): any;
  110. visitClassImplements?(this: Context & M, path: NodePath<namedTypes.ClassImplements>): any;
  111. visitTSType?(this: Context & M, path: NodePath<namedTypes.TSType>): any;
  112. visitTSHasOptionalTypeParameterInstantiation?(this: Context & M, path: NodePath<namedTypes.TSHasOptionalTypeParameterInstantiation>): any;
  113. visitTSExpressionWithTypeArguments?(this: Context & M, path: NodePath<namedTypes.TSExpressionWithTypeArguments>): any;
  114. visitFlow?(this: Context & M, path: NodePath<namedTypes.Flow>): any;
  115. visitFlowType?(this: Context & M, path: NodePath<namedTypes.FlowType>): any;
  116. visitAnyTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.AnyTypeAnnotation>): any;
  117. visitEmptyTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.EmptyTypeAnnotation>): any;
  118. visitMixedTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.MixedTypeAnnotation>): any;
  119. visitVoidTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.VoidTypeAnnotation>): any;
  120. visitNumberTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.NumberTypeAnnotation>): any;
  121. visitNumberLiteralTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.NumberLiteralTypeAnnotation>): any;
  122. visitNumericLiteralTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.NumericLiteralTypeAnnotation>): any;
  123. visitStringTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.StringTypeAnnotation>): any;
  124. visitStringLiteralTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.StringLiteralTypeAnnotation>): any;
  125. visitBooleanTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.BooleanTypeAnnotation>): any;
  126. visitBooleanLiteralTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.BooleanLiteralTypeAnnotation>): any;
  127. visitNullableTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.NullableTypeAnnotation>): any;
  128. visitNullLiteralTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.NullLiteralTypeAnnotation>): any;
  129. visitNullTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.NullTypeAnnotation>): any;
  130. visitThisTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.ThisTypeAnnotation>): any;
  131. visitExistsTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.ExistsTypeAnnotation>): any;
  132. visitExistentialTypeParam?(this: Context & M, path: NodePath<namedTypes.ExistentialTypeParam>): any;
  133. visitFunctionTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.FunctionTypeAnnotation>): any;
  134. visitFunctionTypeParam?(this: Context & M, path: NodePath<namedTypes.FunctionTypeParam>): any;
  135. visitArrayTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.ArrayTypeAnnotation>): any;
  136. visitObjectTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.ObjectTypeAnnotation>): any;
  137. visitObjectTypeProperty?(this: Context & M, path: NodePath<namedTypes.ObjectTypeProperty>): any;
  138. visitObjectTypeSpreadProperty?(this: Context & M, path: NodePath<namedTypes.ObjectTypeSpreadProperty>): any;
  139. visitObjectTypeIndexer?(this: Context & M, path: NodePath<namedTypes.ObjectTypeIndexer>): any;
  140. visitObjectTypeCallProperty?(this: Context & M, path: NodePath<namedTypes.ObjectTypeCallProperty>): any;
  141. visitObjectTypeInternalSlot?(this: Context & M, path: NodePath<namedTypes.ObjectTypeInternalSlot>): any;
  142. visitVariance?(this: Context & M, path: NodePath<namedTypes.Variance>): any;
  143. visitQualifiedTypeIdentifier?(this: Context & M, path: NodePath<namedTypes.QualifiedTypeIdentifier>): any;
  144. visitGenericTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.GenericTypeAnnotation>): any;
  145. visitMemberTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.MemberTypeAnnotation>): any;
  146. visitUnionTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.UnionTypeAnnotation>): any;
  147. visitIntersectionTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.IntersectionTypeAnnotation>): any;
  148. visitTypeofTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.TypeofTypeAnnotation>): any;
  149. visitTypeParameter?(this: Context & M, path: NodePath<namedTypes.TypeParameter>): any;
  150. visitInterfaceTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.InterfaceTypeAnnotation>): any;
  151. visitInterfaceExtends?(this: Context & M, path: NodePath<namedTypes.InterfaceExtends>): any;
  152. visitInterfaceDeclaration?(this: Context & M, path: NodePath<namedTypes.InterfaceDeclaration>): any;
  153. visitDeclareInterface?(this: Context & M, path: NodePath<namedTypes.DeclareInterface>): any;
  154. visitTypeAlias?(this: Context & M, path: NodePath<namedTypes.TypeAlias>): any;
  155. visitOpaqueType?(this: Context & M, path: NodePath<namedTypes.OpaqueType>): any;
  156. visitDeclareTypeAlias?(this: Context & M, path: NodePath<namedTypes.DeclareTypeAlias>): any;
  157. visitDeclareOpaqueType?(this: Context & M, path: NodePath<namedTypes.DeclareOpaqueType>): any;
  158. visitTypeCastExpression?(this: Context & M, path: NodePath<namedTypes.TypeCastExpression>): any;
  159. visitTupleTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.TupleTypeAnnotation>): any;
  160. visitDeclareVariable?(this: Context & M, path: NodePath<namedTypes.DeclareVariable>): any;
  161. visitDeclareFunction?(this: Context & M, path: NodePath<namedTypes.DeclareFunction>): any;
  162. visitDeclareClass?(this: Context & M, path: NodePath<namedTypes.DeclareClass>): any;
  163. visitDeclareModule?(this: Context & M, path: NodePath<namedTypes.DeclareModule>): any;
  164. visitDeclareModuleExports?(this: Context & M, path: NodePath<namedTypes.DeclareModuleExports>): any;
  165. visitDeclareExportDeclaration?(this: Context & M, path: NodePath<namedTypes.DeclareExportDeclaration>): any;
  166. visitExportSpecifier?(this: Context & M, path: NodePath<namedTypes.ExportSpecifier>): any;
  167. visitExportBatchSpecifier?(this: Context & M, path: NodePath<namedTypes.ExportBatchSpecifier>): any;
  168. visitDeclareExportAllDeclaration?(this: Context & M, path: NodePath<namedTypes.DeclareExportAllDeclaration>): any;
  169. visitFlowPredicate?(this: Context & M, path: NodePath<namedTypes.FlowPredicate>): any;
  170. visitInferredPredicate?(this: Context & M, path: NodePath<namedTypes.InferredPredicate>): any;
  171. visitDeclaredPredicate?(this: Context & M, path: NodePath<namedTypes.DeclaredPredicate>): any;
  172. visitExportDeclaration?(this: Context & M, path: NodePath<namedTypes.ExportDeclaration>): any;
  173. visitBlock?(this: Context & M, path: NodePath<namedTypes.Block>): any;
  174. visitLine?(this: Context & M, path: NodePath<namedTypes.Line>): any;
  175. visitNoop?(this: Context & M, path: NodePath<namedTypes.Noop>): any;
  176. visitDoExpression?(this: Context & M, path: NodePath<namedTypes.DoExpression>): any;
  177. visitSuper?(this: Context & M, path: NodePath<namedTypes.Super>): any;
  178. visitBindExpression?(this: Context & M, path: NodePath<namedTypes.BindExpression>): any;
  179. visitDecorator?(this: Context & M, path: NodePath<namedTypes.Decorator>): any;
  180. visitMetaProperty?(this: Context & M, path: NodePath<namedTypes.MetaProperty>): any;
  181. visitParenthesizedExpression?(this: Context & M, path: NodePath<namedTypes.ParenthesizedExpression>): any;
  182. visitExportDefaultDeclaration?(this: Context & M, path: NodePath<namedTypes.ExportDefaultDeclaration>): any;
  183. visitExportNamedDeclaration?(this: Context & M, path: NodePath<namedTypes.ExportNamedDeclaration>): any;
  184. visitExportNamespaceSpecifier?(this: Context & M, path: NodePath<namedTypes.ExportNamespaceSpecifier>): any;
  185. visitExportDefaultSpecifier?(this: Context & M, path: NodePath<namedTypes.ExportDefaultSpecifier>): any;
  186. visitExportAllDeclaration?(this: Context & M, path: NodePath<namedTypes.ExportAllDeclaration>): any;
  187. visitCommentBlock?(this: Context & M, path: NodePath<namedTypes.CommentBlock>): any;
  188. visitCommentLine?(this: Context & M, path: NodePath<namedTypes.CommentLine>): any;
  189. visitDirective?(this: Context & M, path: NodePath<namedTypes.Directive>): any;
  190. visitDirectiveLiteral?(this: Context & M, path: NodePath<namedTypes.DirectiveLiteral>): any;
  191. visitInterpreterDirective?(this: Context & M, path: NodePath<namedTypes.InterpreterDirective>): any;
  192. visitStringLiteral?(this: Context & M, path: NodePath<namedTypes.StringLiteral>): any;
  193. visitNumericLiteral?(this: Context & M, path: NodePath<namedTypes.NumericLiteral>): any;
  194. visitBigIntLiteral?(this: Context & M, path: NodePath<namedTypes.BigIntLiteral>): any;
  195. visitNullLiteral?(this: Context & M, path: NodePath<namedTypes.NullLiteral>): any;
  196. visitBooleanLiteral?(this: Context & M, path: NodePath<namedTypes.BooleanLiteral>): any;
  197. visitRegExpLiteral?(this: Context & M, path: NodePath<namedTypes.RegExpLiteral>): any;
  198. visitObjectMethod?(this: Context & M, path: NodePath<namedTypes.ObjectMethod>): any;
  199. visitClassPrivateProperty?(this: Context & M, path: NodePath<namedTypes.ClassPrivateProperty>): any;
  200. visitClassMethod?(this: Context & M, path: NodePath<namedTypes.ClassMethod>): any;
  201. visitClassPrivateMethod?(this: Context & M, path: NodePath<namedTypes.ClassPrivateMethod>): any;
  202. visitPrivateName?(this: Context & M, path: NodePath<namedTypes.PrivateName>): any;
  203. visitRestProperty?(this: Context & M, path: NodePath<namedTypes.RestProperty>): any;
  204. visitForAwaitStatement?(this: Context & M, path: NodePath<namedTypes.ForAwaitStatement>): any;
  205. visitImport?(this: Context & M, path: NodePath<namedTypes.Import>): any;
  206. visitTSQualifiedName?(this: Context & M, path: NodePath<namedTypes.TSQualifiedName>): any;
  207. visitTSTypeReference?(this: Context & M, path: NodePath<namedTypes.TSTypeReference>): any;
  208. visitTSHasOptionalTypeParameters?(this: Context & M, path: NodePath<namedTypes.TSHasOptionalTypeParameters>): any;
  209. visitTSHasOptionalTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.TSHasOptionalTypeAnnotation>): any;
  210. visitTSAsExpression?(this: Context & M, path: NodePath<namedTypes.TSAsExpression>): any;
  211. visitTSNonNullExpression?(this: Context & M, path: NodePath<namedTypes.TSNonNullExpression>): any;
  212. visitTSAnyKeyword?(this: Context & M, path: NodePath<namedTypes.TSAnyKeyword>): any;
  213. visitTSBigIntKeyword?(this: Context & M, path: NodePath<namedTypes.TSBigIntKeyword>): any;
  214. visitTSBooleanKeyword?(this: Context & M, path: NodePath<namedTypes.TSBooleanKeyword>): any;
  215. visitTSNeverKeyword?(this: Context & M, path: NodePath<namedTypes.TSNeverKeyword>): any;
  216. visitTSNullKeyword?(this: Context & M, path: NodePath<namedTypes.TSNullKeyword>): any;
  217. visitTSNumberKeyword?(this: Context & M, path: NodePath<namedTypes.TSNumberKeyword>): any;
  218. visitTSObjectKeyword?(this: Context & M, path: NodePath<namedTypes.TSObjectKeyword>): any;
  219. visitTSStringKeyword?(this: Context & M, path: NodePath<namedTypes.TSStringKeyword>): any;
  220. visitTSSymbolKeyword?(this: Context & M, path: NodePath<namedTypes.TSSymbolKeyword>): any;
  221. visitTSUndefinedKeyword?(this: Context & M, path: NodePath<namedTypes.TSUndefinedKeyword>): any;
  222. visitTSUnknownKeyword?(this: Context & M, path: NodePath<namedTypes.TSUnknownKeyword>): any;
  223. visitTSVoidKeyword?(this: Context & M, path: NodePath<namedTypes.TSVoidKeyword>): any;
  224. visitTSThisType?(this: Context & M, path: NodePath<namedTypes.TSThisType>): any;
  225. visitTSArrayType?(this: Context & M, path: NodePath<namedTypes.TSArrayType>): any;
  226. visitTSLiteralType?(this: Context & M, path: NodePath<namedTypes.TSLiteralType>): any;
  227. visitTSUnionType?(this: Context & M, path: NodePath<namedTypes.TSUnionType>): any;
  228. visitTSIntersectionType?(this: Context & M, path: NodePath<namedTypes.TSIntersectionType>): any;
  229. visitTSConditionalType?(this: Context & M, path: NodePath<namedTypes.TSConditionalType>): any;
  230. visitTSInferType?(this: Context & M, path: NodePath<namedTypes.TSInferType>): any;
  231. visitTSTypeParameter?(this: Context & M, path: NodePath<namedTypes.TSTypeParameter>): any;
  232. visitTSParenthesizedType?(this: Context & M, path: NodePath<namedTypes.TSParenthesizedType>): any;
  233. visitTSFunctionType?(this: Context & M, path: NodePath<namedTypes.TSFunctionType>): any;
  234. visitTSConstructorType?(this: Context & M, path: NodePath<namedTypes.TSConstructorType>): any;
  235. visitTSDeclareFunction?(this: Context & M, path: NodePath<namedTypes.TSDeclareFunction>): any;
  236. visitTSDeclareMethod?(this: Context & M, path: NodePath<namedTypes.TSDeclareMethod>): any;
  237. visitTSMappedType?(this: Context & M, path: NodePath<namedTypes.TSMappedType>): any;
  238. visitTSTupleType?(this: Context & M, path: NodePath<namedTypes.TSTupleType>): any;
  239. visitTSRestType?(this: Context & M, path: NodePath<namedTypes.TSRestType>): any;
  240. visitTSOptionalType?(this: Context & M, path: NodePath<namedTypes.TSOptionalType>): any;
  241. visitTSIndexedAccessType?(this: Context & M, path: NodePath<namedTypes.TSIndexedAccessType>): any;
  242. visitTSTypeOperator?(this: Context & M, path: NodePath<namedTypes.TSTypeOperator>): any;
  243. visitTSIndexSignature?(this: Context & M, path: NodePath<namedTypes.TSIndexSignature>): any;
  244. visitTSPropertySignature?(this: Context & M, path: NodePath<namedTypes.TSPropertySignature>): any;
  245. visitTSMethodSignature?(this: Context & M, path: NodePath<namedTypes.TSMethodSignature>): any;
  246. visitTSTypePredicate?(this: Context & M, path: NodePath<namedTypes.TSTypePredicate>): any;
  247. visitTSCallSignatureDeclaration?(this: Context & M, path: NodePath<namedTypes.TSCallSignatureDeclaration>): any;
  248. visitTSConstructSignatureDeclaration?(this: Context & M, path: NodePath<namedTypes.TSConstructSignatureDeclaration>): any;
  249. visitTSEnumMember?(this: Context & M, path: NodePath<namedTypes.TSEnumMember>): any;
  250. visitTSTypeQuery?(this: Context & M, path: NodePath<namedTypes.TSTypeQuery>): any;
  251. visitTSImportType?(this: Context & M, path: NodePath<namedTypes.TSImportType>): any;
  252. visitTSTypeLiteral?(this: Context & M, path: NodePath<namedTypes.TSTypeLiteral>): any;
  253. visitTSTypeAssertion?(this: Context & M, path: NodePath<namedTypes.TSTypeAssertion>): any;
  254. visitTSEnumDeclaration?(this: Context & M, path: NodePath<namedTypes.TSEnumDeclaration>): any;
  255. visitTSTypeAliasDeclaration?(this: Context & M, path: NodePath<namedTypes.TSTypeAliasDeclaration>): any;
  256. visitTSModuleBlock?(this: Context & M, path: NodePath<namedTypes.TSModuleBlock>): any;
  257. visitTSModuleDeclaration?(this: Context & M, path: NodePath<namedTypes.TSModuleDeclaration>): any;
  258. visitTSImportEqualsDeclaration?(this: Context & M, path: NodePath<namedTypes.TSImportEqualsDeclaration>): any;
  259. visitTSExternalModuleReference?(this: Context & M, path: NodePath<namedTypes.TSExternalModuleReference>): any;
  260. visitTSExportAssignment?(this: Context & M, path: NodePath<namedTypes.TSExportAssignment>): any;
  261. visitTSNamespaceExportDeclaration?(this: Context & M, path: NodePath<namedTypes.TSNamespaceExportDeclaration>): any;
  262. visitTSInterfaceBody?(this: Context & M, path: NodePath<namedTypes.TSInterfaceBody>): any;
  263. visitTSInterfaceDeclaration?(this: Context & M, path: NodePath<namedTypes.TSInterfaceDeclaration>): any;
  264. visitTSParameterProperty?(this: Context & M, path: NodePath<namedTypes.TSParameterProperty>): any;
  265. visitOptionalMemberExpression?(this: Context & M, path: NodePath<namedTypes.OptionalMemberExpression>): any;
  266. visitOptionalCallExpression?(this: Context & M, path: NodePath<namedTypes.OptionalCallExpression>): any;
  267. }