GodotScript.hpp: Fix GodotScript constants after the last commit
Signed-off-by: Username404-59 <w.iron.zombie@gmail.com>
This commit is contained in:
parent
333b15cfe0
commit
348da1eaa3
@ -9,7 +9,9 @@ struct GsTarget: Target {
|
||||
make_task(Define<false>,
|
||||
const optional previous = parsedTree.findReferenceByName<Define<false>>(parseComponent.name);
|
||||
if (previous.has_value() and &previous.value().get() == &parseComponent) { // TODO Recursively traverse the parsedTree's parents and their parents to find existing definitions and do it in semantic analysis
|
||||
output << (parseComponent.final ? "const " : "var ");
|
||||
output << "var ";
|
||||
} else if (parseComponent.final) {
|
||||
output << "const ";
|
||||
}
|
||||
output << parseComponent.name << " = ";
|
||||
transpileTree(parseComponent.content);
|
||||
|
Loading…
Reference in New Issue
Block a user