74 <tr> |
74 <tr> |
75 <td><a href="#_indent">_indent</a></td> |
75 <td><a href="#_indent">_indent</a></td> |
76 <td>Module function to return the indentation depth.</td> |
76 <td>Module function to return the indentation depth.</td> |
77 </tr> |
77 </tr> |
78 <tr> |
78 <tr> |
|
79 <td><a href="#calculateEndline">calculateEndline</a></td> |
|
80 <td>Function to calculate the end line of a class or method/function.</td> |
|
81 </tr> |
|
82 <tr> |
79 <td><a href="#readmodule_ex">readmodule_ex</a></td> |
83 <td><a href="#readmodule_ex">readmodule_ex</a></td> |
80 <td>Read a module file and return a dictionary of classes.</td> |
84 <td>Read a module file and return a dictionary of classes.</td> |
81 </tr> |
85 </tr> |
82 <tr> |
86 <tr> |
83 <td><a href="#scan">scan</a></td> |
87 <td><a href="#scan">scan</a></td> |
620 </dd> |
624 </dd> |
621 </dl> |
625 </dl> |
622 <div align="right"><a href="#top">Up</a></div> |
626 <div align="right"><a href="#top">Up</a></div> |
623 <hr /> |
627 <hr /> |
624 <hr /> |
628 <hr /> |
|
629 <a NAME="calculateEndline" ID="calculateEndline"></a> |
|
630 <h2>calculateEndline</h2> |
|
631 <b>calculateEndline</b>(<i>lineno, lines, indent</i>) |
|
632 |
|
633 <p> |
|
634 Function to calculate the end line of a class or method/function. |
|
635 </p> |
|
636 <dl> |
|
637 |
|
638 <dt><i>lineno</i> (int)</dt> |
|
639 <dd> |
|
640 line number to start at |
|
641 </dd> |
|
642 <dt><i>lines</i> (list of str)</dt> |
|
643 <dd> |
|
644 list of source lines |
|
645 </dd> |
|
646 <dt><i>indent</i> (int)</dt> |
|
647 <dd> |
|
648 indent length the class/method/function definition |
|
649 </dd> |
|
650 </dl> |
|
651 <dl> |
|
652 <dt>Returns:</dt> |
|
653 <dd> |
|
654 end line of the class/method/function |
|
655 </dd> |
|
656 </dl> |
|
657 <dl> |
|
658 <dt>Return Type:</dt> |
|
659 <dd> |
|
660 int |
|
661 </dd> |
|
662 </dl> |
|
663 <div align="right"><a href="#top">Up</a></div> |
|
664 <hr /> |
|
665 <hr /> |
625 <a NAME="readmodule_ex" ID="readmodule_ex"></a> |
666 <a NAME="readmodule_ex" ID="readmodule_ex"></a> |
626 <h2>readmodule_ex</h2> |
667 <h2>readmodule_ex</h2> |
627 <b>readmodule_ex</b>(<i>module, path=None, inpackage=False, isPyFile=False</i>) |
668 <b>readmodule_ex</b>(<i>module, path=None, inpackage=False, isPyFile=False</i>) |
628 |
669 |
629 <p> |
670 <p> |