--- a/eric7/Documentation/Source/eric7.UI.PythonDisViewer.html Tue Aug 24 18:06:48 2021 +0200 +++ b/eric7/Documentation/Source/eric7.UI.PythonDisViewer.html Tue Aug 24 18:10:24 2021 +0200 @@ -47,7 +47,15 @@ <h3>Functions</h3> <table> -<tr><td>None</td></tr> + +<tr> +<td><a href="#linestarts">linestarts</a></td> +<td>Function to get the line starts for the given code object.</td> +</tr> +<tr> +<td><a href="#tryCompile">tryCompile</a></td> +<td>Function to attempt to compile the given source, first as an expression and then as a statement if the first approach fails.</td> +</tr> </table> <hr /> <hr /> @@ -191,10 +199,6 @@ <td>Private method to style the info labels iaw.</td> </tr> <tr> -<td><a href="#PythonDisViewer.__tryCompile">__tryCompile</a></td> -<td>Private method to attempt to compile the given source, first as an expression and then as a statement if the first approach fails.</td> -</tr> -<tr> <td><a href="#PythonDisViewer.__updateItemEndLine">__updateItemEndLine</a></td> <td>Private method to update an items end line based on its children.</td> </tr> @@ -655,37 +659,6 @@ <p> Private method to style the info labels iaw. selected colors. </p> -<a NAME="PythonDisViewer.__tryCompile" ID="PythonDisViewer.__tryCompile"></a> -<h4>PythonDisViewer.__tryCompile</h4> -<b>__tryCompile</b>(<i>source, name</i>) - -<p> - Private method to attempt to compile the given source, first as an - expression and then as a statement if the first approach fails. -</p> -<dl> - -<dt><i>source</i> (str)</dt> -<dd> -source code string to be compiled -</dd> -<dt><i>name</i> (str)</dt> -<dd> -name of the file containing the source -</dd> -</dl> -<dl> -<dt>Return:</dt> -<dd> -compiled code -</dd> -</dl> -<dl> -<dt>Return Type:</dt> -<dd> -code object -</dd> -</dl> <a NAME="PythonDisViewer.__updateItemEndLine" ID="PythonDisViewer.__updateItemEndLine"></a> <h4>PythonDisViewer.__updateItemEndLine</h4> <b>__updateItemEndLine</b>(<i>itm</i>) @@ -815,4 +788,75 @@ <div align="right"><a href="#top">Up</a></div> <hr /> +<hr /> +<a NAME="linestarts" ID="linestarts"></a> +<h2>linestarts</h2> +<b>linestarts</b>(<i>co, filename="", getall=True</i>) + +<p> + Function to get the line starts for the given code object. +</p> +<dl> + +<dt><i>co</i> (code object or str)</dt> +<dd> +reference to the compiled code object or the source code +</dd> +<dt><i>filename</i> (str)</dt> +<dd> +name of the source file (optional) +</dd> +<dt><i>getall</i> (bool)</dt> +<dd> +flag indicating to get all line starts recursively +</dd> +</dl> +<dl> +<dt>Return:</dt> +<dd> +list of lines starting some byte code instruction block +</dd> +</dl> +<dl> +<dt>Return Type:</dt> +<dd> +list of int +</dd> +</dl> +<div align="right"><a href="#top">Up</a></div> +<hr /> +<hr /> +<a NAME="tryCompile" ID="tryCompile"></a> +<h2>tryCompile</h2> +<b>tryCompile</b>(<i>source, name</i>) + +<p> + Function to attempt to compile the given source, first as an + expression and then as a statement if the first approach fails. +</p> +<dl> + +<dt><i>source</i> (str)</dt> +<dd> +source code string to be compiled +</dd> +<dt><i>name</i> (str)</dt> +<dd> +name of the file containing the source +</dd> +</dl> +<dl> +<dt>Return:</dt> +<dd> +compiled code +</dd> +</dl> +<dl> +<dt>Return Type:</dt> +<dd> +code object +</dd> +</dl> +<div align="right"><a href="#top">Up</a></div> +<hr /> </body></html> \ No newline at end of file