ts-simple-ast
Version:
TypeScript compiler wrapper for AST navigation and code generation.
45 lines (43 loc) • 2.8 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const ts = require("typescript");
// they need to be individually imported instead of using a namespace import so that this works with the `declaration: true` compiler argument
const compiler_1 = require("./../compiler");
// when changing this, make sure to run `npm run code-generate`.
// that will automatically update all other parts of the application that need to be updated when this changes.
exports.nodeToWrapperMappings = {
[]: compiler_1.SourceFile,
[]: compiler_1.ArrayLiteralExpression,
[]: compiler_1.CallExpression,
[]: compiler_1.ClassDeclaration,
[]: compiler_1.ConstructorDeclaration,
[]: compiler_1.ConstructSignatureDeclaration,
[]: compiler_1.Decorator,
[]: compiler_1.EnumDeclaration,
[]: compiler_1.EnumMember,
[]: compiler_1.ExportDeclaration,
[]: compiler_1.ExportSpecifier,
[]: compiler_1.ExpressionWithTypeArguments,
[]: compiler_1.FunctionDeclaration,
[]: compiler_1.GetAccessorDeclaration,
[]: compiler_1.HeritageClause,
[]: compiler_1.Identifier,
[]: compiler_1.ImportDeclaration,
[]: compiler_1.ImportSpecifier,
[]: compiler_1.InterfaceDeclaration,
[]: compiler_1.MethodDeclaration,
[]: compiler_1.MethodSignature,
[]: compiler_1.NamespaceDeclaration,
[]: compiler_1.Expression,
[]: compiler_1.ParameterDeclaration,
[]: compiler_1.PropertyDeclaration,
[]: compiler_1.PropertySignature,
[]: compiler_1.SetAccessorDeclaration,
[]: compiler_1.TypeAliasDeclaration,
[]: compiler_1.TypeParameterDeclaration,
[]: compiler_1.VariableDeclaration,
[]: compiler_1.VariableDeclarationList,
[]: compiler_1.VariableStatement,
[]: compiler_1.JSDoc
};
//# sourceMappingURL=nodeToWrapperMappings.js.map