Преглед изворни кода

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);