class YARP::ParseResult
Experimental RBS support (using type sampling data from the type_fusion
project).
# sig/yarp.rbs class YARP::ParseResult def initialize: (YARP::ProgramNode value, Array[YARP::Comment] comments, Array[] errors, Array[] warnings, YARP::Source source) -> void end
encountered.
the AST, any comments that were encounters, and any errors that were
This represents the result of a call to ::parse or ::parse_file. It contains
def attach_comments!
def attach_comments! Comments.new(self).attach! end
def deconstruct_keys(keys)
def deconstruct_keys(keys) { value: value, comments: comments, errors: errors, warnings: warnings } end
def failure?
def failure? !success? end
def initialize(value, comments, errors, warnings, source)
Experimental RBS support (using type sampling data from the type_fusion
project).
def initialize: (YARP::ProgramNode value, (YARP::Comment | YARP::Comment | YARP::Comment | YARP::Comment | YARP::Comment | YARP::Comment | YARP::Comment | YARP::Comment | YARP::Comment | YARP::Comment | YARP::Comment | YARP::Comment | YARP::Comment | YARP::Comment | ) comments, errors, warnings, YARP::Source source) -> void
This signature was generated using 2 samples from 1 application.
def initialize(value, comments, errors, warnings, source) @value = value @comments = comments @errors = errors @warnings = warnings @source = source end
def mark_newlines!
def mark_newlines! value.accept(Newlines.new(Array.new(1 + source.offsets.size, false))) end
def success?
def success? errors.empty? end