mirror of
https://github.com/Instagram/LibCST.git
synced 2025-12-23 10:35:53 +00:00
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. |
||
|---|---|---|
| .. | ||
| tests | ||
| __init__.py | ||
| accessor_provider.py | ||
| base_provider.py | ||
| expression_context_provider.py | ||
| full_repo_manager.py | ||
| name_provider.py | ||
| parent_node_provider.py | ||
| position_provider.py | ||
| reentrant_codegen.py | ||
| scope_provider.py | ||
| span_provider.py | ||
| type_inference_provider.py | ||
| wrapper.py | ||