Skip to content

⬅️ Back to Table of Contents

📄 ast-node-types

📊 Analysis Summary

Metric Count
🎯 Enums 1

📚 Table of Contents

🛠️ File Location:

📂 packages/ast-spec/src/ast-node-types.ts

Enums

enum AST_NODE_TYPES

Enum Code
export enum AST_NODE_TYPES {
  AccessorProperty = 'AccessorProperty',
  ArrayExpression = 'ArrayExpression',
  ArrayPattern = 'ArrayPattern',
  ArrowFunctionExpression = 'ArrowFunctionExpression',
  AssignmentExpression = 'AssignmentExpression',
  AssignmentPattern = 'AssignmentPattern',
  AwaitExpression = 'AwaitExpression',
  BinaryExpression = 'BinaryExpression',
  BlockStatement = 'BlockStatement',
  BreakStatement = 'BreakStatement',
  CallExpression = 'CallExpression',
  CatchClause = 'CatchClause',
  ChainExpression = 'ChainExpression',
  ClassBody = 'ClassBody',
  ClassDeclaration = 'ClassDeclaration',
  ClassExpression = 'ClassExpression',
  ConditionalExpression = 'ConditionalExpression',
  ContinueStatement = 'ContinueStatement',
  DebuggerStatement = 'DebuggerStatement',
  Decorator = 'Decorator',
  DoWhileStatement = 'DoWhileStatement',
  EmptyStatement = 'EmptyStatement',
  ExportAllDeclaration = 'ExportAllDeclaration',
  ExportDefaultDeclaration = 'ExportDefaultDeclaration',
  ExportNamedDeclaration = 'ExportNamedDeclaration',
  ExportSpecifier = 'ExportSpecifier',
  ExpressionStatement = 'ExpressionStatement',
  ForInStatement = 'ForInStatement',
  ForOfStatement = 'ForOfStatement',
  ForStatement = 'ForStatement',
  FunctionDeclaration = 'FunctionDeclaration',
  FunctionExpression = 'FunctionExpression',
  Identifier = 'Identifier',
  IfStatement = 'IfStatement',
  ImportAttribute = 'ImportAttribute',
  ImportDeclaration = 'ImportDeclaration',
  ImportDefaultSpecifier = 'ImportDefaultSpecifier',
  ImportExpression = 'ImportExpression',
  ImportNamespaceSpecifier = 'ImportNamespaceSpecifier',
  ImportSpecifier = 'ImportSpecifier',
  JSXAttribute = 'JSXAttribute',
  JSXClosingElement = 'JSXClosingElement',
  JSXClosingFragment = 'JSXClosingFragment',
  JSXElement = 'JSXElement',
  JSXEmptyExpression = 'JSXEmptyExpression',
  JSXExpressionContainer = 'JSXExpressionContainer',
  JSXFragment = 'JSXFragment',
  JSXIdentifier = 'JSXIdentifier',
  JSXMemberExpression = 'JSXMemberExpression',
  JSXNamespacedName = 'JSXNamespacedName',
  JSXOpeningElement = 'JSXOpeningElement',
  JSXOpeningFragment = 'JSXOpeningFragment',
  JSXSpreadAttribute = 'JSXSpreadAttribute',
  JSXSpreadChild = 'JSXSpreadChild',
  JSXText = 'JSXText',
  LabeledStatement = 'LabeledStatement',
  Literal = 'Literal',
  LogicalExpression = 'LogicalExpression',
  MemberExpression = 'MemberExpression',
  MetaProperty = 'MetaProperty',
  MethodDefinition = 'MethodDefinition',
  NewExpression = 'NewExpression',
  ObjectExpression = 'ObjectExpression',
  ObjectPattern = 'ObjectPattern',
  PrivateIdentifier = 'PrivateIdentifier',
  Program = 'Program',
  Property = 'Property',
  PropertyDefinition = 'PropertyDefinition',
  RestElement = 'RestElement',
  ReturnStatement = 'ReturnStatement',
  SequenceExpression = 'SequenceExpression',
  SpreadElement = 'SpreadElement',
  StaticBlock = 'StaticBlock',
  Super = 'Super',
  SwitchCase = 'SwitchCase',
  SwitchStatement = 'SwitchStatement',
  TaggedTemplateExpression = 'TaggedTemplateExpression',
  TemplateElement = 'TemplateElement',
  TemplateLiteral = 'TemplateLiteral',
  ThisExpression = 'ThisExpression',
  ThrowStatement = 'ThrowStatement',
  TryStatement = 'TryStatement',
  UnaryExpression = 'UnaryExpression',
  UpdateExpression = 'UpdateExpression',
  VariableDeclaration = 'VariableDeclaration',
  VariableDeclarator = 'VariableDeclarator',
  WhileStatement = 'WhileStatement',
  WithStatement = 'WithStatement',
  YieldExpression = 'YieldExpression',

