ruff/crates/ty_python_semantic/src/semantic_index
Shunsuke Shibayama 9de34e7ac1
[ty] refactor `Place` (#20871)
## Summary

Part of astral-sh/ty#1341

The following changes will be made to `Place`.

* Introduce `TypeOrigin`
* `Place::Type` -> `Place::Defined`
* `Place::Unbound` -> `Place::Undefined`
* `Boundness` -> `Definedness`

`TypeOrigin::Declared`+`Definedness::PossiblyUndefined` are patterns
that weren't considered before, but this PR doesn't address them yet,
only refactors.

## Test Plan

Refactoring
2025-10-15 20:19:19 +02:00
..
builder Rename Red Knot (#17820) 2025-05-03 19:49:15 +02:00
use_def [ty] more precise lazy scope place lookup (#19932) 2025-09-08 21:08:35 +00:00
ast_ids.rs [ty] Split `ScopedPlaceId` into `ScopedSymbolId` and `ScopedMemberId` (#19497) 2025-07-25 13:54:33 +02:00
builder.rs [syntax-errors]: break outside loop F701 (#20556) 2025-10-13 20:00:59 +00:00
definition.rs [ty] defer inference of legacy TypeVar bound/constraints/defaults (#20598) 2025-10-09 21:08:37 +00:00
expression.rs [ty] Track heap usage of salsa structs (#19790) 2025-08-12 13:28:44 +02:00
member.rs [ty] Fix static assertion size check (#19814) 2025-08-07 13:38:16 -05:00
narrowing_constraints.rs [ty] Split `ScopedPlaceId` into `ScopedSymbolId` and `ScopedMemberId` (#19497) 2025-07-25 13:54:33 +02:00
place.rs Update Rust toolchain to 1.89 (#19807) 2025-08-07 18:21:50 +02:00
predicate.rs [ty] Track heap usage of salsa structs (#19790) 2025-08-12 13:28:44 +02:00
re_exports.rs [ty] Avoid overcounting shared memory usage (#19773) 2025-08-06 15:32:02 -04:00
reachability_constraints.rs [ty] refactor `Place` (#20871) 2025-10-15 20:19:19 +02:00
scope.rs [ty] Remove unnecessary `FileScopeId` to `ScopeId` conversion (#20481) 2025-09-20 11:20:10 +00:00
symbol.rs [ty] more cases for the class body global fallback 2025-08-07 17:30:27 -07:00
use_def.rs [ty] Export some stuff from `ty_python_semantic` 2025-09-17 13:59:28 -04:00