class method
Prism::Serialize.load_parse_comments
load_parse_comments(input, serialized, freeze)
lib/prism/serialize.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/prism/serialize.rb, line 131
def self.load_parse_comments(input, serialized, freeze)
source = Source.for(input)
loader = Loader.new(source, serialized)
loader.load_header
loader.load_encoding
start_line = loader.load_varsint
source.replace_start_line(start_line)
result = loader.load_comments(freeze)
raise unless loader.eof?
source.deep_freeze if freeze
result
end
Deserialize the dumped output from a request to parse_comments or parse_file_comments.
The formatting of the source of this method is purposeful to illustrate the structure of the serialized data.