Skip to content
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

Handle aliases as Documentables #775

Draft
wants to merge 71 commits into
base: master
Choose a base branch
from
Draft

Commits on Jun 26, 2021

  1. Add initial code for proper aliases handling.

    tristanlatr committed Jun 26, 2021
    Configuration menu
    Copy the full SHA
    de67334 View commit details
    Browse the repository at this point in the history
  2. Fix a reccursion error and reduce the scope of what is an module-leve…

    …l alias. An module-level alias must be defined at the top level of the module.
    tristanlatr committed Jun 26, 2021
    Configuration menu
    Copy the full SHA
    e476cf8 View commit details
    Browse the repository at this point in the history
  3. Still register the indirection for aliases defined in try/expect or i…

    …fs blocks. Add a test for that.
    tristanlatr committed Jun 26, 2021
    Configuration menu
    Copy the full SHA
    5f5fca9 View commit details
    Browse the repository at this point in the history

Commits on Jun 27, 2021

  1. Cleanup and documenting.

    tristanlatr committed Jun 27, 2021
    Configuration menu
    Copy the full SHA
    da6f4ce View commit details
    Browse the repository at this point in the history
  2. Fix docstrings

    tristanlatr committed Jun 27, 2021
    Configuration menu
    Copy the full SHA
    100e55b View commit details
    Browse the repository at this point in the history
  3. Import Final from the typing_extensions module

    tristanlatr committed Jun 27, 2021
    Configuration menu
    Copy the full SHA
    275e815 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f56d050 View commit details
    Browse the repository at this point in the history

Commits on Jun 28, 2021

  1. Use ._alias_to attribute to store the aliases indirection instead of …

    …computing it from AST all the time.
    
    Consider variables that are not on the root level as aliases, too. And warns only when they are actually overriden.
    
    Move node2fullname to astutils module.
    
    Delete overridenInCount from ClassPage since it was unused.
    
    Re-export names that are not part of the current system with an alias.
    
    Cleanup expandName() and associated.
    
    Use directly taglink() in format_alias_value() when possible.
    
    Add Documentable.aliases property. This is somewhat working in the tests but not always in real life.
    
    Rename the redirected_from parameter to "indirections".
    
    Speaking of tests, this commit also adds A LOT of new tests for the expandName() method.
    tristanlatr committed Jun 28, 2021
    Configuration menu
    Copy the full SHA
    2c76275 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fccbd4f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e666795 View commit details
    Browse the repository at this point in the history

Commits on Jan 2, 2022

  1. Configuration menu
    Copy the full SHA
    43c251b View commit details
    Browse the repository at this point in the history
  2. broken :/

    tristanlatr committed Jan 2, 2022
    Configuration menu
    Copy the full SHA
    3d67f95 View commit details
    Browse the repository at this point in the history

Commits on May 23, 2022

  1. Configuration menu
    Copy the full SHA
    6a2af77 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    606e54d View commit details
    Browse the repository at this point in the history
  3. Forgot a meta file.

    tristanlatr committed May 23, 2022
    Configuration menu
    Copy the full SHA
    46c1e8e View commit details
    Browse the repository at this point in the history
  4. merge source files 'twisted-master' into 'alias', currently fails 21 …

    …astbuilder tests, mostly related to alias handling... I'll fix that after merging.
    tristanlatr committed May 23, 2022
    Configuration menu
    Copy the full SHA
    59d46ee View commit details
    Browse the repository at this point in the history
  5. wip debugging...

    tristanlatr committed May 23, 2022
    Configuration menu
    Copy the full SHA
    f0f38d7 View commit details
    Browse the repository at this point in the history
  6. Add a test

    tristanlatr committed May 23, 2022
    Configuration menu
    Copy the full SHA
    6f2e374 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    f0b4255 View commit details
    Browse the repository at this point in the history
  8. Fix tests

    tristanlatr committed May 23, 2022
    Configuration menu
    Copy the full SHA
    5bae337 View commit details
    Browse the repository at this point in the history

Commits on May 25, 2022

  1. Configuration menu
    Copy the full SHA
    ca1e470 View commit details
    Browse the repository at this point in the history

Commits on Jun 11, 2022

  1. add test

    tristanlatr committed Jun 11, 2022
    Configuration menu
    Copy the full SHA
    7cd0554 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    174526e View commit details
    Browse the repository at this point in the history

Commits on Jun 12, 2022

  1. Configuration menu
    Copy the full SHA
    93f82d9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8cdc932 View commit details
    Browse the repository at this point in the history
  3. More tests

    tristanlatr committed Jun 12, 2022
    Configuration menu
    Copy the full SHA
    fc66fa3 View commit details
    Browse the repository at this point in the history
  4. Try fixing mypy

    tristanlatr committed Jun 12, 2022
    Configuration menu
    Copy the full SHA
    2db2386 View commit details
    Browse the repository at this point in the history

Commits on Jun 13, 2022

  1. Configuration menu
    Copy the full SHA
    eab7a98 View commit details
    Browse the repository at this point in the history

