Skip to content

Add support for static private members #238

@mikeconley

Description

@mikeconley

In #174, support was added for static class methods. Great! This ticket is about adding support for static private members.

I have a class like this:

class Thing {
  /**
   * The static Thing singleton instance.
   *
   * @static
   * @private
   * @type {Thing|null}
   */
  static private #instance = null;

  // ...
}

:private-members: doesn't show the property by default. Using .. js:autoattribute:: Thing#instance, I expect the property to appear in the docs with decoration indicating that it's both static (and in this case, private).

It does appear in the generated doc, but doesn't show the static keyword nor any indication that the member is private.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions