We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The location can also come as a tuple {Line, Column} now, so we need to update the ktn_code:get_location/1 function.
{Line, Column}
ktn_code:get_location/1
%% @private get_location(Attrs) when is_integer(Attrs) -> Line = Attrs, {Line, 1}; get_location(Attrs) when is_list(Attrs) -> Line = proplists:get_value(line, Attrs, undefined), Column = proplists:get_value(column, Attrs, undefined), case {Line, Column} of {undefined, undefined} -> proplists:get_value(location, Attrs, {-1, -1}); _ -> {Line, Column} end; get_location(Location = {_Line, _Column}) -> %% This is the added clause Location; get_location(_Attrs) -> {-1, -1}.
The text was updated successfully, but these errors were encountered:
[#112] Upgrade aleppo
704ef5b
6b80973
f1363c5
b7b2287
81868d2
jfacorro
No branches or pull requests
The location can also come as a tuple
{Line, Column}
now, so we need to update thektn_code:get_location/1
function.The text was updated successfully, but these errors were encountered: