summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--eo_tokenizer.rl13
1 files changed, 8 insertions, 5 deletions
diff --git a/eo_tokenizer.rl b/eo_tokenizer.rl
index 76d4b8f..e7cab37 100644
--- a/eo_tokenizer.rl
+++ b/eo_tokenizer.rl
@@ -178,18 +178,21 @@ _eo_tokenizer_accessor_get(Eo_Tokenizer *toknz, Eo_Accessor_Type type)
if (toknz->tmp.accessor->comment != NULL)
ABORT(toknz, "accessor has already a comment");
toknz->tmp.accessor->comment = _eo_tokenizer_token_get(toknz, fpc-1);
+ INF(" %s", toknz->tmp.accessor->comment);
}
action end_rettype {
if (toknz->tmp.accessor->ret.type != NULL)
- ABORT(toknz, "accessor has already a rettype");
+ ABORT(toknz, "accessor has already a return type");
toknz->tmp.accessor->ret.type = _eo_tokenizer_token_get(toknz, fpc);
+ INF(" %s", toknz->tmp.accessor->ret.type);
}
action end_rettype_comment {
if (toknz->tmp.accessor->ret.comment != NULL)
- ABORT(toknz, "accessor rettype has already a comment");
+ ABORT(toknz, "accessor return type has already a comment");
toknz->tmp.accessor->ret.comment = _eo_tokenizer_token_get(toknz, fpc-2);
+ INF(" %s", toknz->tmp.accessor->ret.comment);
}
action end_legacy_name {
@@ -282,10 +285,10 @@ _eo_tokenizer_accessor_get(Eo_Tokenizer *toknz, Eo_Accessor_Type type)
action end_property {
if (eina_list_count(toknz->tmp.prop->params) == 0)
- WRN("property %s has no parameters.", toknz->tmp.prop->name);
+ WRN("property '%s' has no parameters.", toknz->tmp.prop->name);
if (eina_list_count(toknz->tmp.prop->accessors) == 0)
- WRN("property %s has no accessors.", toknz->tmp.prop->name);
- INF(" }", toknz->tmp.prop->name);
+ WRN("property '%s' has no accessors.", toknz->tmp.prop->name);
+ INF(" }");
toknz->tmp.kls->properties = eina_list_append(toknz->tmp.kls->properties, toknz->tmp.prop);
toknz->tmp.prop = NULL;
toknz->current_nesting--;