Skip to content
New issue

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

Update erlfmt to 1.0.0 #1113

Merged
merged 5 commits into from
Oct 16, 2021
Merged

Update erlfmt to 1.0.0 #1113

merged 5 commits into from
Oct 16, 2021

Conversation

gomoripeti
Copy link
Contributor

Fixes #1097.

@@ -507,6 +507,24 @@ erlfmt_to_st(Node) ->
),
Pos
);
{'receive', Pos, {clauses, _PosClauses, ClausList}} ->
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: while readingClausList can be easily confused with ClauseList below.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops, thanks for catching the typo.

(btw this is the related upstream commit WhatsApp/erlfmt@e532852#diff-bf3e7950ecdf843b8364ae0b189dd89b12d8b374c265f0b04b96d17c86894863)

Change of behaviour:
- The record POI now has only a list of atoms in data -> field_list.
  The default value syntax trees were not used and some memory can be saved this
  way.
- ?MODULE macro as record name also handled for record type (eg
  go-to-definintion also works from types and specs)
The subtrees function for some node types always skipped record name element,
for other types it always included it. This resulted in the inconsistency that
sometimes no macro POI was created, in other cases a macro POI was created for
?MODULE macro as well (which would prevent eg. go to definition of the record).
@robertoaloi
Copy link
Member

Amazing work, thanks! 🙏

@robertoaloi robertoaloi merged commit eda3cb7 into erlang-ls:main Oct 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Parsing error
2 participants