@inner
Using the @inner tag will mark a symbol as an inner member of its parent symbol. This means it can be referred to by “Parent~Child”. Using @inner will override a doclet’s default scope (unless it is in the global scope, in which case it will remain global). Note that in the above we could have used “@function MyNamespace~myFunction” instead of the @memberof and @inner tags. In the above example, we use @inner to force a member of a namespace to be documented as an inner member (by default, it would be a static member). This means that Overview
Examples
/** @namespace MyNamespace */
/**
* myFunction is now MyNamespace~myFunction.
* @function myFunction
* @memberof MyNamespace
* @inner
*/
/** @namespace */
var MyNamespace = {
/**
* foo is now MyNamespace~foo rather than MyNamespace.foo.
* @inner
*/
foo: 1
};
foo
now has the longname MyNamespace~foo
instead of MyNamespace.foo
.See Also