diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2013-11-29 17:25:09 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2013-11-29 17:25:09 +0100 |
commit | 4047d3fa0d17ba297fee3fefe9bfc95dc75eea3e (patch) | |
tree | 1f6bb116ed8724953cc5c96e10a42d5e3d141282 | |
parent | a88084e4dfecd099949192679152e1d9cc1f6853 (diff) | |
download | eo_tokenizer-4047d3fa0d17ba297fee3fefe9bfc95dc75eea3e.zip eo_tokenizer-4047d3fa0d17ba297fee3fefe9bfc95dc75eea3e.tar.gz |
complete eo_tokenizer_dump()
-rw-r--r-- | eo_tokenizer.rl | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/eo_tokenizer.rl b/eo_tokenizer.rl index f2e0454..9fd95bc 100644 --- a/eo_tokenizer.rl +++ b/eo_tokenizer.rl @@ -694,7 +694,7 @@ eo_tokenizer_get(void) } static char *_accessor_type_str[ACCESSOR_TYPE_LAST] = { "setter", "getter" }; -/* static char *_param_way_str[PARAM_WAY_LAST] = { "in", "out", "inout" }; */ +static char *_param_way_str[PARAM_WAY_LAST] = { "IN", "OUT", "INOUT" }; void eo_tokenizer_dump(Eo_Tokenizer *toknz) @@ -704,6 +704,7 @@ eo_tokenizer_dump(Eo_Tokenizer *toknz) Eo_Class_Def *kls; Eo_Property_Def *prop; + Eo_Method_Def *meth; Eo_Param_Def *param; Eo_Accessor_Def *accessor; /* Eo_Ret_Def *ret; */ @@ -734,6 +735,19 @@ eo_tokenizer_dump(Eo_Tokenizer *toknz) } } + EINA_LIST_FOREACH(kls->methods, l, meth) + { + printf(" method: %s\n", meth->name); + printf(" return: %s (%s)\n", meth->ret.type, meth->ret.comment); + printf(" legacy : %s\n", meth->legacy); + EINA_LIST_FOREACH(meth->params, m, param) + { + printf(" param: %s %s : %s (%s)\n", + _param_way_str[param->way], param->name, + param->type, param->comment); + } + } + } } |