title: Finding all references to a method with Roslyn
body: <p>I'm looking to scan a group of .cs files to see which ones call the <code>Value</code> property of a <code>Nullable&lt;T&gt;</code> (finding all references). For example, this would match:</p>
  
  <pre><code>class Program
  {
      static void Main()
      {
          int? nullable = 123;
          int value = nullable.Value;
      }
  }
  </code></pre>
  
  <p>I found out about Roslyn and looked at some of the samples, but many of them are outdated and the API is huge. How would I go about doing this?</p>
  
  <p>I'm stuck after parsing the syntax tree. This is what I have so far:</p>
  
  <pre><code>public static void Analyze(string sourceCode)
  {
      var tree = CSharpSyntaxTree.ParseText(sourceCode);
  
      tree./* ??? What goes here? */
  }
  </code></pre>