title: JSDOC: How to document inner variables of function
body: <p>Is there a way to have JSDOC to display variables inside of functions without using the <strong>@namespace</strong> annotation before the function?  </p>
  
  <p>I have made a small test object, but it will only display the inner variable <strong>k</strong> for the last function, which is declared as a namespace.  I thought using the <strong>@memberof!</strong> annotation and exact <strong>@name</strong> annotation would display the inner variable in the second method below called <strong>diff</strong>.  I am running jsdoc3 on the command with the options <strong>--access "all" --explain</strong>.</p>
  
  <p>Here is the code for test object:</p>
  
  <pre><code>(function(){
      "use strict";
      /**
       * @namespace
       * @type {{}}
       */
      window.myFunctions = {};
      /**
       * Return the sum
       * @param {number} i
       * @param {number} j
       * @return {number}
       */
      window.myFunctions.sum = function(i, j) {
        /**  @type {number} */
        var k = i + j;
        return k;
      };
      /**
       * Return the difference i - j
       * @param {number} i
       * @param {number} j
       * @return {number}
       */
      window.myFunctions.diff = function(i, j) {
        /**
         * @inner
         * @memberof! window.myFunctions.diff
         * @type {number}
         * @name window.myFunctions.diff~k
         */
        var k = i - j;
        return k;
      };
      /**
       * Return the product
       * @namespace
       * @param {number} i
       * @param {number} j
       * @return {number}
       */
      window.myFunctions.multiply = function(i, j) {
        /** @type {number} */
        var k = i * j;
        return k;
      }
  });
  </code></pre>