Message360397
pyclbr currently uses token streams to analyze but it can be alot simpler with usage of AST. There are already many flaws, including some comments about limitations of this token stream processing.
I have a draft about this. Initial PR wont change any behavior, it will just make code much simpler with the usage of AST (just an addition to Function about handling of async functions, is_async field). If agreed I can propose a second PR (or append the inital one) that will enhance Function/Class objects with various identifiers (like keywords, metaclasses, end position information etc.). The second PR will be alot easier to do thanks to AST. |
|
Date |
User |
Action |
Args |
2020-01-21 13:29:29 | Batuhan Taskaya | set | recipients:
+ Batuhan Taskaya, pablogsal |
2020-01-21 13:29:29 | Batuhan Taskaya | set | messageid: <1579613369.33.0.216761296366.issue39411@roundup.psfhosted.org> |
2020-01-21 13:29:29 | Batuhan Taskaya | link | issue39411 messages |
2020-01-21 13:29:29 | Batuhan Taskaya | create | |
|