Commit b4ecc79
committed
Python: Fix some more
Turns out we were not setting the `is_async` field on anything except
`async for` statements. This commit makes it so that we also do this for
`async def` and `async with`, and adds a test that this produces the
same behaviour as the old parser.async parsing problems1 parent e710c0a commit b4ecc79
File tree
2 files changed
+26
-0
lines changed- python/extractor
- tests/parser
- tsg-python
2 files changed
+26
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2650 | 2650 | | |
2651 | 2651 | | |
2652 | 2652 | | |
| 2653 | + | |
| 2654 | + | |
| 2655 | + | |
| 2656 | + | |
| 2657 | + | |
| 2658 | + | |
| 2659 | + | |
| 2660 | + | |
2653 | 2661 | | |
2654 | 2662 | | |
2655 | 2663 | | |
| |||
3253 | 3261 | | |
3254 | 3262 | | |
3255 | 3263 | | |
| 3264 | + | |
| 3265 | + | |
| 3266 | + | |
| 3267 | + | |
| 3268 | + | |
| 3269 | + | |
| 3270 | + | |
| 3271 | + | |
| 3272 | + | |
| 3273 | + | |
3256 | 3274 | | |
3257 | 3275 | | |
3258 | 3276 | | |
| |||
0 commit comments