LibCST/libcst/metadata
Amethyst Reese f9536b522f
Pass root path to FullyQualifiedNameProvider (#867)
This allows FullyQualifiedNameProvider to work with absolute paths,
rather than assuming all paths given will be relative to the current
directory. This enables tools like Fixit to provide a root path, and
have the FullyQualifiedNameProvider correctly scope the final results
relative to that root path.

This does require that both the root path and the given file paths
match the other as relative or absolute, due to the
`calculate_module_and_package` helper comparing file paths relative
to the root path, but this seems like a reasonable tradeoff, and
unlikely to cause a problem in normal use cases.
2023-02-22 14:36:10 -08:00
..
tests Pass root path to FullyQualifiedNameProvider (#867) 2023-02-22 14:36:10 -08:00
__init__.py Adding a provider which can tell what accessor to use to go from the parent to that child node (#807) 2022-11-10 09:38:32 +00:00
accessor_provider.py Adding a provider which can tell what accessor to use to go from the parent to that child node (#807) 2022-11-10 09:38:32 +00:00
base_provider.py Implement lazy loading mechanism for QualifiedNameProvider (#720) 2022-07-09 08:34:29 +01:00
expression_context_provider.py Tighten the metadata type of ExpressionContextProvider (#760) 2022-08-29 16:46:08 +01:00
full_repo_manager.py Pass root path to FullyQualifiedNameProvider (#867) 2023-02-22 14:36:10 -08:00
name_provider.py Pass root path to FullyQualifiedNameProvider (#867) 2023-02-22 14:36:10 -08:00
parent_node_provider.py Fix license headers (#560) 2021-12-28 11:55:18 +00:00
position_provider.py Fix license headers (#560) 2021-12-28 11:55:18 +00:00
reentrant_codegen.py Fix license headers (#560) 2021-12-28 11:55:18 +00:00
scope_provider.py Fixing prefix matching bug from 0.4.6 (#719) 2022-07-05 11:25:39 +01:00
span_provider.py Fix license headers (#560) 2021-12-28 11:55:18 +00:00
type_inference_provider.py Fix all type errors (#579) 2022-01-05 18:13:01 +00:00
wrapper.py Fix all type errors (#579) 2022-01-05 18:13:01 +00:00