class method
Prism.profile
profile(source, **options)
lib/prism/ffi.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/prism/ffi.rb, line 343
def profile(source, **options)
LibRubyParser::PrismString.with_string(source) do |string|
LibRubyParser::PrismBuffer.with do |buffer|
LibRubyParser.pm_serialize_parse(buffer.pointer, string.pointer, string.length, dump_options(options))
nil
end
end
end
Mirror the Prism.profile API by using the serialization API.