首页 / JAVASCRIPT / js语法树节点类型
js语法树节点类型
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了js语法树节点类型,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含5653字,纯文字阅读大概需要9分钟。
内容图文
![js语法树节点类型](/upload/InfoBanner/zyjiaocheng/1087/1d43bd9135684cb09ad09a34e234fff7.jpg)
// js语法树节点类型-babylon@6.18 const typeMap= { ‘Literal‘:function (node) {}, ‘ExpressionStatement‘:function (node) {}, ‘Property‘:function (node) {}, ‘DirectiveLiteral‘:function (node) {}, ‘Directive‘:function (node) {}, ‘Program‘:function (node) {}, ‘File‘:function (node) {}, ‘Decorator‘:function (node) {}, ‘BreakStatement‘:function (node) {}, ‘ContinueStatement‘:function (node) {}, ‘DebuggerStatement‘:function (node) {}, ‘DoWhileStatement‘:function (node) {}, ‘VariableDeclaration‘:function (node) {}, ‘IfStatement‘:function (node) {}, ‘ReturnStatement‘:function (node) {}, ‘SwitchCase‘:function (node) {}, ‘SwitchStatement‘:function (node) {}, ‘ThrowStatement‘:function (node) {}, ‘CatchClause‘:function (node) {}, ‘TryStatement‘:function (node) {}, ‘WhileStatement‘:function (node) {}, ‘WithStatement‘:function (node) {}, ‘EmptyStatement‘:function (node) {}, ‘LabeledStatement‘:function (node) {}, ‘BlockStatement‘:function (node) {}, ‘ForStatement‘:function (node) {}, ‘VariableDeclarator‘:function (node) {}, ‘FunctionDeclaration‘:function (node) {}, ‘FunctionExpression‘:function (node) {}, ‘ClassDeclaration‘:function (node) {}, ‘ClassExpression‘:function (node) {}, ‘ClassBody‘:function (node) {}, ‘ClassProperty‘:function (node) {}, ‘ClassMethod‘:function (node) {}, ‘ExportNamespaceSpecifier‘:function (node) {}, ‘ExportAllDeclaration‘:function (node) {}, ‘ExportDefaultSpecifier‘:function (node) {}, ‘ExportDefaultDeclaration‘:function (node) {}, ‘ExportNamedDeclaration‘:function (node) {}, ‘ExportSpecifier‘:function (node) {}, ‘ImportDeclaration‘:function (node) {}, ‘ImportNamespaceSpecifier‘:function (node) {}, ‘ImportSpecifier‘:function (node) {}, ‘ImportDefaultSpecifier‘:function (node) {}, ‘SpreadElement‘:function (node) {}, ‘RestElement‘:function (node) {}, ‘ArrayPattern‘:function (node) {}, ‘AssignmentPattern‘:function (node) {}, ‘SequenceExpression‘:function (node) {}, ‘AssignmentExpression‘:function (node) {}, ‘ConditionalExpression‘:function (node) {}, ‘LogicalExpression‘:function (node) {}, ‘BinaryExpression‘:function (node) {}, ‘UpdateExpression‘:function (node) {}, ‘UnaryExpression‘:function (node) {}, ‘BindExpression‘:function (node) {}, ‘MemberExpression‘:function (node) {}, ‘Identifier‘:function (node) {}, ‘CallExpression‘:function (node) {}, ‘TaggedTemplateExpression‘:function (node) {}, ‘Super‘:function (node) {}, ‘Import‘:function (node) {}, ‘ThisExpression‘:function (node) {}, ‘DoExpression‘:function (node) {}, ‘NullLiteral‘:function (node) {}, ‘BooleanLiteral‘:function (node) {}, ‘ArrayExpression‘:function (node) {}, ‘StringLiteral‘:function (node) {}, ‘NumericLiteral‘:function (node) {}, ‘RegExpLiteral‘:function (node) {}, ‘MetaProperty‘:function (node) {}, ‘NewExpression‘:function (node) {}, ‘TemplateElement‘:function (node) {}, ‘TemplateLiteral‘:function (node) {}, ‘ObjectPattern‘:function (node) {}, ‘ObjectExpression‘:function (node) {}, ‘ObjectMethod‘:function (node) {}, ‘ObjectProperty‘:function (node) {}, ‘ArrowFunctionExpression‘:function (node) {}, ‘AwaitExpression‘:function (node) {}, ‘YieldExpression‘:function (node) {}, ‘MethodDefinition‘:function (node) {}, ‘DeclaredPredicate‘:function (node) {}, ‘InferredPredicate‘:function (node) {}, ‘DeclareClass‘:function (node) {}, ‘TypeAnnotation‘:function (node) {}, ‘DeclareFunction‘:function (node) {}, ‘DeclareExportDeclaration‘:function (node) {}, ‘DeclareVariable‘:function (node) {}, ‘DeclareModule‘:function (node) {}, ‘DeclareModuleExports‘:function (node) {}, ‘DeclareTypeAlias‘:function (node) {}, ‘DeclareOpaqueType‘:function (node) {}, ‘DeclareInterface‘:function (node) {}, ‘InterfaceExtends‘:function (node) {}, ‘InterfaceDeclaration‘:function (node) {}, ‘TypeAlias‘:function (node) {}, ‘OpaqueType‘:function (node) {}, ‘TypeParameterDeclaration‘:function (node) {}, ‘TypeParameterInstantiation‘:function (node) {}, ‘ObjectTypeIndexer‘:function (node) {}, ‘ObjectTypeProperty‘:function (node) {}, ‘ObjectTypeCallProperty‘:function (node) {}, ‘ObjectTypeSpreadProperty‘:function (node) {}, ‘ObjectTypeAnnotation‘:function (node) {}, ‘QualifiedTypeIdentifier‘:function (node) {}, ‘GenericTypeAnnotation‘:function (node) {}, ‘TypeofTypeAnnotation‘:function (node) {}, ‘TupleTypeAnnotation‘:function (node) {}, ‘FunctionTypeParam‘:function (node) {}, ‘AnyTypeAnnotation‘:function (node) {}, ‘VoidTypeAnnotation‘:function (node) {}, ‘BooleanTypeAnnotation‘:function (node) {}, ‘MixedTypeAnnotation‘:function (node) {}, ‘EmptyTypeAnnotation‘:function (node) {}, ‘NumberTypeAnnotation‘:function (node) {}, ‘StringTypeAnnotation‘:function (node) {}, ‘FunctionTypeAnnotation‘:function (node) {}, ‘StringLiteralTypeAnnotation‘:function (node) {}, ‘BooleanLiteralTypeAnnotation‘:function (node) {}, ‘NullLiteralTypeAnnotation‘:function (node) {}, ‘NumericLiteralTypeAnnotation‘:function (node) {}, ‘ThisTypeAnnotation‘:function (node) {}, ‘ExistentialTypeParam‘:function (node) {}, ‘ArrayTypeAnnotation‘:function (node) {}, ‘NullableTypeAnnotation‘:function (node) {}, ‘IntersectionTypeAnnotation‘:function (node) {}, ‘UnionTypeAnnotation‘:function (node) {}, ‘TypeCastExpression‘:function (node) {}, ‘ClassImplements‘:function (node) {}, ‘JSXEmptyExpression‘:function (node) {}, ‘JSXSpreadChild‘:function (node) {}, ‘JSXExpressionContainer‘:function (node) {}, ‘JSXSpreadAttribute‘:function (node) {}, ‘JSXAttribute‘:function (node) {}, ‘JSXIdentifier‘:function (node) {}, ‘JSXNamespacedName‘:function (node) {}, ‘JSXMemberExpression‘:function (node) {}, ‘JSXOpeningElement‘:function (node) {}, ‘JSXClosingElement‘:function (node) {}, ‘JSXElement‘:function (node) {}, }
原文:https://www.cnblogs.com/caoke/p/11143747.html
内容总结
以上是互联网集市为您收集整理的js语法树节点类型全部内容,希望文章能够帮你解决js语法树节点类型所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。