class RDoc::Parser::PrismRuby::RDocVisitor
def visit_constant_path_write_node(node)
def visit_constant_path_write_node(node) @scanner.process_comments_until(node.location.start_line - 1) path = constant_path_string(node.target) return unless path @scanner.add_constant( path, constant_path_string(node.value) || node.value.slice, node.location.start_line, node.location.end_line ) @scanner.skip_comments_until(node.location.end_line) # Do not traverse rhs not to document `A::B = Struct.new{def undocumentable_method; end}` end