  // TS_prefixed nodes
  TSAbstractAccessorProperty = 'TSAbstractAccessorProperty',
  TSAbstractKeyword = 'TSAbstractKeyword',
  TSAbstractMethodDefinition = 'TSAbstractMethodDefinition',
  TSAbstractPropertyDefinition = 'TSAbstractPropertyDefinition',
  TSAnyKeyword = 'TSAnyKeyword',
  TSArrayType = 'TSArrayType',
  TSAsExpression = 'TSAsExpression',
  TSAsyncKeyword = 'TSAsyncKeyword',
  TSBigIntKeyword = 'TSBigIntKeyword',
  TSBooleanKeyword = 'TSBooleanKeyword',
  TSCallSignatureDeclaration = 'TSCallSignatureDeclaration',
  TSClassImplements = 'TSClassImplements',
  TSConditionalType = 'TSConditionalType',
  TSConstructorType = 'TSConstructorType',
  TSConstructSignatureDeclaration = 'TSConstructSignatureDeclaration',
  TSDeclareFunction = 'TSDeclareFunction',
  TSDeclareKeyword = 'TSDeclareKeyword',
  TSEmptyBodyFunctionExpression = 'TSEmptyBodyFunctionExpression',
  TSEnumBody = 'TSEnumBody',
  TSEnumDeclaration = 'TSEnumDeclaration',
  TSEnumMember = 'TSEnumMember',
  TSExportAssignment = 'TSExportAssignment',
  TSExportKeyword = 'TSExportKeyword',
  TSExternalModuleReference = 'TSExternalModuleReference',
  TSFunctionType = 'TSFunctionType',
  TSImportEqualsDeclaration = 'TSImportEqualsDeclaration',
  TSImportType = 'TSImportType',
  TSIndexedAccessType = 'TSIndexedAccessType',
  TSIndexSignature = 'TSIndexSignature',
  TSInferType = 'TSInferType',
  TSInstantiationExpression = 'TSInstantiationExpression',
  TSInterfaceBody = 'TSInterfaceBody',
  TSInterfaceDeclaration = 'TSInterfaceDeclaration',
  TSInterfaceHeritage = 'TSInterfaceHeritage',
  TSIntersectionType = 'TSIntersectionType',
  TSIntrinsicKeyword = 'TSIntrinsicKeyword',
  TSLiteralType = 'TSLiteralType',
  TSMappedType = 'TSMappedType',
  TSMethodSignature = 'TSMethodSignature',
  TSModuleBlock = 'TSModuleBlock',
  TSModuleDeclaration = 'TSModuleDeclaration',
  TSNamedTupleMember = 'TSNamedTupleMember',
  TSNamespaceExportDeclaration = 'TSNamespaceExportDeclaration',
  TSNeverKeyword = 'TSNeverKeyword',
  TSNonNullExpression = 'TSNonNullExpression',
  TSNullKeyword = 'TSNullKeyword',
  TSNumberKeyword = 'TSNumberKeyword',
  TSObjectKeyword = 'TSObjectKeyword',
  TSOptionalType = 'TSOptionalType',
  TSParameterProperty = 'TSParameterProperty',
  TSPrivateKeyword = 'TSPrivateKeyword',
  TSPropertySignature = 'TSPropertySignature',
  TSProtectedKeyword = 'TSProtectedKeyword',
  TSPublicKeyword = 'TSPublicKeyword',
  TSQualifiedName = 'TSQualifiedName',
  TSReadonlyKeyword = 'TSReadonlyKeyword',
  TSRestType = 'TSRestType',
  TSSatisfiesExpression = 'TSSatisfiesExpression',
  TSStaticKeyword = 'TSStaticKeyword',
  TSStringKeyword = 'TSStringKeyword',
  TSSymbolKeyword = 'TSSymbolKeyword',
  TSTemplateLiteralType = 'TSTemplateLiteralType',
  TSThisType = 'TSThisType',
  TSTupleType = 'TSTupleType',
  TSTypeAliasDeclaration = 'TSTypeAliasDeclaration',
  TSTypeAnnotation = 'TSTypeAnnotation',
  TSTypeAssertion = 'TSTypeAssertion',
  TSTypeLiteral = 'TSTypeLiteral',
  TSTypeOperator = 'TSTypeOperator',
  TSTypeParameter = 'TSTypeParameter',
  TSTypeParameterDeclaration = 'TSTypeParameterDeclaration',
  TSTypeParameterInstantiation = 'TSTypeParameterInstantiation',
  TSTypePredicate = 'TSTypePredicate',
  TSTypeQuery = 'TSTypeQuery',
  TSTypeReference = 'TSTypeReference',
  TSUndefinedKeyword = 'TSUndefinedKeyword',
  TSUnionType = 'TSUnionType',
  TSUnknownKeyword = 'TSUnknownKeyword',
  TSVoidKeyword = 'TSVoidKeyword',
}

