147 Commits

Author SHA1 Message Date
Jeff Williams
3dbb94f157 autodetect défault and repeatable parameters in ES2015 methods (#1144) 2016-01-14 17:23:37 -08:00
Jeff Williams
ab2d8626c1 better docs 2015-12-07 16:01:22 -08:00
Jeff Williams
41d33e8399 fix multiple naming issues with members of a class that is the default export (#1120) 2015-12-07 15:56:07 -08:00
Jeff Williams
1bdcc52156 correctly handle classes that are the default export (#1113) 2015-12-03 06:03:20 -08:00
Jeff Williams
224e796428 prevent crash when exporting an anonymous class (#1113) 2015-11-29 14:53:55 -08:00
Jeff Williams
5a58bdf5a5 support arrow function expressions (#555) 2015-08-20 11:01:08 -07:00
Jeff Williams
087f07dcd5 use the correct longname for properties documented in instance methods (#1011)
Fixes a regression caused by 65f307322ac64d965694dca8f82bf98f08a1e2e4.
2015-08-18 15:34:24 -07:00
Jeff Williams
8e47e5912a add JSX support (#1001) 2015-08-13 16:48:17 -07:00
Jeff Williams
f249630ff0 prevent crash when a FunctionDeclaration node lacks an id property (#1030) 2015-07-05 17:09:45 -07:00
Jeff Williams
7a0ec07521 attach comments to default/rest parameters (#1025) 2015-06-21 10:56:34 -07:00
Jeff Williams
01df038474 unconditionally add the necessary properties to AST nodes (#976)
Fixes a bizarre bug that caused us to assign the wrong name to object properties, apparently because the node ID was not defined at the appropriate time.
2015-06-08 15:24:55 -07:00
Jeff Williams
faba1c8b10 use the correct scope when an ES 2015 class is a memberof something else, and the class has instance members (#994) 2015-05-05 16:35:33 -07:00
Jeff Williams
cfb04e390d fix crash when assigning a class expression to an object property (#988) 2015-04-21 17:34:03 -07:00
Jeff Williams
b6e5051d2f support ES 2015 modules (#555) 2015-04-18 15:47:36 -07:00
Jeff Williams
3189d0cf06 add tests for ES 2015 constructors (#555) 2015-04-10 16:14:19 -07:00
Jeff Williams
fe9407cd71 support class expressions (#555) 2015-04-10 16:02:27 -07:00
Jeff Williams
80c2a9a38c fix crash when multiple params have inline JSDoc comments with no JSDoc tags (#972) 2015-03-30 09:56:32 -07:00
Jeff Williams
4b8504cac9 support ES 2015 classes (#555, #769)
Incorporates work by @eventualbuddha.
2015-03-18 17:14:04 -07:00
Jeff Williams
7ca432d587 allow symbol names that contain whitespace to be borrowed (#818) 2015-03-10 17:37:48 -07:00
Jeff Williams
be77aa4344 handle enums with numeric keys (#946) 2015-03-09 17:28:12 -07:00
Larry Davis
5ed70331fc handle numeric object keys correctly (#945) 2015-03-09 16:18:44 -07:00
Jeff Williams
4713925d78 correctly infer when the class tag contains a class description (#935)
Fixes a regression caused by f1354563965792b8dd183f5a5331f8fcc67ea319.
2015-03-05 15:08:22 -08:00
Jeff Williams
878115e1c1 autodetect string, boolean, and numeric default values of parameters (#555)
We ignore other types based on these assumptions:

1) It doesn't make sense to show variable identifiers, which may refer to (for example) module-private values that should not be documented.
2) If we tried to capture objects and arrays, we would have to iterate over them to see if they contain any variable identifiers, which would be a pain (and potentially confusing: "Why do some objects appear in the docs but not others?")
3) Most developers will not define complex default values in a function definition.
4) In many cases, object and array default values will be `{}` and `[]`, respectively, and usually those don't merit documentation.
2015-03-03 17:22:30 -08:00
Jeff Williams
96c8f6994d handle ES 2015 rest parameters (#555)
As part of this commit, we automatically flag rest parameters as repeatable, even if the JSDoc comment doesn't identify the parameter as repeatable. As a result, it's difficult to document a rest parameter as though it were a normal parameter (should you want to do that for some reason). I may revert this piece if it generates complaints.
2015-02-27 14:39:20 -08:00
Jeff Williams
65f307322a resolve this correctly in chained class declarations within modules (#894) 2015-02-23 16:58:33 -08:00
Jeff Williams
f92245794b correctly handle classes that implement interfaces that extend other interfaces (#909)
The fix for this issue also introduces a regression; see jsdoc3/jsdoc#911.
2015-02-06 08:49:04 -08:00
Jeff Williams
8d896db809 process implements tags before augments tags (#906) 2015-02-05 08:25:24 -08:00
Jeff Williams
028c65c037 in param/property names, cast default values that appear to be boolean/numeric (#900) 2015-02-02 16:24:17 -08:00
Jeff Williams
62f563d730 automatically treat const declarations as constants (#555) 2015-01-30 07:58:36 -08:00
Jeff Williams
456fff47dd commit test fixture (#897) 2015-01-29 16:18:13 -08:00
Jeff Williams
e0ec38047b correctly augment the inheritors of virtual doclets (#893) 2015-01-26 16:25:47 -08:00
Jeff Williams
17c58d76e5 clean up fixtures; add some missing tests 2015-01-24 08:50:09 -08:00
Jeff Williams
c61b9307b4 set the correct longname on prototype members whose names are quoted (#888) 2015-01-24 07:40:47 -08:00
Jeff Williams
16b8aa0a73 commit test fixture 2015-01-19 10:04:30 -08:00
Jeff Williams
d43990f6e4 Merge pull request #860 from Raptor399/accessparam-squashed
Adding access parameter
2015-01-02 09:57:35 -08:00
Patrick Atoon
ba510377da Adding access parameter 2015-01-02 13:01:29 +01:00
Jeff Williams
7e23a68c59 multiple fixes for overridden symbols (#855)
- Don't add an "overrides" property to members that are merely inherited.
- In the template, don't show both "overrides" and "inherited from" for the same member.
2014-12-29 15:48:05 -08:00
Jeff Williams
6faad35eb5 strip enclosing parens from the variation tag's value (#850) 2014-12-25 17:16:59 -08:00
Jeff Williams
39e5008cfc implement inheritdoc and override tags (#53) 2014-12-22 10:35:52 -08:00
Jeff Williams
a86af80836 fire jsdocCommentFound and symbolFound events in the correct order (#770)
On Rhino, for each file, we now fire all the jsdocCommentFound events in source order, followed by all the symbolFound events in source order. This behavior is consistent with previous versions of JSDoc.

On Node.js, we now fire interleaved jsdocCommentFound and symbolFound events in source order.

Includes a new Rhino .jar file: jsdoc3/rhino@5fbcc2d953
2014-12-21 17:39:56 -08:00
Jeff Williams
869f63113f allow interface tag to have a name in the JSDoc tag dictionary (#828) 2014-12-18 16:41:51 -08:00
Jeff Williams
5fa636ab7b create doclets for mixed-in symbols (#378)
Also includes a fair amount of cleanup.
2014-12-07 11:05:56 -08:00
Jeff Williams
f135456396 don't overwrite the classdesc tag's value when the class and constructor tags are also present (#806) 2014-11-27 11:48:11 -08:00
Jeff Williams
df1f4bda22 treat foo="bar" as a non-optional version of [foo="bar"] (#791) 2014-11-06 20:51:13 -08:00
Jeff Williams
e60fc3c717 prevent duplication when two parent classes have instance members with identical names (#613) 2014-10-25 11:05:56 -07:00
Jeff Williams
58839223a9 strip module namespace from module and exports tag values (#786)
This change makes `/** @exports module:foo */` a synonym for `/** @exports foo */`.
2014-10-22 15:48:51 -07:00
Jeff Williams
2eb3c467ee handle enums that are part of a chain of assignments (#702)
We now add the enum properties to all of the symbols in the assignment chain, rather than just the first symbol.
2014-10-12 13:47:01 -07:00
Jeff Williams
f77984df55 fix name resolution when the exports tag is used on a pointer to the module's exports object (#404) 2014-10-11 09:58:51 -07:00
Jeff Williams
3b865dde3f Merge remote-tracking branch 'brjs/fix-classdesc-in-modules' 2014-10-07 08:45:24 -07:00
Jeff Williams
4eb86a13a2 handle object literals whose property names must be escaped in a regexp (#775) 2014-10-05 21:35:45 -07:00