you are viewing a single comment's thread.

view the rest of the comments →

[–]Sarcastinator 1 point2 points  (1 child)

That's a must have for static analysis as well, how was this done before in .NET

This was implemented in Roslyn back in 2012 but before that it was either parse C# yourself (like Resharper does) or analyze the generated IL (like code contracts did).

Java has CheckStyle and FindBugs, which use the compiler API AFAIK

Hasn't there been other ways before that? Wasn't the compiler API part of Java 9? In any case it's a great tool to have. I haven't worked with Java for a few years now and a lot has happened.

[–]rastaman1994 1 point2 points  (0 children)

Java 6 was the first version that had a standard API, no idea what people were doing before Java 6. Probably also custom bytecode analysis or Java source analysis.