Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

An AST for you favourite language is readily availble so get one and go nuts.

I am sure in 2006 or so I was doing "extract method" in Resharper. And Lispers probably doing it for centuries ;)



The fascinating part isn't that it can modify code accordingly to some rules - it's that it can modify code from _arbitrary_ languages without having a grammar or semantic analysis for them.


I think the tool has some grammar info: C, C++, C#, Java, Go, JS are similar.

And that is enough when:

1. Most code in a code file is irrelevant to whatever specifc bug is being looked at.

2. It is removal of code at play not writing code.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: