summaryrefslogtreecommitdiff
path: root/lib/prism.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/prism.rb')
-rw-r--r--lib/prism.rb11
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/prism.rb b/lib/prism.rb
index dab3420377..781bd4bb01 100644
--- a/lib/prism.rb
+++ b/lib/prism.rb
@@ -20,7 +20,6 @@ module Prism
autoload :DSL, "prism/dsl"
autoload :InspectVisitor, "prism/inspect_visitor"
autoload :LexCompat, "prism/lex_compat"
- autoload :LexRipper, "prism/lex_ripper"
autoload :MutationCompiler, "prism/mutation_compiler"
autoload :Pack, "prism/pack"
autoload :Pattern, "prism/pattern"
@@ -35,7 +34,6 @@ module Prism
# private here.
private_constant :LexCompat
- private_constant :LexRipper
# Raised when requested to parse as the currently running Ruby version but Prism has no support for it.
class CurrentVersionError < ArgumentError
@@ -69,15 +67,6 @@ module Prism
end
# :call-seq:
- # Prism::lex_ripper(source) -> Array
- #
- # This wraps the result of Ripper.lex. It produces almost exactly the
- # same tokens. Raises SyntaxError if the syntax in source is invalid.
- def self.lex_ripper(source)
- LexRipper.new(source).result # steep:ignore
- end
-
- # :call-seq:
# Prism::load(source, serialized, freeze) -> ParseResult
#
# Load the serialized AST using the source as a reference into a tree.