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

TreeRewrite example doesn't work #534

Closed
sevenmaxis opened this issue Nov 29, 2018 · 1 comment
Closed

TreeRewrite example doesn't work #534

sevenmaxis opened this issue Nov 29, 2018 · 1 comment

Comments

@sevenmaxis
Copy link

Example from TreeRewriter doesn't work.

It produces such message:

.rbenv/versions/2.6.0-preview3/lib/ruby/gems/2.6.0/gems/parser-2.5.3.0/lib/parser/
tree_rewriter.rb:62:in `rewrite': wrong number of arguments (given 1, expected 2) 
(ArgumentError)

It requires second argument ast in method:

def rewrite(source_buffer, ast, **policy)

Ruby version: ruby 2.6.0preview3

@mvz
Copy link
Contributor

mvz commented Jan 16, 2019

Fixed in #543.

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

No branches or pull requests

3 participants