ruff/crates/red_knot_python_semantic/src
Dhruv Manilawala 47f0b45be3
Implement `AstNode` for `Identifier` (#13207)
## Summary

Follow-up to #13147, this PR implements the `AstNode` for `Identifier`.
This makes it easier to create the `NodeKey` in red knot because it uses
a generic method to construct the key from `AnyNodeRef` and is important
for definitions that are created only on identifiers instead of
`ExprName`.

## Test Plan

`cargo test` and `cargo clippy`
2024-09-02 16:27:12 +05:30
..
module_resolver Eagerly validate typeshed versions (#12786) 2024-08-21 15:49:53 +00:00
semantic_index Implement `AstNode` for `Identifier` (#13207) 2024-09-02 16:27:12 +05:30
types Add definitions for match statement (#13147) 2024-09-02 14:40:09 +05:30
ast_node_ref.rs Add definitions for match statement (#13147) 2024-09-02 14:40:09 +05:30
builtins.rs [red-knot] Merge the semantic and module-resolver crates (#12751) 2024-08-08 15:34:11 +01:00
db.rs Add API to emit type-checking diagnostics (#12988) 2024-08-20 07:22:30 +00:00
lib.rs Eagerly validate typeshed versions (#12786) 2024-08-21 15:49:53 +00:00
module_name.rs [red-knot] Add support for relative imports (#12910) 2024-08-16 12:35:27 +01:00
node_key.rs Implement `AstNode` for `Identifier` (#13207) 2024-09-02 16:27:12 +05:30
program.rs Eagerly validate typeshed versions (#12786) 2024-08-21 15:49:53 +00:00
python_version.rs Remove `red_knot_python_semantic::python_version::TargetVersion` (#12790) 2024-08-10 14:28:31 +01:00
semantic_index.rs Add definitions for match statement (#13147) 2024-09-02 14:40:09 +05:30
semantic_model.rs Eagerly validate typeshed versions (#12786) 2024-08-21 15:49:53 +00:00
site_packages.rs Eagerly validate typeshed versions (#12786) 2024-08-21 15:49:53 +00:00
types.rs [red-knot] Fix call expression inference edge case for decorated functions (#13191) 2024-09-01 16:19:40 +01:00