diff options
author | Alexandru Scvortov <alexandru@rabbitmq.com> | 2011-08-25 19:42:42 +0100 |
---|---|---|
committer | Alexandru Scvortov <alexandru@rabbitmq.com> | 2011-08-25 19:42:42 +0100 |
commit | f2412e2f4af51dcdb8c5998595ba49e42979cb77 (patch) | |
tree | 247cea887772b13f69248305f22678a14069d44e /codegen.py | |
parent | bb7006f50c9bee6231824c828af32f893e06d039 (diff) | |
parent | c0420ca5f3d96e701df27b95a582acfe6d2d3b12 (diff) | |
download | rabbitmq-server-bug23056.tar.gz |
merge default into bug 23056bug23056
Diffstat (limited to 'codegen.py')
-rw-r--r-- | codegen.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -371,6 +371,8 @@ def genErl(spec): classIds.add(m.klass.index) print prettyType("amqp_class_id()", ["%i" % ci for ci in classIds]) + print prettyType("amqp_class_name()", + ["%s" % c.erlangName() for c in spec.allClasses()]) print "-endif. % use_specs" print """ @@ -378,6 +380,7 @@ def genErl(spec): -ifdef(use_specs). -spec(version/0 :: () -> {non_neg_integer(), non_neg_integer(), non_neg_integer()}). -spec(lookup_method_name/1 :: (amqp_method()) -> amqp_method_name()). +-spec(lookup_class_name/1 :: (amqp_class_id()) -> amqp_class_name()). -spec(method_id/1 :: (amqp_method_name()) -> amqp_method()). -spec(method_has_content/1 :: (amqp_method_name()) -> boolean()). -spec(is_method_synchronous/1 :: (amqp_method_record()) -> boolean()). |