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

Prism custom builder #354

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Earlopain
Copy link
Contributor

Context: ruby/prism#3443

I'd like for prism to emit ast for new ruby features, like it. It's incredibly easy for prism to emit itblock, it just needs a custom builder, with a few lines changed to do so. But since rubocop-ast already uses its own custom builder, they need to play nicely together for it to work.

The PR for prism just adds the builder class, without any changes. I'd like to explore that after this.

It may emit different ast when used with a ruby version
that `parser` doesn't understand, for example `itblock`
That's better than checking if requires succeed, especially now that
not only a parser may be missing
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.

1 participant