瀏覽代碼

Fix For rewrite missing source information

Lucas de Souza 5 年之前
父節點
當前提交
8cf846f394
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      js/processor/ivprogProcessor.js

+ 1 - 0
js/processor/ivprogProcessor.js

@@ -323,6 +323,7 @@ export class IVProgProcessor {
       const whileBlock = new Commands.CommandBlock([],
         cmd.commands.concat(increment));
       const forAsWhile = new Commands.While(condition, whileBlock);
+      forAsWhile.sourceInfo = cmd.sourceInfo;
       //END for -> while rewrite
       const newCmdList = [initCmd,forAsWhile];
       return this.executeCommands(store, newCmdList);