UNPKG

js-ast-parser

Version:
17 lines 739 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.VariableDeclarationStatement = void 0; const constants_1 = require("../../constants"); const Statement_1 = require("./Statement"); class VariableDeclarationStatement extends Statement_1.Statement { constructor(currentToken) { super(); this.type = 'VariableDeclarationStatement'; this.code = constants_1.NodeCode.VariableDeclarationStatement; this.declarations = []; this.loc.start = currentToken.loc.start; this.declarationKeyWord = currentToken.value; } } exports.VariableDeclarationStatement = VariableDeclarationStatement; //# sourceMappingURL=VariableDeclarationStatement.js.map