Skip to content

Commit e79e621

Browse files
committed
Make 'ast' command work with both legacy and prism parsers
1 parent 278cac0 commit e79e621

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

bin/ast

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ module DotGraph
151151
end
152152
end
153153

154-
root = JRuby.parse(options[:expression])
154+
root = JRuby.parse_result(options[:expression])
155155

156156
if options[:print_ast]
157157
if options[:dot_format]
@@ -191,7 +191,7 @@ def ir_setup(root)
191191
JRuby::IR.compiler_debug = true
192192

193193

194-
builder = org.jruby.ir.builder.IRBuilderAST
194+
builder = org.jruby.ir.builder.IRBuilder
195195

196196
scope = builder.build_root(manager, root).scope
197197
scope.prepare_for_compilation

0 commit comments

Comments
 (0)