Skip to content

Commit

Permalink
Pass fully qualified name for modules
Browse files Browse the repository at this point in the history
  • Loading branch information
raosush committed Jul 1, 2022
1 parent 47150aa commit b75d380
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/rdoc/parser/rbs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ def scan
ast.each do |decl|
parse_member(decl: decl, context: @top_level)
end
@top_level
end

def parse_member(decl:, context:, outer_name: nil)
Expand Down Expand Up @@ -48,7 +49,7 @@ def parse_module_decl(decl:, context:, outer_name: nil)
full_name = fully_qualified_name(outer_name: outer_name, decl: decl)
kmodule = context.add_module(RDoc::NormalModule, full_name.to_s)
kmodule.add_comment(construct_comment(context: context, comment: decl.comment.string), context) if decl.comment
decl.members.each { |member| parse_member(decl: member, context: context, outer_name: outer_name) }
decl.members.each { |member| parse_member(decl: member, context: context, outer_name: full_name) }
end

def parse_constant_decl(decl:, context:, outer_name: nil)
Expand Down

0 comments on commit b75d380

Please sign in to comment.