Explorar el Código

Fix For rewrite missing source information

Lucas de Souza hace 5 años
padre
commit
8cf846f394
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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);