235
235
-spec get_spec_info(abstract_code(), dict()) -> {'ok', dict()} | {'error', string()}.
237
237
get_spec_info(AbstractCode, RecordsDict) ->
238
{value, {attribute, _, module, ModName}} =
239
lists:keysearch(module, 3, AbstractCode),
238
{attribute, _, module, ModName} = lists:keyfind(module, 3, AbstractCode),
240
239
get_spec_info(AbstractCode, dict:new(), RecordsDict, ModName, "nofile").
242
241
%% TypeSpec is a list of conditional contracts for a function.