146 self.__addExternalClass(className, 0, 0) |
146 self.__addExternalClass(className, 0, 0) |
147 nodes.append(className) |
147 nodes.append(className) |
148 |
148 |
149 if hierarchy.get(className): |
149 if hierarchy.get(className): |
150 todo.append(hierarchy.get(className)) |
150 todo.append(hierarchy.get(className)) |
151 children = list(hierarchy.get(className).keys()) |
151 for child in hierarchy.get(className, []): |
152 for child in children: |
|
153 if (className, child) not in routes: |
152 if (className, child) not in routes: |
154 routes.append((className, child)) |
153 routes.append((className, child)) |
155 |
154 |
156 del todo[0] |
155 del todo[0] |
157 |
156 |
266 name = _class.name |
265 name = _class.name |
267 if isRbModule: |
266 if isRbModule: |
268 name = "{0} (Module)".format(name) |
267 name = "{0} (Module)".format(name) |
269 cl = ClassModel( |
268 cl = ClassModel( |
270 name, |
269 name, |
271 sorted(_class.methods.keys())[:], |
270 sorted(_class.methods), |
272 sorted(_class.attributes.keys())[:], |
271 sorted(_class.attributes), |
273 sorted(_class.globals.keys())[:], |
272 sorted(_class.globals), |
274 ) |
273 ) |
275 cw = ClassItem( |
274 cw = ClassItem( |
276 cl, |
275 cl, |
277 False, |
276 False, |
278 x, |
277 x, |