diff options
| author | Alexandru Scvortov <alexandru@rabbitmq.com> | 2010-11-11 09:39:36 +0000 |
|---|---|---|
| committer | Alexandru Scvortov <alexandru@rabbitmq.com> | 2010-11-11 09:39:36 +0000 |
| commit | cc587861bb5279c5f837474367695fe1e5b319d0 (patch) | |
| tree | 26e81bb9dd9c4f007b3b6b13020b52750000014a /codegen.py | |
| parent | ff1d4bd4b2c53ab2ed82cd8fe5a3e80b91dd4ce4 (diff) | |
| parent | a8aa6e724fea02713c237ec6ce321dcadc81780b (diff) | |
| download | rabbitmq-server-git-cc587861bb5279c5f837474367695fe1e5b319d0.tar.gz | |
merge bug23475 into default (eliminate dialyzer errors)
Diffstat (limited to 'codegen.py')
| -rw-r--r-- | codegen.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/codegen.py b/codegen.py index 71ce8ada6a..979c5bd82d 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 |
