diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-04-23 12:50:30 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-04-23 12:50:30 -0400 |
| commit | fbb25decf062349b0f28b3027d6be34a11f2a812 (patch) | |
| tree | ecbbf62e677833fcaff5e4033d92f43099fa6049 /typecheck.h | |
| parent | 803995aea2b1012355c929a7e148d500cd253997 (diff) | |
Support struct literals as constants
Diffstat (limited to 'typecheck.h')
| -rw-r--r-- | typecheck.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/typecheck.h b/typecheck.h index 295ac605..fd9f1f73 100644 --- a/typecheck.h +++ b/typecheck.h @@ -23,5 +23,6 @@ type_t *get_arg_ast_type(env_t *env, arg_ast_t *arg); bool can_be_mutated(env_t *env, ast_t *ast); 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); +bool is_constant(env_t *env, ast_t *ast); // vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 |
