504 Commits

Author SHA1 Message Date
Jeff Williams
adf742615e support the fileoverview tag in the Closure Compiler dictionary (#605) 2017-07-16 17:03:01 -07:00
Jeff Williams
afe7c3564a support the externs tag (Closure Compiler only) (#605) 2017-07-16 16:52:17 -07:00
Jeff Williams
d06ba2788a support the export tag (Closure Compiler only) (#605) 2017-07-16 16:47:58 -07:00
Jeff Williams
2e739594b8 support the dict tag (Closure Compiler only) (#605) 2017-07-16 16:32:04 -07:00
Jeff Williams
bca700216e support the define tag (Closure Compiler only) (#605) 2017-07-16 16:19:55 -07:00
Jeff Williams
857a346f4b add jasmine.replaceTagDictionary and jasmine.restoreTagDictionary test helpers 2017-07-16 15:19:17 -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
b28379e398 make the @override tag work as expected (#1215)
The `@override` tag no longer causes all other doclet properties to be ignored. Instead, the doclet will keep its own properties and inherit any missing properties from the parent class or interface.
2017-07-15 15:33:18 -07:00
Jeff Williams
4aa3ee8f96 turn Doclet#merge into doclet.combine 2017-07-15 14:01:12 -07:00
Jeff Williams
d4c2c400c5 slight change to merge behavior 2017-07-15 09:46:52 -07:00
Jeff Williams
0551bd49ed add merge method to doclets (#1215) 2017-07-14 21:39:21 -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
11e8c6d5e2 ignore non-JSDoc comments when creating symbolFound events (#1398) 2017-07-12 13:48:51 -07:00
Jeff Williams
b38b8db2d0 ignore empty block comments (#1398) 2017-07-12 11:51:48 -07:00
Jeff Williams
6de1317943 ignore non-JSDoc comments (#1398) 2017-07-12 09:38:27 -07:00
Jeff Williams
e83c140441 overhaul path.getResourcePath() (#1394)
The new code is simpler and (hopefully) more correct. It leverages `require.resolve()` to do some of the heavy lifting.
2017-07-11 18:42:23 -07:00
Jeff Williams
7f8b997d5c cleanup 2017-07-11 15:48:49 -07:00
Jeff Williams
957d94d215 remove stray console.log 2017-07-10 17:58:22 -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
c50a4c027a add yields tag (#1388) 2017-07-09 12:46:27 -07:00
Jeff Williams
9f8853acff add hideconstructor tag (#952) 2017-07-07 14:59:07 -07:00
Jeff Williams
ca1c4f2c82 add package tag (#962) 2017-07-07 13:59:02 -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
f1017988ec fix crash when the author tag is empty (#1289) 2017-07-06 20:56:57 -07:00
Jeff Williams
a097e2f299 get rid of jsdoc/util/runtime (#1383); delint 2017-07-05 22:57:11 -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
2aad297cdc support a JS config file (#1351)
Thanks to @BrandonOCasey for implementing this feature.
2017-07-03 17:00:19 -07:00
Hilmar Lapp
4a187da562 Fix directory name clashes with JSDoc plugin and template loading (#1308) 2017-07-03 16:41:18 -07:00
Jeff Williams
9267ca8363 remove one last Rhino check 2017-07-03 15:39:20 -07:00
Jeff Williams
6cb96f5164 correctly document the constructor of a class exported from an ES2015 module (#1272) 2017-07-03 15:34:25 -07:00
Jeff Williams
5660c94adf use the correct scope for exported symbols (and their children) in ES 2015 modules (#1293) 2017-07-03 14:47:47 -07:00
Jeff Williams
7fd0f590ee don't crash on UTF-8 JSON files with a leading BOM (#1256, #1297) 2017-07-02 16:28:23 -07:00
Jeff Williams
2f60a2c222 handle async functions (#1188) 2017-07-02 13:38:08 -07:00
Jeff Williams
ffec4a4229 switch to Babylon parser 2017-07-01 20:33:17 -07:00
Jeff Williams
3fc0cd0717 handle exported ES2015 classes correctly (#1137) 2016-09-12 16:39:35 -07:00
Björn Harrtell
34c6eb9ffd Update gulp-eslint and minor style fixes to adapt to new eslint version 2016-03-31 21:17:41 +02:00
Kevin Locke
61a3599154 Support an Array of tags titles in allowUnknownTags
This commit adds support for specifying an Array of tags which are
unknown to JSDoc, but allowed without error.  It provides a more
granular way to disable such errors while retaining the benefits of
catching errant tags (e.g. typos).

The intended use case is catching errant tags when using additional
tools which support tags not recognized by JSDoc (e.g. Closure Compiler
and the tags discussed in #605).

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
2016-02-24 11:38:56 -08:00
Jeff Williams
3dbb94f157 autodetect défault and repeatable parameters in ES2015 methods (#1144) 2016-01-14 17:23:37 -08:00
vvo
b1cd9a2598 fix(object spread): support experimental object spread
As per https://github.com/sebmarkbage/ecmascript-rest-spread

This was badly failing previously.

Any insights/comments welcomed!
2016-01-05 18:10:46 +01: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