From b6372ef6cc7b9727bc90946e91c85e2749dc372d Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 8 Feb 2026 23:53:36 -0500 Subject: Add a "did you mean?" suggestion for invalid field/method names. --- src/typecheck.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/typecheck.h') diff --git a/src/typecheck.h b/src/typecheck.h index d64bb316..5a2a543b 100644 --- a/src/typecheck.h +++ b/src/typecheck.h @@ -27,6 +27,9 @@ type_t *parse_type_string(env_t *env, const char *str); type_t *get_method_type(env_t *env, ast_t *self, const char *name); PUREFUNC bool is_constant(env_t *env, ast_t *ast); PUREFUNC bool can_compile_to_type(env_t *env, ast_t *ast, type_t *needed); +OptionalText_t suggest_best_name(const char *wrong, List_t names); +List_t get_field_names(env_t *env, type_t *t); +List_t get_method_names(env_t *env, type_t *t); typedef struct { bool promotion : 1, underscores : 1; -- cgit v1.2.3