Please dialyzer

This commit is contained in:
Hans Svensson 2019-08-14 19:29:27 +02:00
parent 1549954612
commit 599e640df4

View File

@ -574,15 +574,13 @@ pp(Code, Options, Option, PPFun) ->
ok ok
end. end.
%% ------------------------------------------------------------------- %% -------------------------------------------------------------------
%% TODO: Tempoary parser hook below...
-spec parse_stdlib() -> none() | [aeso_syntax:ast()]. -spec parse_stdlib() -> none() | aeso_syntax:ast().
parse_stdlib() -> parse_stdlib() ->
lists:foldr( lists:foldr(
fun ({Lib, LibCode}, Acc) -> fun ({Lib, LibCode}, Acc) ->
parse(LibCode, [{src_file, Lib}]) ++ Acc parse(LibCode, [{src_file, binary_to_list(Lib)}]) ++ Acc
end, end,
[], [],
aeso_stdlib:stdlib_list()). aeso_stdlib:stdlib_list()).