sutoiku / jsdox

simplified jsdoc 3
jsdox.org
MIT License
212 stars 52 forks source link

Correctly check for @private tag (fixes #60) #61

Closed mlms13 closed 10 years ago

mlms13 commented 10 years ago

A shortened version of the AST looks like this:

{
  "comment": "... */",
  "description": "...",
  "params": [],
  "returns": [],
  "access": "private",
}

Even though my code uses @private, it still gets expanded to access: "private" in the AST. This means that tag.private was always undefined, and isInternal was incorrectly returning false. This fixes that.