1 // This file defines how to compile structs
6 #include "../environment.h"
9 Text_t compile_empty_struct(type_t *t);
10 Text_t compile_struct_typeinfo(env_t *env, type_t *t, const char *name, arg_ast_t *fields, bool is_secret,
12 Text_t compile_struct_header(env_t *env, ast_t *ast);
13 Text_t compile_struct_field_access(env_t *env, ast_t *ast);
14 Text_t compile_struct_literal(env_t *env, ast_t *ast, type_t *t, arg_ast_t *args);