Permalink
Browse files

Tool Update

  • Loading branch information...
1 parent 4b3a69b commit 940ec5da1b9fbc38336e953c52b7c85c6dfba004 @davglass davglass committed Jul 31, 2008
Showing with 6 additions and 3 deletions.
  1. +6 −3 bin/yuidoc_parse.py
View
9 bin/yuidoc_parse.py
@@ -370,7 +370,7 @@ def defineClass(name):
token = next()
self.blocks.append(tokenMap);
-
+
if const.NAMESPACE in tokenMap:
if not const.NAMESPACES in self.data: self.data[const.NAMESPACES] = []
ns = tokenMap[const.NAMESPACE][0]
@@ -440,12 +440,12 @@ def parseModule(tokenMap):
target[const.SUBMODULES].append(tokenMap[const.SUBMODULE][0]);
self.subModName = tokenMap[const.SUBMODULE][0];
target[const.SUBDATA][self.subModName] = { const.NAME: self.currentClass }
+
if const.DESCRIPTION in tokenMap:
target[const.SUBDATA][self.subModName][const.DESCRIPTION] = tokenMap[const.DESCRIPTION][0]
-
- log.warn('DAV:: ' + self.currentClass);
tokenMap.pop(const.SUBMODULE)
+
if const.DESCRIPTION in tokenMap:
target[const.DESCRIPTION] = tokenMap[const.DESCRIPTION][0]
@@ -496,6 +496,9 @@ def parseModule(tokenMap):
if const.MODULE in tokenMap:
target, tokenMap = parseModule(tokenMap)
+ if not self.subModName:
+ self.subModName = None
+
if self.subModName:
self.data[const.MODULES][self.currentModule][const.SUBDATA][self.subModName][const.NAME] = longName
if const.DESCRIPTION in tokenMap:

0 comments on commit 940ec5d

Please sign in to comment.