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

review: fix(pattern): ForEachNode#replaceNode #2266

Merged
merged 3 commits into from
Aug 1, 2018

Conversation

pvojtechovsky
Copy link
Collaborator

No description provided.

@zielint0
Copy link
Contributor

Cann't -> Cannot

@pvojtechovsky pvojtechovsky changed the title WIP: fix(pattern): ForEachNode#replaceNode review: fix(pattern): ForEachNode#replaceNode Jul 23, 2018
@pvojtechovsky
Copy link
Collaborator Author

Tomasz pointed at this problem in another PR, so I noticed that there is wrong code here. This PR contains a fix, but I do not know how to test it. The test would have to

  1. define a pattern parameter
  2. to use it as inline forEach
  3. to replace that parameter again
    ... does this use case makes sense? Hard to say...

@zielint0
Copy link
Contributor

Thank you for deeper inspection than in my PR :)

@surli
Copy link
Collaborator

surli commented Jul 30, 2018

I'm ok to merge it without a test: but can you at least add some comments on the method to explain that specific situation?

@surli
Copy link
Collaborator

surli commented Jul 30, 2018

Apparently you broke the checkstyle when pasting the comment I think. Could you fix it?

@surli surli merged commit 59ea00e into INRIA:master Aug 1, 2018
@pvojtechovsky pvojtechovsky deleted the fixForEachNode branch September 1, 2018 05:27
@monperrus monperrus mentioned this pull request Sep 20, 2018
4 tasks
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.

3 participants