documentationjs / documentationjs/documentation

memberof does not cascade down to class members

Open
#591 5 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
5.8k
Forks
481
PR merge metrics
No merged PRs in 30d

Description

With the following code:

```
/** @module module */

/**
* @class Clazz
* @memberof module
*/
class Clazz {
/** Whatever */
member = 7
}
```

The `member` member gets documented as a root-level item with `"memberof": "Clazz",`. It really should be a memberof `module.Clazz`. Adding an explicit `memberof` does allow it to generate the correct docs. This is possibly related to #417 but seems to be more an extension of the same problem. (I already think there's an open issue that @module should already imply that `Clazz` is a `memberof` `module`. If not, I'll be happy to create one)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.