instance method
Prism::Translation::RubyParser#parse_file
parse_file(filepath)
lib/prism/translation/ruby_parser.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/prism/translation/ruby_parser.rb, line 1923
def parse_file(filepath)
translate(Prism.parse_file(filepath, partial_script: true), filepath)
end
Parse the given file and translate it into the seattlerb/ruby_parser gem’s Sexp format.