Skip to content

Commit a9e92e8

Browse files
Apply suggestions from code review
Co-authored-by: Andrea Leopardi <[email protected]>
1 parent f672cf1 commit a9e92e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/elixir/src/elixir_parser.yrl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -905,8 +905,8 @@ extract_identifier({Kind, _, Identifier}) when
905905

906906
build_nested_parens(Dot, Args1, {Args2Meta, Args2}, {BlockMeta, Block}) ->
907907
Identifier = build_parens(Dot, Args1, {[], []}),
908-
% Take line and column meta from the call target node
909-
LocationMeta = [{Key, Value} || {Key, Value} <- ?meta(Identifier), Key == line orelse Key == column],
908+
%% Take line and column meta from the call target node
909+
LocationMeta = lists:filter(fun({Key, _}) -> Key == line orelse Key == column end, ?meta(Identifier))
910910
Meta = BlockMeta ++ Args2Meta ++ LocationMeta,
911911
{Identifier, Meta, append_non_empty(Args2, Block)}.
912912

0 commit comments

Comments
 (0)