Skip to content
This repository has been archived by the owner on Jan 14, 2019. It is now read-only.

Commit

Permalink
fix: many missing nodes and better babel alignment (#65)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: We apologise for the lack of a granular changelog here. There are multiple changes to the AST in this large commit, please see the PR #65 for full details
  • Loading branch information
armano2 authored and JamesHenry committed Dec 28, 2018
1 parent 3be357e commit 969c0d3
Show file tree
Hide file tree
Showing 70 changed files with 71,075 additions and 48,133 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"license": "BSD-2-Clause",
"devDependencies": {
"@babel/code-frame": "7.0.0",
"@babel/parser": "7.1.6",
"@babel/parser": "7.2.3",
"@commitlint/cli": "^7.1.2",
"@commitlint/config-conventional": "^7.1.2",
"@commitlint/travis-cli": "^7.1.2",
Expand Down
27 changes: 19 additions & 8 deletions src/ast-node-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,16 +86,26 @@ export const AST_NODE_TYPES: { [key: string]: string } = {
ThisExpression: 'ThisExpression',
ThrowStatement: 'ThrowStatement',
TryStatement: 'TryStatement',
UnaryExpression: 'UnaryExpression',
UpdateExpression: 'UpdateExpression',
VariableDeclaration: 'VariableDeclaration',
VariableDeclarator: 'VariableDeclarator',
WhileStatement: 'WhileStatement',
WithStatement: 'WithStatement',
YieldExpression: 'YieldExpression',
/**
* TS-prefixed nodes
*/
TSAbstractClassDeclaration: 'TSAbstractClassDeclaration',
TSAbstractClassProperty: 'TSAbstractClassProperty',
TSAbstractKeyword: 'TSAbstractKeyword',
TSAbstractMethodDefinition: 'TSAbstractMethodDefinition',
TSAnyKeyword: 'TSAnyKeyword',
TSArrayType: 'TSArrayType',
TSAsyncKeyword: 'TSAsyncKeyword',
TSBooleanKeyword: 'TSBooleanKeyword',
TSBigIntKeyword: 'TSBigIntKeyword',
TSConditionalType: 'TSConditionalType',
TSConstructorType: 'TSConstructorType',
TSConstructSignature: 'TSConstructSignature',
TSDeclareKeyword: 'TSDeclareKeyword',
Expand All @@ -106,6 +116,7 @@ export const AST_NODE_TYPES: { [key: string]: string } = {
TSExportKeyword: 'TSExportKeyword',
TSImportType: 'TSImportType',
TSLiteralType: 'TSLiteralType',
TSIndexedAccessType: 'TSIndexedAccessType',
TSIndexSignature: 'TSIndexSignature',
TSInterfaceBody: 'TSInterfaceBody',
TSInterfaceDeclaration: 'TSInterfaceDeclaration',
Expand All @@ -119,6 +130,7 @@ export const AST_NODE_TYPES: { [key: string]: string } = {
TSNeverKeyword: 'TSNeverKeyword',
TSNullKeyword: 'TSNullKeyword',
TSNumberKeyword: 'TSNumberKeyword',
TSMappedType: 'TSMappedType',
TSObjectKeyword: 'TSObjectKeyword',
TSParameterProperty: 'TSParameterProperty',
TSPrivateKeyword: 'TSPrivateKeyword',
Expand All @@ -128,6 +140,7 @@ export const AST_NODE_TYPES: { [key: string]: string } = {
TSQualifiedName: 'TSQualifiedName',
TSQuestionToken: 'TSQuestionToken',
TSReadonlyKeyword: 'TSReadonlyKeyword',
TSRestType: 'TSRestType',
TSStaticKeyword: 'TSStaticKeyword',
TSStringKeyword: 'TSStringKeyword',
TSSymbolKeyword: 'TSSymbolKeyword',
Expand All @@ -140,15 +153,13 @@ export const AST_NODE_TYPES: { [key: string]: string } = {
TSTypeParameterInstantiation: 'TSTypeParameterInstantiation',
TSTypePredicate: 'TSTypePredicate',
TSTypeReference: 'TSTypeReference',
TSTypeQuery: 'TSTypeQuery',
TSIntersectionType: 'TSIntersectionType',
TSTupleType: 'TSTupleType',
TSOptionalType: 'TSOptionalType',
TSParenthesizedType: 'TSParenthesizedType',
TSUnionType: 'TSUnionType',
TSUndefinedKeyword: 'TSUndefinedKeyword',
TSUnknownKeyword: 'TSUnknownKeyword',
TSVoidKeyword: 'TSVoidKeyword',
UnaryExpression: 'UnaryExpression',
UpdateExpression: 'UpdateExpression',
VariableDeclaration: 'VariableDeclaration',
VariableDeclarator: 'VariableDeclarator',
WhileStatement: 'WhileStatement',
WithStatement: 'WithStatement',
YieldExpression: 'YieldExpression'
TSVoidKeyword: 'TSVoidKeyword'
};
Loading

0 comments on commit 969c0d3

Please sign in to comment.