Add FullyQualifiedNameProvider (#465)

This commit is contained in:
Zsolt Dollenstein 2021-03-26 17:15:57 +00:00 committed by GitHub
parent 4ab866e40f
commit 1bd1c0890c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 259 additions and 15 deletions

View file

@ -203,10 +203,18 @@ We don't call it `fully qualified name <https://en.wikipedia.org/wiki/Fully_qual
because the name refers to the current module which doesn't consider the hierarchy of
code repository.
For fully qualified names, there's :class:`~libcst.metadata.FullyQualifiedNameProvider`
which is similar to the above but takes the current module's location (relative to some
python root folder, usually the repository's root) into account.
.. autoclass:: libcst.metadata.QualifiedNameSource
.. autoclass:: libcst.metadata.QualifiedName
.. autoclass:: libcst.metadata.QualifiedNameProvider
:no-undoc-members:
.. autoclass:: libcst.metadata.FullyQualifiedNameProvider
:no-undoc-members:
Parent Node Metadata
--------------------