Esempio n. 1
0
 def build(self, lib):
     libdoc = LibraryDoc(name=lib.name,
                         doc=self._get_doc(lib),
                         doc_format=lib.doc_format)
     libdoc.inits = self._get_initializers(lib)
     libdoc.keywords = KeywordDocBuilder().build_keywords(lib)
     return libdoc
 def build(self, library):
     name, args = self._split_library_name_and_args(library)
     lib = TestLibrary(name, args, variables=self.variables)
     libdoc = LibraryDoc(name=lib.name,
                         doc=self._get_doc(lib),
                         version=lib.version,
                         scope=str(lib.scope),
                         doc_format=lib.doc_format,
                         source=lib.source,
                         lineno=lib.lineno)
     libdoc.inits = self._get_initializers(lib)
     libdoc.keywords = KeywordDocBuilder().build_keywords(lib)
     return libdoc