diff options
author | Hans Bolinder <[email protected]> | 2014-04-15 09:38:41 +0200 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2014-04-28 11:56:26 +0200 |
commit | 146260727638e8a477aeda7828364ce45dc506a0 (patch) | |
tree | c54b396192cb875eea1c474baff18c136473b95c /lib/dialyzer/src/dialyzer_codeserver.erl | |
parent | 3be1dc100140139b2542cd327cf4f8453d43aca1 (diff) | |
download | otp-146260727638e8a477aeda7828364ce45dc506a0.tar.gz otp-146260727638e8a477aeda7828364ce45dc506a0.tar.bz2 otp-146260727638e8a477aeda7828364ce45dc506a0.zip |
Introduce the attribute -optional_callbacks in the context of behaviours
Diffstat (limited to 'lib/dialyzer/src/dialyzer_codeserver.erl')
-rw-r--r-- | lib/dialyzer/src/dialyzer_codeserver.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/dialyzer/src/dialyzer_codeserver.erl b/lib/dialyzer/src/dialyzer_codeserver.erl index aab3d6add6..593e71f30b 100644 --- a/lib/dialyzer/src/dialyzer_codeserver.erl +++ b/lib/dialyzer/src/dialyzer_codeserver.erl @@ -278,10 +278,10 @@ lookup_mod_contracts(Mod, #codeserver{contracts = ContDict}) case ets_dict_find(Mod, ContDict) of error -> dict:new(); {ok, Keys} -> - dict:from_list([get_contract_pair(Key, ContDict)|| Key <- Keys]) + dict:from_list([get_file_contract(Key, ContDict)|| Key <- Keys]) end. -get_contract_pair(Key, ContDict) -> +get_file_contract(Key, ContDict) -> {Key, ets:lookup_element(ContDict, Key, 2)}. -spec lookup_mfa_contract(mfa(), codeserver()) -> |