UNPKG

ts-simple-ast

Version:

TypeScript compiler wrapper for AST navigation and code generation.

25 lines (23 loc) 953 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const manipulation_1 = require("./../../manipulation"); const common_1 = require("./../common"); const base_1 = require("./../base"); const namespace_1 = require("./../namespace"); exports.VariableStatementBase = namespace_1.NamespaceChildableNode(base_1.DocumentationableNode(base_1.AmbientableNode(base_1.ExportableNode(base_1.ModifierableNode(common_1.Node))))); class VariableStatement extends exports.VariableStatementBase { /** * Gets the declaration list of variables. */ getDeclarationList() { return this.global.compilerFactory.getNodeFromCompilerNode(this.compilerNode.declarationList, this.sourceFile); } /** * Removes this variable statement. */ remove() { manipulation_1.removeStatementedNodeChild(this); } } exports.VariableStatement = VariableStatement; //# sourceMappingURL=VariableStatement.js.map