diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-12-07 19:02:13 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-12-07 19:02:13 -0500 |
| commit | 09942b27ae6fd7e7d394b2d251ef77c8a6f69e07 (patch) | |
| tree | 49440d4bf059874b7f84462f9dfa96d7de9edfc7 /src/compile/lists.c | |
| parent | 85d1507d8b7e0139135e040b7b4b23c02097a155 (diff) | |
Rename `Empty()` -> `Present()` for set-like tables
Diffstat (limited to 'src/compile/lists.c')
| -rw-r--r-- | src/compile/lists.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compile/lists.c b/src/compile/lists.c index 97b0b85d..31255c1e 100644 --- a/src/compile/lists.c +++ b/src/compile/lists.c @@ -254,7 +254,7 @@ Text_t compile_list_method_call(env_t *env, ast_t *ast) { } else if (streq(call->name, "unique")) { self = compile_to_pointer_depth(env, call->self, 0, false); (void)compile_arguments(env, ast, NULL, call->args); - return Texts("Table$from_entries(", self, ", Table$info(", compile_type_info(item_t), ", &Empty$$info))"); + return Texts("Table$from_entries(", self, ", Table$info(", compile_type_info(item_t), ", &Present$$info))"); } else if (streq(call->name, "pop")) { EXPECT_POINTER(); arg_t *arg_spec = new (arg_t, .name = "index", .type = INT_TYPE, .default_val = FakeAST(Int, "-1")); |
