MCPcopy Create free account
hub / github.com/PixarAnimationStudios/OpenUSD / traverse

Method traverse

docs/python/doxygenlib/cdParser.py:241–256  ·  view source on GitHub ↗

Traverse the XML tree and builds DocElements for each item.

(self, writerClass)

Source from the content-addressed store, hash-verified

239 #
240
241 def traverse(self, writerClass):
242 """Traverse the XML tree and builds DocElements for each item."""
243
244 # ensure we have a class to create our doc strings for us
245 if not writerClass:
246 Error("traverse: No writer class was specified.")
247
248 # traverse the XML tree and generate DocElements
249 self.writer = writerClass
250 self.docElements = []
251 for node in self.rootNode:
252 obj = self.__traverse_r(node)
253 self.__resolveInnerClassRefs(obj)
254 self.docElements += obj
255
256 return self.docElements
257
258 def __traverse_r(self, xmlNode):
259 """Recursive continuation of the traverse() method."""

Callers 1

convertDoxygen.pyFile · 0.80

Calls 3

__traverse_rMethod · 0.95
ErrorFunction · 0.70

Tested by

no test coverage detected