Commits on Jun 17, 2022

  1. Configuration menu
    Copy the full SHA
    229405b View commit details
    Browse the repository at this point in the history
  2. Fix infinite recusion (I just forgot the indirections arg to be passe…

    …d to _localNameToFullName() function.)
    tristanlatr committed Jun 17, 2022
    Configuration menu
    Copy the full SHA
    7e98ed6 View commit details
    Browse the repository at this point in the history
  3. Add a tox environment that parses the cpython code to only generate t…

    …he inventory.
    
    Goes much faster to test locally.
    tristanlatr committed Jun 17, 2022
    Configuration menu
    Copy the full SHA
    a0b6091 View commit details
    Browse the repository at this point in the history
  4. Fix expandName()

    tristanlatr committed Jun 17, 2022
    Configuration menu
    Copy the full SHA
    f82fb92 View commit details
    Browse the repository at this point in the history

Commits on Jun 18, 2022

  1. Configuration menu
    Copy the full SHA
    a907d14 View commit details
    Browse the repository at this point in the history

Commits on Jun 30, 2022

  1. Configuration menu
    Copy the full SHA
    64a32f6 View commit details
    Browse the repository at this point in the history

Commits on Aug 18, 2022

  1. Configuration menu
    Copy the full SHA
    41cc53a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    312da1e View commit details
    Browse the repository at this point in the history
  3. Add docs

    tristanlatr committed Aug 18, 2022
    Configuration menu
    Copy the full SHA
    fa528e4 View commit details
    Browse the repository at this point in the history
  4. Prevent recusrsion error

    tristanlatr committed Aug 18, 2022
    Configuration menu
    Copy the full SHA
    1fd1d17 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    63d1894 View commit details
    Browse the repository at this point in the history

Commits on Aug 25, 2022

  1. Small refactors

    tristanlatr committed Aug 25, 2022
    Configuration menu
    Copy the full SHA
    627b82c View commit details
    Browse the repository at this point in the history

Commits on Nov 11, 2022

  1. Configuration menu
    Copy the full SHA
    3d7e95f View commit details
    Browse the repository at this point in the history

Commits on Nov 12, 2022

  1. Configuration menu
    Copy the full SHA
    e136938 View commit details
    Browse the repository at this point in the history
  2. use report()

    tristanlatr committed Nov 12, 2022
    Configuration menu
    Copy the full SHA
    791da52 View commit details
    Browse the repository at this point in the history

Commits on Apr 4, 2024

  1. Configuration menu
    Copy the full SHA
    7fb204f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    568478e View commit details
    Browse the repository at this point in the history
  3. Loosen the checks for an alias to be recognixed, now it can be insode…

    … a if block or similar, but no loops are allowed
    tristanlatr committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    c2df1e8 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e5558de View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5811126 View commit details
    Browse the repository at this point in the history
  6. Revert "If an import resolves to an unresolvable alias, then use the …

    …alias fullName"
    
    This reverts commit e5558de.
    tristanlatr committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    57f1537 View commit details
    Browse the repository at this point in the history

Commits on Apr 5, 2024

  1. Configuration menu
    Copy the full SHA
    6d650ad View commit details
    Browse the repository at this point in the history
  2. Better implementation of _resolveImport() which does not rely on the …

    …processing state. Also address a TODO comment in expandName()
    tristanlatr committed Apr 5, 2024
    Configuration menu
    Copy the full SHA
    5ad8d5e View commit details
    Browse the repository at this point in the history

Commits on Apr 6, 2024

  1. Fix a couple of issues

    tristanlatr committed Apr 6, 2024
    Configuration menu
    Copy the full SHA
    665b4ac View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7a89071 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    43815d4 View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2024

  1. Configuration menu
    Copy the full SHA
    97545a0 View commit details
    Browse the repository at this point in the history
  2. Cleanup dead code

    tristanlatr committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    869c2c2 View commit details
    Browse the repository at this point in the history
  3. Small refactors

    tristanlatr committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    40c514c View commit details
    Browse the repository at this point in the history
  4. cleanup dead code

    tristanlatr committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    91f3b50 View commit details
    Browse the repository at this point in the history
  5. cleanup test

    tristanlatr committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    e051da3 View commit details
    Browse the repository at this point in the history
  6. Cleanup imports

    tristanlatr committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    e28f00f View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    d3b97da View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    8b49cc0 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    da8a85d View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    94045e1 View commit details
    Browse the repository at this point in the history
  11. Fix node2fullname()

    tristanlatr committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    deec764 View commit details
    Browse the repository at this point in the history
  12. Fix node2fullname

    tristanlatr committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    e49925b View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    39cb5d8 View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2024

  1. Linker more smart: keep a set of potential target names as well so we…

    … can filter out duplicated external interdirections
    tristanlatr committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    3e28ee9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    841d7dc View commit details
    Browse the repository at this point in the history

Commits on Aug 20, 2024

  1. Add todos

    tristanlatr committed Aug 20, 2024
    Configuration menu
    Copy the full SHA
    9267269 View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2024

  1. add a todo test

    tristanlatr committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    e7930bf View commit details
    Browse the repository at this point in the history