Skip to content

Commit

Permalink
Adjust comment of skip_record_field_atom
Browse files Browse the repository at this point in the history
Should conflict with anything
  • Loading branch information
gomoripeti committed Apr 17, 2021
1 parent c3ba39d commit da4d1dd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/els_lsp/src/els_parser.erl
Original file line number Diff line number Diff line change
Expand Up @@ -689,8 +689,8 @@ attribute_subtrees(AttrName, Args) ->
%% Attribute name not an atom, probably a macro
[[AttrName], Args].

%% Skip visiting atoms of record field names as they are already represented as
%% `record_field' pois
%% Skip visiting atoms of record and record field names as they are already
%% represented as `record_expr' or `record_field' pois
-spec skip_record_field_atom(tree()) -> [tree()].
skip_record_field_atom(NameNode) ->
case erl_syntax:type(NameNode) of
Expand All @@ -703,8 +703,8 @@ skip_record_field_atom(NameNode) ->
-spec skip_type_name_atom(tree()) -> [tree()].
skip_type_name_atom(NameNode) ->
case erl_syntax:type(NameNode) of
atom ->
[];
atom ->
[];
module_qualifier ->
skip_record_field_atom(erl_syntax:module_qualifier_body(NameNode))
++
Expand Down

0 comments on commit da4d1dd

Please sign in to comment.