-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Visit Try 'orelse', 'finalbody' and 'handlers' and If 'orelse' #589
Visit Try 'orelse', 'finalbody' and 'handlers' and If 'orelse' #589
Commits on May 23, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 6f2e374 - Browse repository at this point
Copy the full SHA 6f2e374View commit details
Commits on May 24, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 0c50517 - Browse repository at this point
Copy the full SHA 0c50517View commit details -
Since the new NodeVisitor class, all the node are not visited as befo…
…re. The older visitor relied on generic_visit() to be recursive. Where the provided generic_visit() is not recursive anymore, and moreover not called automatically when visiting unknow nodes! So what I'm saying here is that since #576 have been merged, we're not visiting the statements inside the 'orelse' field of Try and If nodes, same goes for 'finalbody' and 'handlers'. This commit fixes that issue. The rationale is now the following: All statements in the 'orelse' block of IF nodes and statements in the except handlers of TRY nodes that would override a name already defined in the main 'body' (or TRY 'orelse' or 'finalbody') are ignored. Meaning that in the context of the code below, 'ssl' would resolve to 'twisted.internet.ssl': try: from twisted.internet import ssl as _ssl except ImportError: ssl = None else: ssl = _ssl
Configuration menu - View commit details
-
Copy full SHA for 7d40873 - Browse repository at this point
Copy the full SHA 7d40873View commit details -
Configuration menu - View commit details
-
Copy full SHA for ae6582f - Browse repository at this point
Copy the full SHA ae6582fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3bd4407 - Browse repository at this point
Copy the full SHA 3bd4407View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8613422 - Browse repository at this point
Copy the full SHA 8613422View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9a02722 - Browse repository at this point
Copy the full SHA 9a02722View commit details -
Revert ignoring 'If.orelse' and 'Try.handler' in functions and methods.
Properly add support for that to override_guard() function instead.
Configuration menu - View commit details
-
Copy full SHA for 7ad998f - Browse repository at this point
Copy the full SHA 7ad998fView commit details -
Configuration menu - View commit details
-
Copy full SHA for bd90f2b - Browse repository at this point
Copy the full SHA bd90f2bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 39ca9a3 - Browse repository at this point
Copy the full SHA 39ca9a3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0ad23b8 - Browse repository at this point
Copy the full SHA 0ad23b8View commit details -
Merge branch 'visit-try-orelse-finalbody-and-if-orelse' of github.com…
…:twisted/pydoctor into visit-try-orelse-finalbody-and-if-orelse
Configuration menu - View commit details
-
Copy full SHA for a5314c9 - Browse repository at this point
Copy the full SHA a5314c9View commit details
Commits on Jun 11, 2022
-
Update docs/source/codedoc.rst
Co-authored-by: Glyph <glyph@twistedmatrix.com>
Configuration menu - View commit details
-
Copy full SHA for d4fb2be - Browse repository at this point
Copy the full SHA d4fb2beView commit details -
Configuration menu - View commit details
-
Copy full SHA for d38659e - Browse repository at this point
Copy the full SHA d38659eView commit details
Commits on Jul 14, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 9cfb06a - Browse repository at this point
Copy the full SHA 9cfb06aView commit details -
Configuration menu - View commit details
-
Copy full SHA for db51139 - Browse repository at this point
Copy the full SHA db51139View commit details
Commits on Nov 12, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 5e9a6fc - Browse repository at this point
Copy the full SHA 5e9a6fcView commit details
Commits on Jun 5, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 8c61bc1 - Browse repository at this point
Copy the full SHA 8c61bc1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 312b301 - Browse repository at this point
Copy the full SHA 312b301View commit details -
Configuration menu - View commit details
-
Copy full SHA for 872ec07 - Browse repository at this point
Copy the full SHA 872ec07View commit details -
Configuration menu - View commit details
-
Copy full SHA for 505e113 - Browse repository at this point
Copy the full SHA 505e113View commit details -
Configuration menu - View commit details
-
Copy full SHA for a100a16 - Browse repository at this point
Copy the full SHA a100a16View commit details
Commits on Jun 6, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 0ea5b7c - Browse repository at this point
Copy the full SHA 0ea5b7cView commit details
Commits on Jun 9, 2023
-
Simplify the visitor extension system and add test for attrs classes …
…in else branches
Configuration menu - View commit details
-
Copy full SHA for 5a259d2 - Browse repository at this point
Copy the full SHA 5a259d2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 52d0713 - Browse repository at this point
Copy the full SHA 52d0713View commit details -
Configuration menu - View commit details
-
Copy full SHA for 99b8205 - Browse repository at this point
Copy the full SHA 99b8205View commit details
Commits on Jun 10, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 77099c5 - Browse repository at this point
Copy the full SHA 77099c5View commit details
Commits on Jan 20, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 2f5cfc9 - Browse repository at this point
Copy the full SHA 2f5cfc9View commit details
Commits on Jan 21, 2024
-
Configuration menu - View commit details
-
Copy full SHA for f9022f3 - Browse repository at this point
Copy the full SHA f9022f3View commit details -
Merge branch 'visit-try-orelse-finalbody-and-if-orelse' of github.com…
…:twisted/pydoctor into visit-try-orelse-finalbody-and-if-orelse
Configuration menu - View commit details
-
Copy full SHA for 3d3b730 - Browse repository at this point
Copy the full SHA 3d3b730View commit details
Commits on Jan 24, 2024
-
Configuration menu - View commit details
-
Copy full SHA for d393249 - Browse repository at this point
Copy the full SHA d393249View commit details
Commits on Mar 25, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 2dd25e1 - Browse repository at this point
Copy the full SHA 2dd25e1View commit details
Commits on Jul 6, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 4c00191 - Browse repository at this point
Copy the full SHA 4c00191View commit details
Commits on Sep 16, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 1993e51 - Browse repository at this point
Copy the full SHA 1993e51View commit details
Commits on Sep 20, 2024
-
Use two subclass of tree pruning exception in order to also skip exte…
…nsions when desired. The naming is not the best at the moment but it passes the tests...
Configuration menu - View commit details
-
Copy full SHA for 8f82e87 - Browse repository at this point
Copy the full SHA 8f82e87View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0650c35 - Browse repository at this point
Copy the full SHA 0650c35View commit details
Commits on Sep 24, 2024
-
Refactor the visitor extension pattern and ensure the extension funct…
…ionality stays the same
Configuration menu - View commit details
-
Copy full SHA for 8bcfb56 - Browse repository at this point
Copy the full SHA 8bcfb56View commit details -
Configuration menu - View commit details
-
Copy full SHA for b3957fc - Browse repository at this point
Copy the full SHA b3957fcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3189f7c - Browse repository at this point
Copy the full SHA 3189f7cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9f576de - Browse repository at this point
Copy the full SHA 9f576deView commit details -
Configuration menu - View commit details
-
Copy full SHA for ecfa367 - Browse repository at this point
Copy the full SHA ecfa367View commit details
Commits on Sep 25, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 6acffaf - Browse repository at this point
Copy the full SHA 6acffafView commit details -
Configuration menu - View commit details
-
Copy full SHA for e96b927 - Browse repository at this point
Copy the full SHA e96b927View commit details -
Merge branch 'visit-try-orelse-finalbody-and-if-orelse' of github.com…
…:twisted/pydoctor into visit-try-orelse-finalbody-and-if-orelse
Configuration menu - View commit details
-
Copy full SHA for 6a542ed - Browse repository at this point
Copy the full SHA 6a542edView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2235f98 - Browse repository at this point
Copy the full SHA 2235f98View commit details -
Merge branch 'visit-try-orelse-finalbody-and-if-orelse' of github.com…
…:twisted/pydoctor into visit-try-orelse-finalbody-and-if-orelse
Configuration menu - View commit details
-
Copy full SHA for fdc2755 - Browse repository at this point
Copy the full SHA fdc2755View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0278320 - Browse repository at this point
Copy the full SHA 0278320View commit details