--- a/eric6/Documentation/Source/eric6.Plugins.CheckerPlugins.CodeStyleChecker.Simplify.SimplifyChecker.html Sat Apr 03 16:02:33 2021 +0200 +++ b/eric6/Documentation/Source/eric6.Plugins.CheckerPlugins.CodeStyleChecker.Simplify.SimplifyChecker.html Sat Apr 03 16:54:10 2021 +0200 @@ -77,18 +77,10 @@ <td>Private method to record an issue.</td> </tr> <tr> -<td><a href="#SimplifyChecker.__generateTree">__generateTree</a></td> -<td>Private method to generate an AST for our source.</td> -</tr> -<tr> <td><a href="#SimplifyChecker.__ignoreCode">__ignoreCode</a></td> <td>Private method to check if the message code should be ignored.</td> </tr> <tr> -<td><a href="#SimplifyChecker.__reportInvalidSyntax">__reportInvalidSyntax</a></td> -<td>Private method to report a syntax error.</td> -</tr> -<tr> <td><a href="#SimplifyChecker.run">run</a></td> <td>Public method to check the given source against functions to be replaced by 'pathlib' equivalents.</td> </tr> @@ -101,7 +93,7 @@ <a NAME="SimplifyChecker.__init__" ID="SimplifyChecker.__init__"></a> <h4>SimplifyChecker (Constructor)</h4> -<b>SimplifyChecker</b>(<i>source, filename, selected, ignored, expected, repeat</i>) +<b>SimplifyChecker</b>(<i>source, filename, tree, selected, ignored, expected, repeat</i>) <p> Constructor @@ -116,6 +108,10 @@ <dd> name of the source file </dd> +<dt><i>tree</i> (ast.Module)</dt> +<dd> +AST tree of the source code +</dd> <dt><i>selected</i> (list of str)</dt> <dd> list of selected codes @@ -159,25 +155,6 @@ arguments for the message </dd> </dl> -<a NAME="SimplifyChecker.__generateTree" ID="SimplifyChecker.__generateTree"></a> -<h4>SimplifyChecker.__generateTree</h4> -<b>__generateTree</b>(<i></i>) - -<p> - Private method to generate an AST for our source. -</p> -<dl> -<dt>Return:</dt> -<dd> -generated AST -</dd> -</dl> -<dl> -<dt>Return Type:</dt> -<dd> -ast.AST -</dd> -</dl> <a NAME="SimplifyChecker.__ignoreCode" ID="SimplifyChecker.__ignoreCode"></a> <h4>SimplifyChecker.__ignoreCode</h4> <b>__ignoreCode</b>(<i>code</i>) @@ -204,13 +181,6 @@ bool </dd> </dl> -<a NAME="SimplifyChecker.__reportInvalidSyntax" ID="SimplifyChecker.__reportInvalidSyntax"></a> -<h4>SimplifyChecker.__reportInvalidSyntax</h4> -<b>__reportInvalidSyntax</b>(<i></i>) - -<p> - Private method to report a syntax error. -</p> <a NAME="SimplifyChecker.run" ID="SimplifyChecker.run"></a> <h4>SimplifyChecker.run</h4> <b>run</b>(<i></i>)