Py.hpp, GodotScript.hpp: Add missing pass after empty else branches

Signed-off-by: Username404-59 <w.iron.zombie@gmail.com>
This commit is contained in:
Username404-59 2025-01-01 04:30:12 +01:00
parent 2758a2e95a
commit 76cc701dd7
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
2 changed files with 2 additions and 0 deletions

View File

@ -33,6 +33,7 @@ struct GsTarget: Target {
} else output << "else"; } else output << "else";
output << ':' << separator << indentation; output << ':' << separator << indentation;
separate_transpileTree(parseComponent, 1); separate_transpileTree(parseComponent, 1);
if (parseComponent.empty()) output << "pass";
) )
}; };
} }

View File

@ -31,6 +31,7 @@ struct PyTarget: Target {
} else output << "else"; } else output << "else";
output << ':' << separator << indentation; output << ':' << separator << indentation;
separate_transpileTree(parseComponent, 1); separate_transpileTree(parseComponent, 1);
if (parseComponent.empty()) output << "pass";
), ),
make_task(StandardComponents::Reference, make_task(StandardComponents::Reference,
if (parseComponent.name == "true" or parseComponent.name == "false") { if (parseComponent.name == "true" or parseComponent.name == "false") {