From 4047d3fa0d17ba297fee3fefe9bfc95dc75eea3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Fri, 29 Nov 2013 17:25:09 +0100 Subject: complete eo_tokenizer_dump() --- eo_tokenizer.rl | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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); + } + } + } } -- cgit v1.1-2-g2b99