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

+ emit "endless method def" as :def node. #716

Merged

Conversation

iliabylich
Copy link
Collaborator

@iliabylich iliabylich commented Jun 27, 2020

(according to #676 (comment))

2.8.0-dev is not released, so I think we are free to change it.

@iliabylich
Copy link
Collaborator Author

@marcandre PTAL, for some reason GH doesn't allow me to request a review from you

Copy link
Contributor

@marcandre marcandre left a comment

Choose a reason for hiding this comment

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

LGTM

@iliabylich iliabylich merged commit fc32051 into whitequark:master Jul 1, 2020
@iliabylich iliabylich deleted the emit-endless-method-def-as-def-node branch July 1, 2020 11:53
@palkan
Copy link
Contributor

palkan commented Jul 2, 2020

@iliabylich I tried to migrate to this version and found that it doesn't work in a way we it was discussed: node.loc.end.nil? couldn't be used, since Map::EndlessDefinition has no #end method. Not sure what is a proper way to fix this: drop EndlessDefinition and add assignment to Definition or inherit EndlessDefinition from Definition or simply duplicate attr_accessor :end. @marcandre Thoughts?

@marcandre
Copy link
Contributor

marcandre commented Jul 2, 2020 via email

marcandre added a commit to marcandre/parser that referenced this pull request Jul 4, 2020
@marcandre
Copy link
Contributor

@iliabylich I tried to migrate to this version and found that it doesn't work in a way we it was discussed: node.loc.end.nil? couldn't be used, since Map::EndlessDefinition has no #end method. Not sure what is a proper way to fix this: drop EndlessDefinition and add assignment to Definition or inherit EndlessDefinition from Definition or simply duplicate attr_accessor :end. @marcandre Thoughts?

#718 should be a good solution

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.

None yet

4 participants