Lines Matching refs:root

64     def _genGroup(self,root,fi):  argument
78 theClass = root.data["class"]
80 theId = root.id
90 for c in root:
101 for c in root:
114 for c in root:
125 def _genSuite(self,root,thedir,sourceFile): argument
139 theClass = root.data["class"]
148 for c in root:
176 for p in root.patterns:
185 for p in root.outputs:
193 for c in root:
207 def _genCode(self,root,dir,sourceFile,headerFile): argument
221 deprecated = root.data["deprecated"]
223 if root.kind == TestScripts.Parser.TreeElem.GROUP:
228 for c in root:
230 self._genGroup(root,headerFile)
235 if root.kind == TestScripts.Parser.TreeElem.SUITE:
236 self._genSuite(root,dir,sourceFile)
238 def getSuites(self,root,listOfSuites): argument
249 deprecated = root.data["deprecated"]
251 theClass = root.data["class"]
252 if root.kind == TestScripts.Parser.TreeElem.SUITE:
256 elif root.kind == TestScripts.Parser.TreeElem.GROUP:
261 for c in root:
269 def _genText(self,root,textFile): argument
332 deprecated = root.data["deprecated"]
334 textFile.write(str(root.kind))
336 textFile.write(str(root.id))
339 if "PARAMID" in root.data:
340 if root.parameterToID:
342 paramId = root.parameterToID[root.data["PARAMID"]]
345 elif root.parent.parameterToID:
347 paramId = root.parent.parameterToID[root.data["PARAMID"]]
358 if root.path:
360 textFile.write(root.path)
366 if root.kind == TestScripts.Parser.TreeElem.SUITE:
369 if root.params:
370 textFile.write("%d\n" % len(root.params.full))
375 textFile.write("%d\n" % len(root.patterns))
376 for (patid,patpath) in root.patterns:
383 textFile.write("%d\n" % len(root.outputs))
384 for (outid,outname) in root.outputs:
391 textFile.write("%d\n" % len(root.parameters))
392 for (paramKind,parid,parpath) in root.parameters:
428 for c in root:
691 def _genDriver(self,root,driverFile,includeFile): argument
709 deprecated = root.data["deprecated"]
724 self._write32(root.kind,driverFile)
725 self._write32(root.id,driverFile)
729 if "PARAMID" in root.data:
730 if root.parameterToID:
732 paramId = root.parameterToID[root.data["PARAMID"]]
734 elif root.parent.parameterToID:
736 paramId = root.parent.parameterToID[root.data["PARAMID"]]
748 if root.path:
749 self._currentPaths.append(root.path)
750 self._currentParamPaths.append(root.path)
752 self._writeString(root.path,driverFile)
756 if root.kind == TestScripts.Parser.TreeElem.SUITE:
758 if root.params:
759 self._write32(len(root.params.full),driverFile)
766 self._write32(len(root.patterns),driverFile)
767 for (patid,patpath) in root.patterns:
780 self._write32(len(root.outputs),driverFile)
781 for (outid,outname) in root.outputs:
789 self._write32(len(root.parameters),driverFile)
790 for (paramKind,parid,parpath) in root.parameters:
829 for c in root:
835 def genCodeForTree(self,genFolder,root,benchMode): argument
846 suites = self.getSuites(root,[])
864 self._genCode(root,"%s" % header,sourceFile,headerFile)
869 self._genText(root,textFile)
893 self._genDriver(root,driverFile,includeFile)