96 Commits

Author SHA1 Message Date
Jeff Williams
a36f6c5e3d move jsdoc/name to @jsdoc/name, plus related cleanup 2019-02-03 14:34:34 -08:00
Jeff Williams
85cbed9c0c change loading process for plugins and Markdown highlighters; remove jsdoc/path
We now simply use `require()` to load plugins and Markdown highlighters.

Note that `@jsdoc/util.path.commonPrefix`, unlike `jsdoc/path.commonPrefix`, does not append `path.sep` to the return value.

Includes other minor cleanup.
2019-01-27 15:18:28 -08:00
Jeff Williams
5f578e803b migrate from old, vendored Jasmine to jasmine package (#1602)
Plus some miscellaneous cleanup.
2019-01-21 19:38:07 -08:00
Jeff Williams
a29a03b2d9 move jsdoc/util/logger into a new package 2019-01-19 21:49:27 -08:00
Jeff Williams
aa0b6c1bfa switch to new-ish ECMAScript syntax
With help from Lebab, plus a lot of manual cleanup. (And more cleanup to come, I'm sure.)
2019-01-15 18:39:10 -08:00
Jeff Williams
2c6bcd4407 prevent crash when an anonymous class is passed as a parameter (#1416) 2017-07-29 16:50:01 -07:00
Jeff Williams
f4bf81606f fix problems with methods and properties in classes returned by arrow function expressions (#1409)
+ don't prepend `undefined` to method and property names
+ use the parent class's alias
2017-07-16 14:10:52 -07:00
Jeff Williams
cc66657512 don't ignore properties like examples on ES2015 class constructors (#1129) 2017-07-15 16:03:13 -07:00
Jeff Williams
5026e449e2 work around Babylon comment-attachment bug (#1396)
https://github.com/babel/babylon/issues/619
2017-07-13 19:19:28 -07:00
Jeff Williams
d7c7fea358 use the correct longname for constructors of ES2015 classes with @alias tags (#1395) 2017-07-13 17:09:07 -07:00
Jeff Williams
a3523abebc fix crash when a class property has no value (#1400) 2017-07-12 19:03:46 -07:00
Jeff Williams
42746c591a correctly resolve this for instance properties of a class that is a) within a module and b) is aliased to the module name (#1134) 2017-07-10 17:01:53 -07:00
Jeff Williams
5666f4ccef correctly handle aliases that identify instance members, like @alias Foo#bar (#1385) 2017-07-10 15:32:27 -07:00
Jeff Williams
6275e69e85 autodetect default and repeatable parameters when a function is assigned to a variable (#1054) 2017-07-07 13:24:19 -07:00
Jeff Williams
0e4f1a9575 correctly document constructors and instance properties of ES2015 classes (#1182) 2017-07-07 10:54:55 -07:00
Jeff Williams
15b57e52f3 overhaul ESLint config; delint 2017-07-05 21:05:52 -07:00
Jeff Williams
133ee8a5af autodetect generator functions, and support a new @generator tag (#1158) 2017-07-04 20:36:42 -07:00
Jeff Williams
47005e9646 support class properties, including private properties 2017-07-04 18:01:34 -07:00
Jeff Williams
9267ca8363 remove one last Rhino check 2017-07-03 15:39:20 -07:00
Jeff Williams
2f60a2c222 handle async functions (#1188) 2017-07-02 13:38:08 -07:00
Jeff Williams
3fc0cd0717 handle exported ES2015 classes correctly (#1137) 2016-09-12 16:39:35 -07:00
Jeff Williams
3dbb94f157 autodetect défault and repeatable parameters in ES2015 methods (#1144) 2016-01-14 17:23:37 -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
ba673ff4c1 cleanup 2015-11-25 16:03:45 -08:00
Tim Schaub
621f012211 Remove Rhino support 2015-10-30 13:11:43 -06:00
Jeff Williams
5a58bdf5a5 support arrow function expressions (#555) 2015-08-20 11:01:08 -07:00
Jeff Williams
4822bca6c1 whitespace 2015-08-19 09:50:46 -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
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
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
67244c06eb quote unsafe property names (#950)
Fixes a regression introduced by the parser overhaul in 44d9ec6831e498bd082de98a5bc60abfdba2bb7f.
2015-03-13 16:56:32 -07: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
1c754e98f2 fix build breakage on Rhino parser 2015-02-27 16:08:55 -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
ae94af0cd8 turn env global into a module, and use the module instead of the global (#812)
The `env` global remains available, since templates and plugins may rely upon it, but it's deprecated as of JSDoc 3.4.0.
2015-02-17 19:07:10 -08:00
Jeff Williams
62f563d730 automatically treat const declarations as constants (#555) 2015-01-30 07:58:36 -08:00
Jeff Williams
e0ec38047b correctly augment the inheritors of virtual doclets (#893) 2015-01-26 16:25:47 -08:00
Jeff Williams
8ad4b49b3f correctly handle symbols named prototype (#891) 2015-01-24 09:09:31 -08:00
Jeff Williams
17c58d76e5 clean up fixtures; add some missing tests 2015-01-24 08:50:09 -08:00
Jeff Williams
e89ecd615f resolve this for computed properties (#890) 2015-01-24 08:40:55 -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
6faad35eb5 strip enclosing parens from the variation tag's value (#850) 2014-12-25 17:16:59 -08:00
Jeff Williams
416b42fa75 update ESLint; delint 2014-12-13 09:39:21 -08:00