Space Lua: <close> attribute, __close metamethod and extensive tests (#1791)

Signed-off-by: Matouš Jan Fialka <mjf@mjf.cz>
This commit is contained in:
Matouš Jan Fialka
2026-01-28 09:05:23 +01:00
committed by GitHub
parent 4704f0d513
commit 9419cdcd9b
10 changed files with 2900 additions and 536 deletions
+3
View File
@@ -20,6 +20,8 @@ export type LuaBlock = {
needsEnv?: boolean;
// true if this block itself (not nested ones) defines at least one label
hasLabelHere?: boolean;
// true if this block itself (not nested ones) may create to-be-closed values
hasCloseHere?: boolean;
} & ASTContext;
// STATEMENTS
@@ -141,6 +143,7 @@ export type LuaLocalStatement = {
export enum LuaAttribute {
Const = "const",
Close = "close",
}
export type LuaAttName = {