summaryrefslogtreecommitdiff
path: root/codegen.py
diff options
context:
space:
mode:
authorAlexandru Scvortov <alexandru@rabbitmq.com>2010-11-11 09:39:36 +0000
committerAlexandru Scvortov <alexandru@rabbitmq.com>2010-11-11 09:39:36 +0000
commit1ebacc3dcf63320c4ebfc55d956134b6ab67b9aa (patch)
tree26e81bb9dd9c4f007b3b6b13020b52750000014a /codegen.py
parentdf0b88c11ab4e06d35b93b5cce479ef2a08b51d2 (diff)
parent3028f637ecd26d5f9883f584256412ace14e27c0 (diff)
downloadrabbitmq-server-1ebacc3dcf63320c4ebfc55d956134b6ab67b9aa.tar.gz
merge bug23475 into default (eliminate dialyzer errors)
Diffstat (limited to 'codegen.py')
-rw-r--r--codegen.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/codegen.py b/codegen.py
index 71ce8ada..979c5bd8 100644
--- a/codegen.py
+++ b/codegen.py
@@ -345,9 +345,11 @@ def genErl(spec):
print "%% Various types"
print "-ifdef(use_specs)."
- print """-export_type([amqp_table/0, amqp_property_type/0, amqp_method_record/0,
- amqp_method_name/0, amqp_method/0, amqp_class_id/0,
- amqp_value/0, amqp_array/0, amqp_exception/0, amqp_property_record/0]).
+ print """-export_type([amqp_field_type/0, amqp_property_type/0,
+ amqp_table/0, amqp_array/0, amqp_value/0,
+ amqp_method_name/0, amqp_method/0, amqp_method_record/0,
+ amqp_method_field_name/0, amqp_property_record/0,
+ amqp_exception/0, amqp_exception_code/0, amqp_class_id/0]).
-type(amqp_field_type() ::
'longstr' | 'signedint' | 'decimal' | 'timestamp' |
@@ -415,7 +417,7 @@ def genErl(spec):
(amqp_method_name(), binary()) -> amqp_method_record() | rabbit_types:connection_exit()).
-spec(decode_properties/2 :: (non_neg_integer(), binary()) -> amqp_property_record()).
-spec(encode_method_fields/1 :: (amqp_method_record()) -> binary()).
--spec(encode_properties/1 :: (amqp_method_record()) -> binary()).
+-spec(encode_properties/1 :: (amqp_property_record()) -> binary()).
-spec(lookup_amqp_exception/1 :: (amqp_exception()) -> {boolean(), amqp_exception_code(), binary()}).
-spec(amqp_exception/1 :: (amqp_exception_code()) -> amqp_exception()).
-endif. % use_specs