Skip to content

Commit

Permalink
Parser
Browse files Browse the repository at this point in the history
- Set line information for `WhileLoop`
  • Loading branch information
deavmi committed Apr 4, 2024
1 parent ffdd508 commit 1091f3d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/tlang/compiler/parsing/core.d
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,9 @@ public final class Parser
/* Parent the branch to the WhileLoop */
parentToContainer(whileLoop, [branch]);

/* Store line information at this point into AST node */
whileLoop.setLineInfo(getCurrentLineInfo());

gprintln("parseWhile(): Leave", DebugType.WARNING);

return whileLoop;
Expand Down

0 comments on commit 1091f3d

Please sign in to comment.