# File lib/puppet/util/rdoc.rb, line 78
78:     def output_resource_doc(code)
79:         code.sort { |a,b| a.line <=> b.line }.each do |stmt|
80:             output_resource_doc(stmt.children) if stmt.is_a?(Puppet::Parser::AST::ASTArray)
81: 
82:             if stmt.is_a?(Puppet::Parser::AST::Resource)
83:                 puts stmt.doc if !stmt.doc.nil? and !stmt.doc.empty?
84:             end
85:         end
86:     end