diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2013-11-27 16:31:54 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2013-11-27 16:31:54 +0100 |
commit | 5f4642a8767f927a150710310c3d4c87b998b05d (patch) | |
tree | 6657727728e2c3493f947dc5a6bc9537bf567434 | |
parent | db2bd83e4d94f62c54f7dede80dd4245b766fe8d (diff) | |
download | eo_tokenizer-5f4642a8767f927a150710310c3d4c87b998b05d.zip eo_tokenizer-5f4642a8767f927a150710310c3d4c87b998b05d.tar.gz |
improve INF and WRN msgs
-rw-r--r-- | eo_tokenizer.rl | 13 |
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--; |