Implement StmtPass (#4959)

This implements StmtPass as `pass`.

The snapshot diff is small because pass mainly occurs in bodies and function (#4951) and if/for bodies.
This commit is contained in:
konstin 2023-06-08 16:29:27 +02:00 committed by GitHub
parent 6bef347a8e
commit c8442e91ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 7 deletions

View file

@ -41,14 +41,14 @@ while (
## Output
```py
while 34: # trailing test comment
NOT_YET_IMPLEMENTED_StmtPass # trailing last statement comment
pass # trailing last statement comment
# trailing while body comment
# leading else comment
else: # trailing else comment
NOT_YET_IMPLEMENTED_StmtPass
pass
# trailing else body comment
@ -56,7 +56,7 @@ else: # trailing else comment
while (
aVeryLongConditionThatSpillsOverToTheNextLineBecauseItIsExtremelyLongAndGoesOnAndOnAndOnAndOnAndOnAndOnAndOnAndOnAndOn
): # trailing comment
NOT_YET_IMPLEMENTED_StmtPass
pass
else:
...