mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 21:44:30 +02:00
parent
ca7297efd3
commit
05f5c545d2
12 changed files with 335 additions and 234 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue