<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Roslyn on queil.net</title>
    <link>https://queil.net/tags/roslyn/</link>
    <description>Recent content in Roslyn on queil.net</description>
    <generator>Hugo</generator>
    <language>en-uk</language>
    <lastBuildDate>Tue, 20 Feb 2018 19:58:29 +0000</lastBuildDate>
    <atom:link href="https://queil.net/tags/roslyn/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Finding references in C# code with Roslyn and F#</title>
      <link>https://queil.net/2018/02/finding-references-in-csharp-code-with-roslyn-and-fsharp/</link>
      <pubDate>Tue, 20 Feb 2018 19:58:29 +0000</pubDate>
      <guid>https://queil.net/2018/02/finding-references-in-csharp-code-with-roslyn-and-fsharp/</guid>
      <description>&lt;h2 id=&#34;introduction&#34; class=&#34;anchor-link&#34;&gt;&lt;a href=&#34;#introduction&#34;&gt;Introduction&lt;span class=&#34;pilcrow&#34;&gt;&amp;nbsp;¶&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;The most of .NET developers use &lt;a href=&#34;https://github.com/dotnet/roslyn&#34;&gt;Roslyn&lt;/a&gt; (the .NET Compiler) everyday. But apart from compiling code it comes with a versatile APIs used for syntax highlighting, analyzers, navigation tools just to name the most typical ones. I want to show you how to use it in your own tools. This time I want a tiny tool that finds all usages of a class&lt;sup id=&#34;fnref:1&#34;&gt;&lt;a href=&#34;#fn:1&#34; class=&#34;footnote-ref&#34; role=&#34;doc-noteref&#34;&gt;1&lt;/a&gt;&lt;/sup&gt; in a solution&lt;sup id=&#34;fnref:2&#34;&gt;&lt;a href=&#34;#fn:2&#34; class=&#34;footnote-ref&#34; role=&#34;doc-noteref&#34;&gt;2&lt;/a&gt;&lt;/sup&gt;.&lt;/p&gt;&#xA;&#xA;&lt;h2 id=&#34;lets-code&#34; class=&#34;anchor-link&#34;&gt;&lt;a href=&#34;#lets-code&#34;&gt;Let&amp;rsquo;s code&lt;span class=&#34;pilcrow&#34;&gt;&amp;nbsp;¶&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;&lt;em&gt;I picked F# as my language of choice for this post. The code is easily translatable to C# though. All the code from the article you can &lt;a href=&#34;https://github.com/queil/Queil.CodeRules.Analysis&#34;&gt;access here&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
