[ruby/prism] Wire up options through the FFI API

f0aa8ad93b
This commit is contained in:
Kevin Newton 2023-11-02 14:01:20 -04:00
parent ca7297efd3
commit 05f5c545d2
No known key found for this signature in database
GPG key ID: 0EAD74C79EC73F26
12 changed files with 335 additions and 234 deletions

View file

@ -187,13 +187,5 @@ module Prism
def self.newlines(source)
Prism.parse(source).source.offsets
end
# :call-seq:
# Debug::parse_serialize_file(filepath) -> dumped
#
# For the given file, parse the AST and dump it to a string.
def self.parse_serialize_file(filepath)
parse_serialize_file_metadata(filepath, [filepath.bytesize, filepath.b, 0].pack("LA*L"))
end
end
end