From 1091f3d77f01d219d3f5440c9842039239b3559d Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Thu, 4 Apr 2024 11:43:17 +0200 Subject: [PATCH] Parser - Set line information for `WhileLoop` --- source/tlang/compiler/parsing/core.d | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/tlang/compiler/parsing/core.d b/source/tlang/compiler/parsing/core.d index 82d631a9..01c062ca 100644 --- a/source/tlang/compiler/parsing/core.d +++ b/source/tlang/compiler/parsing/core.d @@ -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;