|
@@ -252,6 +252,7 @@ var NodeUtils = function () {
|
|
value: function convertCodeToStructure(code) {
|
|
value: function convertCodeToStructure(code) {
|
|
var structure = esprima.parse(code);
|
|
var structure = esprima.parse(code);
|
|
NodeUtils.addXVerbatimPropertyToLiterals(structure);
|
|
NodeUtils.addXVerbatimPropertyToLiterals(structure);
|
|
|
|
+ NodeUtils.parentize(structure);
|
|
return NodeUtils.getBlockStatementNodeByIndex(structure);
|
|
return NodeUtils.getBlockStatementNodeByIndex(structure);
|
|
}
|
|
}
|
|
}, {
|
|
}, {
|
|
@@ -355,7 +356,7 @@ module.exports = require("estraverse");
|
|
|
|
|
|
/***/ },
|
|
/***/ },
|
|
/* 4 */
|
|
/* 4 */
|
|
-/***/ function(module, exports, __webpack_require__) {
|
|
|
|
|
|
+/***/ function(module, exports) {
|
|
|
|
|
|
"use strict";
|
|
"use strict";
|
|
"use strict";
|
|
"use strict";
|
|
@@ -364,8 +365,6 @@ var _createClass = function () { function defineProperties(target, props) { for
|
|
|
|
|
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
|
|
|
|
-var NodeUtils_1 = __webpack_require__(1);
|
|
|
|
-
|
|
|
|
var Node = function () {
|
|
var Node = function () {
|
|
function Node(options) {
|
|
function Node(options) {
|
|
_classCallCheck(this, Node);
|
|
_classCallCheck(this, Node);
|
|
@@ -381,9 +380,7 @@ var Node = function () {
|
|
}, {
|
|
}, {
|
|
key: "getNode",
|
|
key: "getNode",
|
|
value: function getNode() {
|
|
value: function getNode() {
|
|
- var node = this.getNodeStructure();
|
|
|
|
- NodeUtils_1.NodeUtils.parentize(node);
|
|
|
|
- return node;
|
|
|
|
|
|
+ return this.getNodeStructure();
|
|
}
|
|
}
|
|
}]);
|
|
}]);
|
|
|
|
|