-enum unit_entry_type_t {
- UNIT_ENTRY_INVALID,
- UNIT_ENTRY_METHOD,
- UNIT_ENTRY_VARIABLE,
-};
-
-struct unit_entry_t {
- unit_entry_type_t type;
- unit_entry_t *next;
- source_position_t source_position;
-};
-
-struct method_parameter_t {
- method_parameter_t *next;
- symbol_t *symbol;
- type_t *type;
- int num;
-};
-
-struct method_t {
- unit_entry_t unit_entry;
- symbol_t *symbol;
- method_type_t *type;
- method_parameter_t *parameters;
-
- statement_t *statement;
-};
-
-struct global_variable_t {
- unit_entry_t unit_entry;
- symbol_t *symbol;
- type_t *type;
-};
-