walk_entity((entity_t*)type->enumt.enume, env);
return;
}
- panic("invalid type found");
+ panic("invalid type");
}
static void walk_expression(expression_t *const expr,
return;
case ENTITY_FUNCTION:
walk_type(entity->declaration.type, env);
- if (entity->function.statement != NULL)
- walk_statement(entity->function.statement, env);
+ if (entity->function.body != NULL)
+ walk_statement(entity->function.body, env);
return;
case ENTITY_COMPOUND_MEMBER:
case ENTITY_PARAMETER:
case ENTITY_LOCAL_LABEL:
return;
}
- panic("invalid entity found");
+ panic("invalid entity");
}
static void walk_declarations(entity_t* entity,