{
if (!unit) return NULL;
Eina_Stringshare *shr = eina_stringshare_add(class_name);
- Eolian_Class *cl = eina_hash_find(unit->state->unit.classes, shr);
+ Eolian_Class *cl = eina_hash_find(unit->classes, shr);
eina_stringshare_del(shr);
return cl;
}
EAPI Eina_Iterator *
eolian_all_classes_get(const Eolian_Unit *unit)
{
- return (unit ? eina_hash_iterator_data_new(unit->state->unit.classes) : NULL);
+ return (unit ? eina_hash_iterator_data_new(unit->classes) : NULL);
}
EAPI const Eolian_Documentation *
int kw = eo_lexer_keyword_str_to_id(tp->full_name);
if (!kw || kw < KW_byte || kw >= KW_true)
{
- Eolian_Declaration *decl = eina_hash_find(unit->state->unit.decls, tp->full_name);
+ Eolian_Declaration *decl = eina_hash_find(unit->decls, tp->full_name);
if (decl && decl->type != EOLIAN_DECL_CLASS
&& decl->type != EOLIAN_DECL_VAR)
return decl->data;
{
if (!unit) return NULL;
Eina_Stringshare *shr = eina_stringshare_add(name);
- Eolian_Typedecl *tp = eina_hash_find(unit->state->unit.aliases, shr);
+ Eolian_Typedecl *tp = eina_hash_find(unit->aliases, shr);
eina_stringshare_del(shr);
if (!tp) return NULL;
return tp;
{
if (!unit) return NULL;
Eina_Stringshare *shr = eina_stringshare_add(name);
- Eolian_Typedecl *tp = eina_hash_find(unit->state->unit.structs, shr);
+ Eolian_Typedecl *tp = eina_hash_find(unit->structs, shr);
eina_stringshare_del(shr);
if (!tp) return NULL;
return tp;
{
if (!unit) return NULL;
Eina_Stringshare *shr = eina_stringshare_add(name);
- Eolian_Typedecl *tp = eina_hash_find(unit->state->unit.enums, shr);
+ Eolian_Typedecl *tp = eina_hash_find(unit->enums, shr);
eina_stringshare_del(shr);
if (!tp) return NULL;
return tp;
EAPI Eina_Iterator *
eolian_typedecl_all_aliases_get(const Eolian_Unit *unit)
{
- return (unit ? eina_hash_iterator_data_new(unit->state->unit.aliases) : NULL);
+ return (unit ? eina_hash_iterator_data_new(unit->aliases) : NULL);
}
EAPI Eina_Iterator *
eolian_typedecl_all_structs_get(const Eolian_Unit *unit)
{
- return (unit ? eina_hash_iterator_data_new(unit->state->unit.structs) : NULL);
+ return (unit ? eina_hash_iterator_data_new(unit->structs) : NULL);
}
EAPI Eina_Iterator *
eolian_typedecl_all_enums_get(const Eolian_Unit *unit)
{
- return (unit ? eina_hash_iterator_data_new(unit->state->unit.enums) : NULL);
+ return (unit ? eina_hash_iterator_data_new(unit->enums) : NULL);
}
EAPI Eolian_Type_Type
{
if (!unit) return NULL;
Eina_Stringshare *shr = eina_stringshare_add(name);
- Eolian_Variable *v = eina_hash_find(unit->state->unit.globals, shr);
+ Eolian_Variable *v = eina_hash_find(unit->globals, shr);
eina_stringshare_del(shr);
return v;
}
{
if (!unit) return NULL;
Eina_Stringshare *shr = eina_stringshare_add(name);
- Eolian_Variable *v = eina_hash_find(unit->state->unit.constants, shr);
+ Eolian_Variable *v = eina_hash_find(unit->constants, shr);
eina_stringshare_del(shr);
return v;
}
EAPI Eina_Iterator *
eolian_variable_all_constants_get(const Eolian_Unit *unit)
{
- return (unit ? eina_hash_iterator_data_new(unit->state->unit.constants) : NULL);
+ return (unit ? eina_hash_iterator_data_new(unit->constants) : NULL);
}
EAPI Eina_Iterator *
eolian_variable_all_globals_get(const Eolian_Unit *unit)
{
- return (unit ? eina_hash_iterator_data_new(unit->state->unit.globals) : NULL);
+ return (unit ? eina_hash_iterator_data_new(unit->globals) : NULL);
}
EAPI Eolian_Variable_Type
{
if (!unit) return NULL;
Eina_Stringshare *shr = eina_stringshare_add(name);
- const Eolian_Declaration *decl = eina_hash_find(unit->state->unit.decls, shr);
+ const Eolian_Declaration *decl = eina_hash_find(unit->decls, shr);
eina_stringshare_del(shr);
return decl;
}
EAPI Eina_Iterator *
eolian_all_declarations_get(const Eolian_Unit *unit)
{
- return (unit ? eina_hash_iterator_data_new(unit->state->unit.decls) : NULL);
+ return (unit ? eina_hash_iterator_data_new(unit->decls) : NULL);
}
EAPI Eolian_Declaration_Type