Exploring how to write a code analyzer with Roslyn

Posted by Filip Ekberg on October 23 2011 3 Comments

In the previous post we looked at the documentation that came with Roslyn and how to create your first code analyzer. Now let’s take this a step further and start refactoring the code and look for more errors. Start off by create a new solution, don’t worry we’re going to re-use bits of the code […]

Vote on HN

Creating a basic code analysis with Roslyn

Posted by Filip Ekberg on October 23 2011 Leave a Comment

If you’ve installed the Roslyn CTP, you can go to the installation folder and look inside the Documentation folder, there’s a lot of interesting information here that you can make use of. I’ve got my documentation here: C:\Program Files (x86)\Microsoft Codename Roslyn CTP\Documentation Now there’s one document here that is a bit extra interesting, at […]

Vote on HN

Getting all methods from a code file with Roslyn

Posted by Filip Ekberg on October 21 2011 Leave a Comment

In the previous post we started looking at Roslyn and let’s continue on this topic and see what else we can get out of it! I want to take a look at how we can retrieve all methods and get some information about them. I’ve added another method to the Person-class so it looks like […]

Vote on HN

Using Roslyn to parse C# code files

Posted by Filip Ekberg on October 20 2011 Leave a Comment

A couple of days ago Microsoft released something called the Roslyn Project and it is now in it’s CTP state, just as Async! But what is Roslyn and what can it be used for? In the previous post I talked about how I wrote assembler that was generated from an application that parsed some programming […]

Vote on HN