1
0
Quellcode durchsuchen

Fix For rewrite missing source information

Lucas de Souza vor 5 Jahren
Ursprung
Commit
8cf846f394
1 geänderte Dateien mit 1 neuen und 0 gelöschten Zeilen
  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);