ruff/crates/red_knot_python_semantic/src
Douglas Creager ba44e9de13
[red-knot] Don't use separate ID types for each alist (#16415)
Regardless of whether #16408 and #16311 pan out, this part is worth
pulling out as a separate PR.

Before, you had to define a new `IndexVec` index type for each type of
association list you wanted to create. Now there's a single index type
that's internal to the alist implementation, and you use `List<K, V>` to
store a handle to a particular list.

This also adds some property tests for the alist implementation.
2025-02-28 14:55:55 -05:00
..
module_resolver Rename venv-path to python (#16347) 2025-02-24 19:41:06 +01:00
semantic_index [red-knot] Don't use separate ID types for each alist (#16415) 2025-02-28 14:55:55 -05:00
types [red-knot] treat annotated assignments without RHS in stubs as bindings (#16409) 2025-02-28 16:45:21 +00:00
util [red-knot] Improve ergonomics for the PySlice trait (#13983) 2024-10-29 20:40:59 +00:00
ast_node_ref.rs Remove Hash and Eq from AstNodeRef for types not implementing Eq or Hash (#16100) 2025-02-11 19:55:50 +01:00
db.rs Use ast::PythonVersion internally in the formatter and linter (#16170) 2025-02-18 12:03:13 -05:00
lib.rs [red-knot] Don't use separate ID types for each alist (#16415) 2025-02-28 14:55:55 -05:00
lint.rs Add knot.toml schema (#15735) 2025-02-07 10:59:40 +01:00
list.rs [red-knot] Don't use separate ID types for each alist (#16415) 2025-02-28 14:55:55 -05:00
module_name.rs Bind top-most parent when importing nested module (#14946) 2024-12-16 16:15:40 -05:00
node_key.rs [red-knot] Use memory address as AST node key (#14317) 2024-11-13 14:35:54 +01:00
program.rs Rename venv-path to python (#16347) 2025-02-24 19:41:06 +01:00
python_platform.rs Add knot.toml schema (#15735) 2025-02-07 10:59:40 +01:00
semantic_index.rs [red-knot] Rename constraint to predicate (#16382) 2025-02-25 14:52:40 -05:00
semantic_model.rs [red-knot] Rename *_ty functions (#15617) 2025-01-22 09:06:56 +01:00
site_packages.rs Rename venv-path to python (#16347) 2025-02-24 19:41:06 +01:00
suppression.rs ruff_db: add "secondary" messages to Diagnostic trait 2025-02-19 08:24:19 -05:00
symbol.rs [red-knot] Rename constraint to predicate (#16382) 2025-02-25 14:52:40 -05:00
types.rs [red-knot] Disallow more invalid type expressions (#16427) 2025-02-28 10:04:30 +00:00
unpack.rs Update Salsa part 1 (#16340) 2025-02-24 09:35:21 +01:00