Parses a source buffer and returns the AST.
Parses the given Ruby program read from src
. src
must be a String
or an IO
or a object with a gets method.
Parse the source and return the result.
Parse the given source and translate it into the seattlerb/ruby_parser gem’s Sexp format.
Parse the given source and translate it into the seattlerb/ruby_parser gem’s Sexp format.
Return the ActivationRequest
that contained the dependency that we were activated for.
The version of this activation request’s specification
The version of the gem for this specification.
Sets dmp1, dmq1, iqmp for the RSA
instance. They are calculated by d mod (p - 1)
, d mod (q - 1)
and q^(-1) mod p
respectively.
Fetch the start character offset of the value.
Fetch the start character column of the value.
Parses a source buffer and returns the AST and the source code comments.
Since prism resolves num params for us, we don’t need to support this kind of logic here.
until foo; bar end ^^^^^^^^^^^^^^^^^
bar until foo ^^^^^^^^^^^^^
Oldest version we support downgrading to. This is the version that originally ships with the oldest supported patch version of ruby.
Foo::Bar = 1 ^^^^^^^^^^^^
Foo::Foo, Bar::Bar = 1 ^^^^^^^^ ^^^^^^^^
Foo::Bar, = baz ^^^^^^^^