Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@MarkoMin
Copy link
Contributor

Attempt to fix the behavior of erl_syntax_lib:annotate_bindings/1-2 described in #4733 (labeled with "help wanted").
Issue is also mentioned in erlang_ls repo, so potential fix may also allow better UX while using it.

Description:
My plan was to include a case in vann/2 function to handle named_fun_exprnodes correctly. Annotation process is almost identical to the one of fun_expr, obviously with the difference of handling named_fun_expr's name. Name of the function is set into the environment for each of the clause patterns, because patterns can shadow the function name.

I included one concrete example for the testing purpose.
GitHub actions passed successfully on the fork repo.

@CLAassistant
Copy link

CLAassistant commented Nov 30, 2022

CLA assistant check
All committers have signed the CLA.

@IngelaAndin IngelaAndin added the team:VM Assigned to OTP team VM label Dec 5, 2022
@jhogberg
Copy link
Contributor

jhogberg commented Dec 7, 2022

Thanks for the PR! It looks good, and I'll add it to our nightly tests once 25.2 is released. :)

@jhogberg jhogberg added the testing currently being tested, tag is used by OTP internal CI label Dec 15, 2022
@jhogberg jhogberg added this to the OTP-25.3 milestone Dec 15, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Dec 23, 2022

CT Test Results

    2 files    13 suites   3m 35s ⏱️
109 tests 107 ✔️ 2 💤 0
124 runs  122 ✔️ 2 💤 0

Results for commit 3609146.

To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass.

See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally.

Artifacts

// Erlang/OTP Github Action Bot

@jhogberg jhogberg merged commit 2b700de into erlang:maint Jan 4, 2023
@jhogberg
Copy link
Contributor

jhogberg commented Jan 4, 2023

Merged, thanks again for the PR! :)

@MarkoMin MarkoMin deleted the syntax_tools/erl_syntax_lib/fix4733 branch January 4, 2023 09:22
@MarkoMin MarkoMin restored the syntax_tools/erl_syntax_lib/fix4733 branch February 3, 2023 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team:VM Assigned to OTP team VM testing currently being tested, tag is used by OTP internal CI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants