title: Get other files than .cs with Roslyn
body: <p>I want to find usages of a method with <code>Roslyn</code>. I managed to do this for usages by code in the <code>.cs</code> files. Additionally I want to analyze JavaScript files included in the solution. I know that Roslyn cannot analyze syntax or sematics of JavaScript, so I only want to search for <code>textural occurrencies</code> of my method's name in all <code>.js</code> files.</p>
  
  <p>I retrieve all files (documents) like this:</p>
  
  <pre><code>foreach (Project pr in solution.Projects)
  {
      foreach (Document doc in pr.Documents)
      {
        // my js-file is not included
      }
  }
  </code></pre>
  
  <p>But <code>Documents</code> only contains <code>.cs</code> files. Is there a way to get also <code>.js</code> files or do I have to get the folder with <code>project.FilePath</code> and get the files with the old <code>File API</code>, which could cause problems because not necessarily all files in the folder must have been added to the project etc.?</p>
  
  <p>Edit:<br>
  Also <code>AdditionalFiles</code> does not hold any file.</p>