If there was a error generated during the parse, then raise an appropriate syntax error. Otherwise return the result.
Parses the given Ruby program read from src
. src
must be a String
or an IO
or a object with a gets method.
True if the parser encountered an error during parsing.
Parse the source and return the result.
This method is called when weak warning is produced by the parser. fmt
and args
is printf style.
This method is called when strong warning is produced by the parser. fmt
and args
is printf style.
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.
Translate the given parse result and filepath into the seattlerb/ruby_parser gem’s Sexp format.
Wraps io
and updates digest for each of the digest algorithms in the digests
Hash
. Returns the digests hash. Example:
io = StringIO.new digests = { 'SHA1' => OpenSSL::Digest.new('SHA1'), 'SHA512' => OpenSSL::Digest.new('SHA512'), } Gem::Package::DigestIO.wrap io, digests do |digest_io| digest_io.write "hello" end digests['SHA1'].hexdigest #=> "aaf4c61d[...]" digests['SHA512'].hexdigest #=> "9b71d224[...]"
Return the ActivationRequest
that contained the dependency that we were activated for.
Errors encountered while resolving gems
@@foo, = bar ^^^^^
$foo, = bar ^^^^
@foo, = bar ^^^^
def foo(**bar); end
^^^^^
def foo(**); end
^^