diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2026-02-08 23:53:36 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2026-02-08 23:53:36 -0500 |
| commit | b6372ef6cc7b9727bc90946e91c85e2749dc372d (patch) | |
| tree | eef7a1265a3eb3bf25ae306f00abe01a82bd637d /src/typecheck.h | |
| parent | 4e31786efcf32818a620cc87ffa80dadef90a466 (diff) | |
Add a "did you mean?" suggestion for invalid field/method names.
Diffstat (limited to 'src/typecheck.h')
| -rw-r--r-- | src/typecheck.h | 3 |
1 files changed, 3 insertions, 0 deletions
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; |
