26 """ |
26 """ |
27 Generator function to assemble the call path of a given node. |
27 Generator function to assemble the call path of a given node. |
28 |
28 |
29 @param node node to assemble call path for |
29 @param node node to assemble call path for |
30 @type ast.Node |
30 @type ast.Node |
31 @return call path components |
31 @yield call path components |
32 @rtype str |
32 @ytype str |
33 """ |
33 """ |
34 if isinstance(node, ast.Attribute): |
34 if isinstance(node, ast.Attribute): |
35 for v in composeCallPath(node.value): |
35 for v in composeCallPath(node.value): |
36 yield v |
36 yield v |
37 yield node.attr |
37 yield node.attr |