summaryrefslogtreecommitdiff
path: root/lib/prism/ffi.rb
diff options
context:
space:
mode:
authorKevin Newton <[email protected]>2023-10-13 12:16:11 -0400
committerJemma Issroff <[email protected]>2023-10-16 15:40:19 -0700
commit5523a23469987f92e38d52d4332bde09bdd8896c ()
tree01c4fcef6dea113e55ab1eedb59742a5ebad2b36 /lib/prism/ffi.rb
parent39dd3343d8672a70ebb0990c166d99a8b29ee19e (diff)
[ruby/prism] Attach magic comments to the parse result
https://.com/ruby/prism/commit/c7ef25a79a
-rw-r--r--lib/prism/ffi.rb4
1 files changed, 2 insertions, 2 deletions
@@ -234,11 +234,11 @@ module Prism
loader = Serialize::Loader.new(source, buffer.read)
tokens = loader.load_tokens
- node, comments, errors, warnings = loader.load_nodes
tokens.each { |token,| token.value.force_encoding(loader.encoding) }
- ParseResult.new([node, tokens], comments, errors, warnings, source)
end
end