From 8721779709bc8cea02a93a87100a514da6919869 Mon Sep 17 00:00:00 2001 From: sanex3339 Date: Tue, 24 May 2016 21:10:46 +0300 Subject: [PATCH] dev --- .../unicode-array-nodes/UnicodeArrayRotateFunctionNode.js | 2 +- .../unicode-array-nodes/UnicodeArrayRotateFunctionNode.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/custom-nodes/unicode-array-nodes/UnicodeArrayRotateFunctionNode.js b/src/custom-nodes/unicode-array-nodes/UnicodeArrayRotateFunctionNode.js index 965bc7cf..d61cf41f 100644 --- a/src/custom-nodes/unicode-array-nodes/UnicodeArrayRotateFunctionNode.js +++ b/src/custom-nodes/unicode-array-nodes/UnicodeArrayRotateFunctionNode.js @@ -14,7 +14,7 @@ class UnicodeArrayRotateFunctionNode extends Node_1.Node { this.node = this.getNodeStructure(); } appendNode(blockScopeNode) { - NodeUtils_1.NodeUtils.insertNodeAtIndex(blockScopeNode.body, this.getNode(), 1); + NodeUtils_1.NodeUtils.insertNodeAtIndex(blockScopeNode.body, this.getNode(), 0); } getNode() { if (!this.unicodeArray.length) { diff --git a/src/custom-nodes/unicode-array-nodes/UnicodeArrayRotateFunctionNode.ts b/src/custom-nodes/unicode-array-nodes/UnicodeArrayRotateFunctionNode.ts index 1237287a..f9772198 100644 --- a/src/custom-nodes/unicode-array-nodes/UnicodeArrayRotateFunctionNode.ts +++ b/src/custom-nodes/unicode-array-nodes/UnicodeArrayRotateFunctionNode.ts @@ -54,7 +54,7 @@ export class UnicodeArrayRotateFunctionNode extends Node { * @param blockScopeNode */ public appendNode (blockScopeNode: BlockScopeNode): void { - NodeUtils.insertNodeAtIndex(blockScopeNode.body, this.getNode(), 1); + NodeUtils.insertNodeAtIndex(blockScopeNode.body, this.getNode(), 0); } /**