Class: RBS::InlineParser
- Inherits:
-
Object
- Object
- RBS::InlineParser
- Defined in:
- lib/rbs/inline_parser.rb,
lib/rbs/inline_parser/comment_association.rb
Defined Under Namespace
Modules: Diagnostic Classes: CommentAssociation, Parser, Result
Class Method Summary collapse
Class Method Details
.parse(buffer, prism) ⇒ Object
45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/rbs/inline_parser.rb', line 45 def self.parse(buffer, prism) result = Result.new(buffer, prism) parser = Parser.new(result) parser.visit(prism.value) parser.comments.each_unassociated_block do |block| parser.report_unused_block(block) end result end |