[red-knot] Auto generate statement nodes (#16645)

<!--
Thank you for contributing to Ruff! To help us out with reviewing,
please consider the following:

- Does this pull request include a summary of the change? (See below.)
- Does this pull request include a descriptive title?
- Does this pull request include references to any relevant issues?
-->

## Summary

<!-- What's the purpose of the change? What does it do, and why? -->

Part of #15655 

Replaced statement nodes with autogenerated ones. Reused the stuff we
introduced in #16285. Nothing except for copying the nodes to new
format.

## Test Plan

Tests run without any changes. Also moved the test that checks size of
AST nodes to `generated.rs` since all of the structs that it tests are
now there.
<!-- How was it tested? -->
This commit is contained in:
Shaygan Hooshyari 2025-03-13 15:43:48 +01:00 committed by GitHub
parent d8159e816f
commit 360ba095ff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 552 additions and 375 deletions

View file

@ -30,6 +30,14 @@ types_requiring_create_prefix = [
"UnaryOp",
"BoolOp",
"Operator",
"Decorator",
"TypeParams",
"Parameters",
"Arguments",
"ElifElseClause",
"WithItem",
"MatchCase",
"Alias",
]