Explorar o código

Fix For rewrite missing source information

Lucas de Souza %!s(int64=5) %!d(string=hai) anos
pai
achega
8cf846f394
Modificáronse 1 ficheiros con 1 adicións e 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);