We would like to use this gem to grab the source of a proc. However, in some cases, we have to work with multiple procs in a single line, for which proc_to_ast raises ProcToAst::MultiMatchError because source_location does not have enough information to uniquely identify the source of a proc.
This will be solved in ruby 4.1, see ruby/ruby#15580. There's also a PR to add that information to Prism.node_for: ruby/prism#3808
Could you please add this functionality to proc_to_ast? I'm happy to help in any way I can.
We would like to use this gem to grab the source of a proc. However, in some cases, we have to work with multiple procs in a single line, for which
proc_to_astraisesProcToAst::MultiMatchErrorbecausesource_locationdoes not have enough information to uniquely identify the source of a proc.This will be solved in ruby 4.1, see ruby/ruby#15580. There's also a PR to add that information to
Prism.node_for: ruby/prism#3808Could you please add this functionality to
proc_to_ast? I'm happy to help in any way I can.