ruff/crates/ruff_python_ast
Charlie Marsh c439435615
Use dedicated AST nodes on MemberKind (#6374)
## Summary

This PR leverages the unified function definition node to add precise
AST node types to `MemberKind`, which is used to power our docstring
definition tracking (e.g., classes and functions, whether they're
methods or functions or nested functions and so on, whether they have a
docstring, etc.). It was painful to do this in the past because the
function variants needed to support a union anyway, but storing precise
nodes removes like a dozen panics.

No behavior changes -- purely a refactor.

## Test Plan

`cargo test`
2023-08-07 17:17:58 +00:00
..
src Use dedicated AST nodes on MemberKind (#6374) 2023-08-07 17:17:58 +00:00
tests Rename Arguments to Parameters in the AST (#6253) 2023-08-01 13:53:28 -04:00
Cargo.toml Add static assertions to nodes (#6228) 2023-08-01 11:54:49 +02:00