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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove ExpressionParser and use the amazing RuboCop::AST::NodePattern #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jonatas
Copy link
Owner

@jonatas jonatas commented May 24, 2020

The RuboCop AST is finally isolated into a separated gem and now we don't need to keep the core of the library as NodePattern is pretty much stable and easy to use.

It also validates syntaxes of the expression and had a slightly different behavior on ... operator.

Basically symbols needs explicitly call with :. nil becomes nil? in most part of the cases and the .something? is just something? now ;)

Kudos to @marcandre for extracting it from RoboCop. My first attempt failed and he simply did it 馃殌

lib/fast.rb Outdated Show resolved Hide resolved
@sourcelevel-bot
Copy link

SourceLevel has finished reviewing this Pull Request and has found:

  • 1 possible new issue (including those that may have been commented here).
  • 17 fixed issues! 馃帀

See more details about this review.

@andriy-baran
Copy link

@jonatas Do you plan to merge this?

@jonatas
Copy link
Owner Author

jonatas commented Dec 14, 2021

Hi @andriy-baran, thank you for showing interest in this! I made it on a weekend and never pushed it again to the upstreaming changes.

I'll not merge it too soon as I need some time to catch up with the latest expression of the rubocop-ast news and guarantee it will be fully compatible. If you have the time to move on, feel free to rebase I'll be happy to review.

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

2 participants