Members

Name Value Description
AccessorProperty AccessorProperty not shown
ArrayExpression ArrayExpression not shown
ArrayPattern ArrayPattern not shown
ArrowFunctionExpression ArrowFunctionExpression not shown
AssignmentExpression AssignmentExpression not shown
AssignmentPattern AssignmentPattern not shown
AwaitExpression AwaitExpression not shown
BinaryExpression BinaryExpression not shown
BlockStatement BlockStatement not shown
BreakStatement BreakStatement not shown
CallExpression CallExpression not shown
CatchClause CatchClause not shown
ChainExpression ChainExpression not shown
ClassBody ClassBody not shown
ClassDeclaration ClassDeclaration not shown
ClassExpression ClassExpression not shown
ConditionalExpression ConditionalExpression not shown
ContinueStatement ContinueStatement not shown
DebuggerStatement DebuggerStatement not shown
Decorator Decorator not shown
DoWhileStatement DoWhileStatement not shown
EmptyStatement EmptyStatement not shown
ExportAllDeclaration ExportAllDeclaration not shown
ExportDefaultDeclaration ExportDefaultDeclaration not shown
ExportNamedDeclaration ExportNamedDeclaration not shown
ExportSpecifier ExportSpecifier not shown
ExpressionStatement ExpressionStatement not shown
ForInStatement ForInStatement not shown
ForOfStatement ForOfStatement not shown
ForStatement ForStatement not shown
FunctionDeclaration FunctionDeclaration not shown
FunctionExpression FunctionExpression not shown
Identifier Identifier not shown
IfStatement IfStatement not shown
ImportAttribute ImportAttribute not shown
ImportDeclaration ImportDeclaration not shown
ImportDefaultSpecifier ImportDefaultSpecifier not shown
ImportExpression ImportExpression not shown
ImportNamespaceSpecifier ImportNamespaceSpecifier not shown
ImportSpecifier ImportSpecifier not shown
JSXAttribute JSXAttribute not shown
JSXClosingElement JSXClosingElement not shown
JSXClosingFragment JSXClosingFragment not shown
JSXElement JSXElement not shown
JSXEmptyExpression JSXEmptyExpression not shown
JSXExpressionContainer JSXExpressionContainer not shown
JSXFragment JSXFragment not shown
JSXIdentifier JSXIdentifier not shown
JSXMemberExpression JSXMemberExpression not shown
JSXNamespacedName JSXNamespacedName not shown
JSXOpeningElement JSXOpeningElement not shown
JSXOpeningFragment JSXOpeningFragment not shown
JSXSpreadAttribute JSXSpreadAttribute not shown
JSXSpreadChild JSXSpreadChild not shown
JSXText JSXText not shown
LabeledStatement LabeledStatement not shown
Literal Literal not shown
LogicalExpression LogicalExpression not shown
MemberExpression MemberExpression not shown
MetaProperty MetaProperty not shown
MethodDefinition MethodDefinition not shown
NewExpression NewExpression not shown
ObjectExpression ObjectExpression not shown
ObjectPattern ObjectPattern not shown
PrivateIdentifier PrivateIdentifier not shown
Program Program not shown
Property Property not shown
PropertyDefinition PropertyDefinition not shown
RestElement RestElement not shown
ReturnStatement ReturnStatement not shown
SequenceExpression SequenceExpression not shown
SpreadElement SpreadElement not shown
StaticBlock StaticBlock not shown
Super Super not shown
SwitchCase SwitchCase not shown
SwitchStatement SwitchStatement not shown
TaggedTemplateExpression TaggedTemplateExpression not shown
TemplateElement TemplateElement not shown
TemplateLiteral TemplateLiteral not shown
ThisExpression ThisExpression not shown
ThrowStatement ThrowStatement not shown
TryStatement TryStatement not shown
UnaryExpression UnaryExpression not shown
UpdateExpression UpdateExpression not shown
VariableDeclaration VariableDeclaration not shown
VariableDeclarator VariableDeclarator not shown
WhileStatement WhileStatement not shown
WithStatement WithStatement not shown
YieldExpression YieldExpression not shown
TSAbstractAccessorProperty TSAbstractAccessorProperty not shown
TSAbstractKeyword TSAbstractKeyword not shown
TSAbstractMethodDefinition TSAbstractMethodDefinition not shown
TSAbstractPropertyDefinition TSAbstractPropertyDefinition not shown
TSAnyKeyword TSAnyKeyword not shown
TSArrayType TSArrayType not shown
TSAsExpression TSAsExpression not shown
TSAsyncKeyword TSAsyncKeyword not shown
TSBigIntKeyword TSBigIntKeyword not shown
TSBooleanKeyword TSBooleanKeyword not shown
TSCallSignatureDeclaration TSCallSignatureDeclaration not shown
TSClassImplements TSClassImplements not shown
TSConditionalType TSConditionalType not shown
TSConstructorType TSConstructorType not shown
TSConstructSignatureDeclaration TSConstructSignatureDeclaration not shown
TSDeclareFunction TSDeclareFunction not shown
TSDeclareKeyword TSDeclareKeyword not shown
TSEmptyBodyFunctionExpression TSEmptyBodyFunctionExpression not shown
TSEnumBody TSEnumBody not shown
TSEnumDeclaration TSEnumDeclaration not shown
TSEnumMember TSEnumMember not shown
TSExportAssignment TSExportAssignment not shown
TSExportKeyword TSExportKeyword not shown
TSExternalModuleReference TSExternalModuleReference not shown
TSFunctionType TSFunctionType not shown
TSImportEqualsDeclaration TSImportEqualsDeclaration not shown
TSImportType TSImportType not shown
TSIndexedAccessType TSIndexedAccessType not shown
TSIndexSignature TSIndexSignature not shown
TSInferType TSInferType not shown
TSInstantiationExpression TSInstantiationExpression not shown
TSInterfaceBody TSInterfaceBody not shown
TSInterfaceDeclaration TSInterfaceDeclaration not shown
TSInterfaceHeritage TSInterfaceHeritage not shown
TSIntersectionType TSIntersectionType not shown
TSIntrinsicKeyword TSIntrinsicKeyword not shown
TSLiteralType TSLiteralType not shown
TSMappedType TSMappedType not shown
TSMethodSignature TSMethodSignature not shown
TSModuleBlock TSModuleBlock not shown
TSModuleDeclaration TSModuleDeclaration not shown
TSNamedTupleMember TSNamedTupleMember not shown
TSNamespaceExportDeclaration TSNamespaceExportDeclaration not shown
TSNeverKeyword TSNeverKeyword not shown
TSNonNullExpression TSNonNullExpression not shown
TSNullKeyword TSNullKeyword not shown
TSNumberKeyword TSNumberKeyword not shown
TSObjectKeyword TSObjectKeyword not shown
TSOptionalType TSOptionalType not shown
TSParameterProperty TSParameterProperty not shown
TSPrivateKeyword TSPrivateKeyword not shown
TSPropertySignature TSPropertySignature not shown
TSProtectedKeyword TSProtectedKeyword not shown
TSPublicKeyword TSPublicKeyword not shown
TSQualifiedName TSQualifiedName not shown
TSReadonlyKeyword TSReadonlyKeyword not shown
TSRestType TSRestType not shown
TSSatisfiesExpression TSSatisfiesExpression not shown
TSStaticKeyword TSStaticKeyword not shown
TSStringKeyword TSStringKeyword not shown
TSSymbolKeyword TSSymbolKeyword not shown
TSTemplateLiteralType TSTemplateLiteralType not shown
TSThisType TSThisType not shown
TSTupleType TSTupleType not shown
TSTypeAliasDeclaration TSTypeAliasDeclaration not shown
TSTypeAnnotation TSTypeAnnotation not shown
TSTypeAssertion TSTypeAssertion not shown
TSTypeLiteral TSTypeLiteral not shown
TSTypeOperator TSTypeOperator not shown
TSTypeParameter TSTypeParameter not shown
TSTypeParameterDeclaration TSTypeParameterDeclaration not shown
TSTypeParameterInstantiation TSTypeParameterInstantiation not shown
TSTypePredicate TSTypePredicate not shown
TSTypeQuery TSTypeQuery not shown
TSTypeReference TSTypeReference not shown
TSUndefinedKeyword TSUndefinedKeyword not shown
TSUnionType TSUnionType not shown
TSUnknownKeyword TSUnknownKeyword not shown
TSVoidKeyword TSVoidKeyword not shown

Generated by Syntax Scribe