123 <tr> |
123 <tr> |
124 <td><a href="#BugBearVisitor.visit_Assign">visit_Assign</a></td> |
124 <td><a href="#BugBearVisitor.visit_Assign">visit_Assign</a></td> |
125 <td>Public method to handle assignments.</td> |
125 <td>Public method to handle assignments.</td> |
126 </tr> |
126 </tr> |
127 <tr> |
127 <tr> |
|
128 <td><a href="#BugBearVisitor.visit_AsyncFor">visit_AsyncFor</a></td> |
|
129 <td>Public method to handle 'for' statements.</td> |
|
130 </tr> |
|
131 <tr> |
128 <td><a href="#BugBearVisitor.visit_Attribute">visit_Attribute</a></td> |
132 <td><a href="#BugBearVisitor.visit_Attribute">visit_Attribute</a></td> |
129 <td>Public method to handle attributes.</td> |
133 <td>Public method to handle attributes.</td> |
130 </tr> |
134 </tr> |
131 <tr> |
135 <tr> |
132 <td><a href="#BugBearVisitor.visit_Call">visit_Call</a></td> |
136 <td><a href="#BugBearVisitor.visit_Call">visit_Call</a></td> |
222 Public method to handle assignments. |
226 Public method to handle assignments. |
223 </p> |
227 </p> |
224 <dl> |
228 <dl> |
225 |
229 |
226 <dt><i>node</i> (ast.Assign)</dt> |
230 <dt><i>node</i> (ast.Assign)</dt> |
|
231 <dd> |
|
232 reference to the node to be processed |
|
233 </dd> |
|
234 </dl> |
|
235 <a NAME="BugBearVisitor.visit_AsyncFor" ID="BugBearVisitor.visit_AsyncFor"></a> |
|
236 <h4>BugBearVisitor.visit_AsyncFor</h4> |
|
237 <b>visit_AsyncFor</b>(<i>node</i>) |
|
238 |
|
239 <p> |
|
240 Public method to handle 'for' statements. |
|
241 </p> |
|
242 <dl> |
|
243 |
|
244 <dt><i>node</i> (ast.AsyncFor)</dt> |
227 <dd> |
245 <dd> |
228 reference to the node to be processed |
246 reference to the node to be processed |
229 </dd> |
247 </dd> |
230 </dl> |
248 </dl> |
231 <a NAME="BugBearVisitor.visit_Attribute" ID="BugBearVisitor.visit_Attribute"></a> |
249 <a NAME="BugBearVisitor.visit_Attribute" ID="BugBearVisitor.visit_Attribute"></a> |
1266 <tr> |
1284 <tr> |
1267 <td><a href="#ReturnVisitor.__hasRefsBeforeNextAssign">__hasRefsBeforeNextAssign</a></td> |
1285 <td><a href="#ReturnVisitor.__hasRefsBeforeNextAssign">__hasRefsBeforeNextAssign</a></td> |
1268 <td>Private method to check for references before a following assign statement.</td> |
1286 <td>Private method to check for references before a following assign statement.</td> |
1269 </tr> |
1287 </tr> |
1270 <tr> |
1288 <tr> |
|
1289 <td><a href="#ReturnVisitor.__isFalse">__isFalse</a></td> |
|
1290 <td>Private method to check, if a node value is False.</td> |
|
1291 </tr> |
|
1292 <tr> |
1271 <td><a href="#ReturnVisitor.__isNone">__isNone</a></td> |
1293 <td><a href="#ReturnVisitor.__isNone">__isNone</a></td> |
1272 <td>Private method to check, if a node value is None.</td> |
1294 <td>Private method to check, if a node value is None.</td> |
1273 </tr> |
1295 </tr> |
1274 <tr> |
1296 <tr> |
1275 <td><a href="#ReturnVisitor.__resultExists">__resultExists</a></td> |
1297 <td><a href="#ReturnVisitor.__resultExists">__resultExists</a></td> |
1278 <tr> |
1300 <tr> |
1279 <td><a href="#ReturnVisitor.__visitAssignTarget">__visitAssignTarget</a></td> |
1301 <td><a href="#ReturnVisitor.__visitAssignTarget">__visitAssignTarget</a></td> |
1280 <td>Private method to handle an assign target node.</td> |
1302 <td>Private method to handle an assign target node.</td> |
1281 </tr> |
1303 </tr> |
1282 <tr> |
1304 <tr> |
|
1305 <td><a href="#ReturnVisitor.__visitLoop">__visitLoop</a></td> |
|
1306 <td>Private method to handle loop nodes.</td> |
|
1307 </tr> |
|
1308 <tr> |
1283 <td><a href="#ReturnVisitor.__visitWithStack">__visitWithStack</a></td> |
1309 <td><a href="#ReturnVisitor.__visitWithStack">__visitWithStack</a></td> |
1284 <td>Private method to traverse a given function node using a stack.</td> |
1310 <td>Private method to traverse a given function node using a stack.</td> |
1285 </tr> |
1311 </tr> |
1286 <tr> |
1312 <tr> |
1287 <td><a href="#ReturnVisitor.assigns">assigns</a></td> |
1313 <td><a href="#ReturnVisitor.assigns">assigns</a></td> |
1298 <tr> |
1324 <tr> |
1299 <td><a href="#ReturnVisitor.visit_Assign">visit_Assign</a></td> |
1325 <td><a href="#ReturnVisitor.visit_Assign">visit_Assign</a></td> |
1300 <td>Public method to handle an assign node.</td> |
1326 <td>Public method to handle an assign node.</td> |
1301 </tr> |
1327 </tr> |
1302 <tr> |
1328 <tr> |
|
1329 <td><a href="#ReturnVisitor.visit_AsyncFor">visit_AsyncFor</a></td> |
|
1330 <td>Public method to handle an async for loop.</td> |
|
1331 </tr> |
|
1332 <tr> |
1303 <td><a href="#ReturnVisitor.visit_AsyncFunctionDef">visit_AsyncFunctionDef</a></td> |
1333 <td><a href="#ReturnVisitor.visit_AsyncFunctionDef">visit_AsyncFunctionDef</a></td> |
1304 <td>Public method to handle a function definition.</td> |
1334 <td>Public method to handle a function definition.</td> |
1305 </tr> |
1335 </tr> |
1306 <tr> |
1336 <tr> |
|
1337 <td><a href="#ReturnVisitor.visit_For">visit_For</a></td> |
|
1338 <td>Public method to handle a for loop.</td> |
|
1339 </tr> |
|
1340 <tr> |
1307 <td><a href="#ReturnVisitor.visit_FunctionDef">visit_FunctionDef</a></td> |
1341 <td><a href="#ReturnVisitor.visit_FunctionDef">visit_FunctionDef</a></td> |
1308 <td>Public method to handle a function definition.</td> |
1342 <td>Public method to handle a function definition.</td> |
1309 </tr> |
1343 </tr> |
1310 <tr> |
1344 <tr> |
1311 <td><a href="#ReturnVisitor.visit_Name">visit_Name</a></td> |
1345 <td><a href="#ReturnVisitor.visit_Name">visit_Name</a></td> |
1312 <td>Public method to handle a name node.</td> |
1346 <td>Public method to handle a name node.</td> |
1313 </tr> |
1347 </tr> |
1314 <tr> |
1348 <tr> |
1315 <td><a href="#ReturnVisitor.visit_Return">visit_Return</a></td> |
1349 <td><a href="#ReturnVisitor.visit_Return">visit_Return</a></td> |
1316 <td>Public method to handle a return node.</td> |
1350 <td>Public method to handle a return node.</td> |
|
1351 </tr> |
|
1352 <tr> |
|
1353 <td><a href="#ReturnVisitor.visit_While">visit_While</a></td> |
|
1354 <td>Public method to handle a while loop.</td> |
1317 </tr> |
1355 </tr> |
1318 </table> |
1356 </table> |
1319 <h3>Static Methods</h3> |
1357 <h3>Static Methods</h3> |
1320 |
1358 |
1321 <table> |
1359 <table> |
1414 <dt>Return Type:</dt> |
1452 <dt>Return Type:</dt> |
1415 <dd> |
1453 <dd> |
1416 bool |
1454 bool |
1417 </dd> |
1455 </dd> |
1418 </dl> |
1456 </dl> |
|
1457 <a NAME="ReturnVisitor.__isFalse" ID="ReturnVisitor.__isFalse"></a> |
|
1458 <h4>ReturnVisitor.__isFalse</h4> |
|
1459 <b>__isFalse</b>(<i>node</i>) |
|
1460 |
|
1461 <p> |
|
1462 Private method to check, if a node value is False. |
|
1463 </p> |
|
1464 <dl> |
|
1465 |
|
1466 <dt><i>node</i> (ast.AST)</dt> |
|
1467 <dd> |
|
1468 reference to the node to check |
|
1469 </dd> |
|
1470 </dl> |
|
1471 <dl> |
|
1472 <dt>Returns:</dt> |
|
1473 <dd> |
|
1474 flag indicating the node contains a False value |
|
1475 </dd> |
|
1476 </dl> |
|
1477 <dl> |
|
1478 <dt>Return Type:</dt> |
|
1479 <dd> |
|
1480 bool |
|
1481 </dd> |
|
1482 </dl> |
1419 <a NAME="ReturnVisitor.__isNone" ID="ReturnVisitor.__isNone"></a> |
1483 <a NAME="ReturnVisitor.__isNone" ID="ReturnVisitor.__isNone"></a> |
1420 <h4>ReturnVisitor.__isNone</h4> |
1484 <h4>ReturnVisitor.__isNone</h4> |
1421 <b>__isNone</b>(<i>node</i>) |
1485 <b>__isNone</b>(<i>node</i>) |
1422 |
1486 |
1423 <p> |
1487 <p> |
1467 <dt><i>node</i> (ast.AST)</dt> |
1537 <dt><i>node</i> (ast.AST)</dt> |
1468 <dd> |
1538 <dd> |
1469 reference to the node to handle |
1539 reference to the node to handle |
1470 </dd> |
1540 </dd> |
1471 </dl> |
1541 </dl> |
|
1542 <a NAME="ReturnVisitor.__visitLoop" ID="ReturnVisitor.__visitLoop"></a> |
|
1543 <h4>ReturnVisitor.__visitLoop</h4> |
|
1544 <b>__visitLoop</b>(<i>node</i>) |
|
1545 |
|
1546 <p> |
|
1547 Private method to handle loop nodes. |
|
1548 </p> |
|
1549 <dl> |
|
1550 |
|
1551 <dt><i>node</i> (ast.For, ast.AsyncFor or ast.While)</dt> |
|
1552 <dd> |
|
1553 reference to the loop node to handle |
|
1554 </dd> |
|
1555 </dl> |
1472 <a NAME="ReturnVisitor.__visitWithStack" ID="ReturnVisitor.__visitWithStack"></a> |
1556 <a NAME="ReturnVisitor.__visitWithStack" ID="ReturnVisitor.__visitWithStack"></a> |
1473 <h4>ReturnVisitor.__visitWithStack</h4> |
1557 <h4>ReturnVisitor.__visitWithStack</h4> |
1474 <b>__visitWithStack</b>(<i>node</i>) |
1558 <b>__visitWithStack</b>(<i>node</i>) |
1475 |
1559 |
1476 <p> |
1560 <p> |
1555 <dt><i>node</i> (ast.Assign)</dt> |
1639 <dt><i>node</i> (ast.Assign)</dt> |
1556 <dd> |
1640 <dd> |
1557 reference to the node to handle |
1641 reference to the node to handle |
1558 </dd> |
1642 </dd> |
1559 </dl> |
1643 </dl> |
|
1644 <a NAME="ReturnVisitor.visit_AsyncFor" ID="ReturnVisitor.visit_AsyncFor"></a> |
|
1645 <h4>ReturnVisitor.visit_AsyncFor</h4> |
|
1646 <b>visit_AsyncFor</b>(<i>node</i>) |
|
1647 |
|
1648 <p> |
|
1649 Public method to handle an async for loop. |
|
1650 </p> |
|
1651 <dl> |
|
1652 |
|
1653 <dt><i>node</i> (ast.AsyncFor)</dt> |
|
1654 <dd> |
|
1655 reference to the async for node to handle |
|
1656 </dd> |
|
1657 </dl> |
1560 <a NAME="ReturnVisitor.visit_AsyncFunctionDef" ID="ReturnVisitor.visit_AsyncFunctionDef"></a> |
1658 <a NAME="ReturnVisitor.visit_AsyncFunctionDef" ID="ReturnVisitor.visit_AsyncFunctionDef"></a> |
1561 <h4>ReturnVisitor.visit_AsyncFunctionDef</h4> |
1659 <h4>ReturnVisitor.visit_AsyncFunctionDef</h4> |
1562 <b>visit_AsyncFunctionDef</b>(<i>node</i>) |
1660 <b>visit_AsyncFunctionDef</b>(<i>node</i>) |
1563 |
1661 |
1564 <p> |
1662 <p> |
1569 <dt><i>node</i> (ast.AsyncFunctionDef)</dt> |
1667 <dt><i>node</i> (ast.AsyncFunctionDef)</dt> |
1570 <dd> |
1668 <dd> |
1571 reference to the node to handle |
1669 reference to the node to handle |
1572 </dd> |
1670 </dd> |
1573 </dl> |
1671 </dl> |
|
1672 <a NAME="ReturnVisitor.visit_For" ID="ReturnVisitor.visit_For"></a> |
|
1673 <h4>ReturnVisitor.visit_For</h4> |
|
1674 <b>visit_For</b>(<i>node</i>) |
|
1675 |
|
1676 <p> |
|
1677 Public method to handle a for loop. |
|
1678 </p> |
|
1679 <dl> |
|
1680 |
|
1681 <dt><i>node</i> (ast.For)</dt> |
|
1682 <dd> |
|
1683 reference to the for node to handle |
|
1684 </dd> |
|
1685 </dl> |
1574 <a NAME="ReturnVisitor.visit_FunctionDef" ID="ReturnVisitor.visit_FunctionDef"></a> |
1686 <a NAME="ReturnVisitor.visit_FunctionDef" ID="ReturnVisitor.visit_FunctionDef"></a> |
1575 <h4>ReturnVisitor.visit_FunctionDef</h4> |
1687 <h4>ReturnVisitor.visit_FunctionDef</h4> |
1576 <b>visit_FunctionDef</b>(<i>node</i>) |
1688 <b>visit_FunctionDef</b>(<i>node</i>) |
1577 |
1689 |
1578 <p> |
1690 <p> |
1609 <dl> |
1721 <dl> |
1610 |
1722 |
1611 <dt><i>node</i> (ast.Return)</dt> |
1723 <dt><i>node</i> (ast.Return)</dt> |
1612 <dd> |
1724 <dd> |
1613 reference to the node to handle |
1725 reference to the node to handle |
|
1726 </dd> |
|
1727 </dl> |
|
1728 <a NAME="ReturnVisitor.visit_While" ID="ReturnVisitor.visit_While"></a> |
|
1729 <h4>ReturnVisitor.visit_While</h4> |
|
1730 <b>visit_While</b>(<i>node</i>) |
|
1731 |
|
1732 <p> |
|
1733 Public method to handle a while loop. |
|
1734 </p> |
|
1735 <dl> |
|
1736 |
|
1737 <dt><i>node</i> (ast.While)</dt> |
|
1738 <dd> |
|
1739 reference to the while node to handle |
1614 </dd> |
1740 </dd> |
1615 </dl> |
1741 </dl> |
1616 <div align="right"><a href="#top">Up</a></div> |
1742 <div align="right"><a href="#top">Up</a></div> |
1617 <hr /> |
1743 <hr /> |
1618 <hr /> |
1744 <hr /> |