(PDOC-35) Dispatch handlers in correct order
Subclasses have their superclass as part of their namespace and objects in the subclass's namespace must be registered first. Reverse the list of parsed objects so that the classes will be handled and registered in the correct order.
This commit is contained in:
parent
bd319f3c82
commit
4dc6bc429a
|
@ -24,7 +24,7 @@ class PuppetX::PuppetLabs::Strings::YARD::PuppetParser < YARD::Parser::Base
|
|||
statements = @transformer.transform(@parse_result)
|
||||
|
||||
# Ensure an array is returned and prune any nil values.
|
||||
Array(statements).compact
|
||||
Array(statements).compact.reverse
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue