src/eric7/Documentation/Source/eric7.Plugins.CheckerPlugins.CodeStyleChecker.Unused.UnusedChecker.html

branch
eric7
changeset 10070
9f5758c0fec1
parent 10054
d7a47f0cff2b
child 10479
856476537696
equal deleted inserted replaced
10069:435cc5875135 10070:9f5758c0fec1
361 <tr> 361 <tr>
362 <td><a href="#UnusedChecker.__isDunderMethod">__isDunderMethod</a></td> 362 <td><a href="#UnusedChecker.__isDunderMethod">__isDunderMethod</a></td>
363 <td>Private method to check, if the function node defines a special function.</td> 363 <td>Private method to check, if the function node defines a special function.</td>
364 </tr> 364 </tr>
365 <tr> 365 <tr>
366 <td><a href="#UnusedChecker.__isEventHandlerMethod">__isEventHandlerMethod</a></td>
367 <td>Private method to check, if the function node defines a Qt event handler.</td>
368 </tr>
369 <tr>
366 <td><a href="#UnusedChecker.__isStubFunction">__isStubFunction</a></td> 370 <td><a href="#UnusedChecker.__isStubFunction">__isStubFunction</a></td>
367 <td>Private method to check, if the given function node defines a stub function.</td> 371 <td>Private method to check, if the given function node defines a stub function.</td>
368 </tr> 372 </tr>
369 <tr> 373 <tr>
370 <td><a href="#UnusedChecker.run">run</a></td> 374 <td><a href="#UnusedChecker.run">run</a></td>
606 <dt>Return Type:</dt> 610 <dt>Return Type:</dt>
607 <dd> 611 <dd>
608 bool 612 bool
609 </dd> 613 </dd>
610 </dl> 614 </dl>
615 <a NAME="UnusedChecker.__isEventHandlerMethod" ID="UnusedChecker.__isEventHandlerMethod"></a>
616 <h4>UnusedChecker.__isEventHandlerMethod</h4>
617 <b>__isEventHandlerMethod</b>(<i>functionNode</i>)
618
619 <p>
620 Private method to check, if the function node defines a Qt event handler.
621 </p>
622 <p>
623 Qt event handler methods are assumed to end with 'Event' or have the name
624 'event' or 'eventFilter'. Only standard methodes (i.e. ast.FunctionDef)
625 are assumed to be potential event handlers.
626 </p>
627 <dl>
628
629 <dt><i>functionNode</i> (ast.AsyncFunctionDef, ast.FunctionDef or ast.Lambda)</dt>
630 <dd>
631 reference to the node defining the function or lambda
632 </dd>
633 </dl>
634 <dl>
635 <dt>Return:</dt>
636 <dd>
637 flag indicating a Qt event handler method
638 </dd>
639 </dl>
640 <dl>
641 <dt>Return Type:</dt>
642 <dd>
643 bool
644 </dd>
645 </dl>
611 <a NAME="UnusedChecker.__isStubFunction" ID="UnusedChecker.__isStubFunction"></a> 646 <a NAME="UnusedChecker.__isStubFunction" ID="UnusedChecker.__isStubFunction"></a>
612 <h4>UnusedChecker.__isStubFunction</h4> 647 <h4>UnusedChecker.__isStubFunction</h4>
613 <b>__isStubFunction</b>(<i>functionNode</i>) 648 <b>__isStubFunction</b>(<i>functionNode</i>)
614 649
615 <p> 650 <p>

eric ide

mercurial