eric6/Documentation/Source/eric6.Plugins.CheckerPlugins.CodeStyleChecker.Simplify.SimplifyNodeVisitor.html

changeset 8215
fc5d68a6889e
parent 8202
df194f43119c
child 8248
b00c1c6cc312
equal deleted inserted replaced
8214:51f0d3e047ec 8215:fc5d68a6889e
144 <tr> 144 <tr>
145 <td><a href="#SimplifyNodeVisitor.__check119">__check119</a></td> 145 <td><a href="#SimplifyNodeVisitor.__check119">__check119</a></td>
146 <td>Private method to check for classes that should be "dataclasses".</td> 146 <td>Private method to check for classes that should be "dataclasses".</td>
147 </tr> 147 </tr>
148 <tr> 148 <tr>
149 <td><a href="#SimplifyNodeVisitor.__check120">__check120</a></td> 149 <td><a href="#SimplifyNodeVisitor.__check120_121">__check120_121</a></td>
150 <td>Private method to check for classes that inherit from object.</td> 150 <td>Private method to check for classes that inherit from object.</td>
151 </tr> 151 </tr>
152 <tr> 152 <tr>
153 <td><a href="#SimplifyNodeVisitor.__check121">__check121</a></td> 153 <td><a href="#SimplifyNodeVisitor.__check122">__check122</a></td>
154 <td>Private method to check for assignments that could be converted into an augmented assignment</td> 154 <td>Private method to check for all if-blocks which only check if a key is in a dictionary.</td>
155 </tr>
156 <tr>
157 <td><a href="#SimplifyNodeVisitor.__check181">__check181</a></td>
158 <td>Private method to check for assignments that could be converted into an augmented assignment.</td>
159 </tr>
160 <tr>
161 <td><a href="#SimplifyNodeVisitor.__check182">__check182</a></td>
162 <td>Private method to check for calls of type 'super(Foo, self)' that could be shortened to 'super()'.</td>
155 </tr> 163 </tr>
156 <tr> 164 <tr>
157 <td><a href="#SimplifyNodeVisitor.__check201">__check201</a></td> 165 <td><a href="#SimplifyNodeVisitor.__check201">__check201</a></td>
158 <td>Private method to check for calls where an unary 'not' is used for an unequality.</td> 166 <td>Private method to check for calls where an unary 'not' is used for an unequality.</td>
159 </tr> 167 </tr>
214 <td>Private method to check for calls of the type "...</td> 222 <td>Private method to check for calls of the type "...</td>
215 </tr> 223 </tr>
216 <tr> 224 <tr>
217 <td><a href="#SimplifyNodeVisitor.__check301">__check301</a></td> 225 <td><a href="#SimplifyNodeVisitor.__check301">__check301</a></td>
218 <td>Private method to check for Yoda conditions.</td> 226 <td>Private method to check for Yoda conditions.</td>
227 </tr>
228 <tr>
229 <td><a href="#SimplifyNodeVisitor.__check401">__check401</a></td>
230 <td>Private method to check for bare boolean function arguments.</td>
231 </tr>
232 <tr>
233 <td><a href="#SimplifyNodeVisitor.__check402">__check402</a></td>
234 <td>Private method to check for bare numeric function arguments.</td>
219 </tr> 235 </tr>
220 <tr> 236 <tr>
221 <td><a href="#SimplifyNodeVisitor.__getDuplicatedIsinstanceCall">__getDuplicatedIsinstanceCall</a></td> 237 <td><a href="#SimplifyNodeVisitor.__getDuplicatedIsinstanceCall">__getDuplicatedIsinstanceCall</a></td>
222 <td>Private method to get a list of isinstance arguments which could be combined.</td> 238 <td>Private method to get a list of isinstance arguments which could be combined.</td>
223 </tr> 239 </tr>
583 <dt><i>node</i> (ast.ClassDef)</dt> 599 <dt><i>node</i> (ast.ClassDef)</dt>
584 <dd> 600 <dd>
585 reference to the AST node to be checked 601 reference to the AST node to be checked
586 </dd> 602 </dd>
587 </dl> 603 </dl>
588 <a NAME="SimplifyNodeVisitor.__check120" ID="SimplifyNodeVisitor.__check120"></a> 604 <a NAME="SimplifyNodeVisitor.__check120_121" ID="SimplifyNodeVisitor.__check120_121"></a>
589 <h4>SimplifyNodeVisitor.__check120</h4> 605 <h4>SimplifyNodeVisitor.__check120_121</h4>
590 <b>__check120</b>(<i>node</i>) 606 <b>__check120_121</b>(<i>node</i>)
591 607
592 <p> 608 <p>
593 Private method to check for classes that inherit from object. 609 Private method to check for classes that inherit from object.
594 </p> 610 </p>
595 <dl> 611 <dl>
597 <dt><i>node</i> (ast.ClassDef)</dt> 613 <dt><i>node</i> (ast.ClassDef)</dt>
598 <dd> 614 <dd>
599 reference to the AST node to be checked 615 reference to the AST node to be checked
600 </dd> 616 </dd>
601 </dl> 617 </dl>
602 <a NAME="SimplifyNodeVisitor.__check121" ID="SimplifyNodeVisitor.__check121"></a> 618 <a NAME="SimplifyNodeVisitor.__check122" ID="SimplifyNodeVisitor.__check122"></a>
603 <h4>SimplifyNodeVisitor.__check121</h4> 619 <h4>SimplifyNodeVisitor.__check122</h4>
604 <b>__check121</b>(<i>node</i>) 620 <b>__check122</b>(<i>node</i>)
621
622 <p>
623 Private method to check for all if-blocks which only check if a key
624 is in a dictionary.
625 </p>
626 <dl>
627
628 <dt><i>node</i> (ast.If)</dt>
629 <dd>
630 reference to the AST node to be checked
631 </dd>
632 </dl>
633 <a NAME="SimplifyNodeVisitor.__check181" ID="SimplifyNodeVisitor.__check181"></a>
634 <h4>SimplifyNodeVisitor.__check181</h4>
635 <b>__check181</b>(<i>node</i>)
605 636
606 <p> 637 <p>
607 Private method to check for assignments that could be converted into 638 Private method to check for assignments that could be converted into
608 an augmented assignment 639 an augmented assignment.
609 </p> 640 </p>
610 <dl> 641 <dl>
611 642
612 <dt><i>node</i> (ast.Assign)</dt> 643 <dt><i>node</i> (ast.Assign)</dt>
644 <dd>
645 reference to the AST node to be checked
646 </dd>
647 </dl>
648 <a NAME="SimplifyNodeVisitor.__check182" ID="SimplifyNodeVisitor.__check182"></a>
649 <h4>SimplifyNodeVisitor.__check182</h4>
650 <b>__check182</b>(<i>node</i>)
651
652 <p>
653 Private method to check for calls of type 'super(Foo, self)' that could
654 be shortened to 'super()'.
655 </p>
656 <dl>
657
658 <dt><i>node</i> (ast.Call)</dt>
613 <dd> 659 <dd>
614 reference to the AST node to be checked 660 reference to the AST node to be checked
615 </dd> 661 </dd>
616 </dl> 662 </dl>
617 <a NAME="SimplifyNodeVisitor.__check201" ID="SimplifyNodeVisitor.__check201"></a> 663 <a NAME="SimplifyNodeVisitor.__check201" ID="SimplifyNodeVisitor.__check201"></a>
839 <dt><i>node</i> (ast.Compare)</dt> 885 <dt><i>node</i> (ast.Compare)</dt>
840 <dd> 886 <dd>
841 reference to the AST node to be checked 887 reference to the AST node to be checked
842 </dd> 888 </dd>
843 </dl> 889 </dl>
890 <a NAME="SimplifyNodeVisitor.__check401" ID="SimplifyNodeVisitor.__check401"></a>
891 <h4>SimplifyNodeVisitor.__check401</h4>
892 <b>__check401</b>(<i>node</i>)
893
894 <p>
895 Private method to check for bare boolean function arguments.
896 </p>
897 <dl>
898
899 <dt><i>node</i> (ast.Call)</dt>
900 <dd>
901 reference to the AST node to be checked
902 </dd>
903 </dl>
904 <a NAME="SimplifyNodeVisitor.__check402" ID="SimplifyNodeVisitor.__check402"></a>
905 <h4>SimplifyNodeVisitor.__check402</h4>
906 <b>__check402</b>(<i>node</i>)
907
908 <p>
909 Private method to check for bare numeric function arguments.
910 </p>
911 <dl>
912
913 <dt><i>node</i> (ast.Call)</dt>
914 <dd>
915 reference to the AST node to be checked
916 </dd>
917 </dl>
844 <a NAME="SimplifyNodeVisitor.__getDuplicatedIsinstanceCall" ID="SimplifyNodeVisitor.__getDuplicatedIsinstanceCall"></a> 918 <a NAME="SimplifyNodeVisitor.__getDuplicatedIsinstanceCall" ID="SimplifyNodeVisitor.__getDuplicatedIsinstanceCall"></a>
845 <h4>SimplifyNodeVisitor.__getDuplicatedIsinstanceCall</h4> 919 <h4>SimplifyNodeVisitor.__getDuplicatedIsinstanceCall</h4>
846 <b>__getDuplicatedIsinstanceCall</b>(<i>node</i>) 920 <b>__getDuplicatedIsinstanceCall</b>(<i>node</i>)
847 921
848 <p> 922 <p>

eric ide

mercurial