351 Commits

Author SHA1 Message Date
Jeff Williams
68ceb33ec3 stop adding a scope property to module doclets that include an exports tag (#782) 2014-10-11 15:09:53 -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
1774569850 delint 2014-10-10 15:19:52 -07:00
Jeff Williams
c083ab7bd1 remove unused test; cleanup 2014-10-07 08:54:22 -07:00
Jeff Williams
413c7eb186 whitespace 2014-10-07 08:53:48 -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
Jeff Williams
765abd9a10 cleanup 2014-10-05 21:31:24 -07:00
Jeff Williams
df7a1e0232 do not add an exception's description and type to the parent doclet; avoid circular refs when cloning an object (#772) 2014-10-05 21:17:25 -07:00
Jeff Williams
908e5e6076 do not unescape entities in Markdown tutorials (#743) 2014-09-22 15:42:10 -07:00
Jeff Williams
ebb6b2284f cleanup 2014-09-22 15:35:46 -07:00
Jeff Williams
73998951b1 fix exports tag when the module object is passed to an AMD function (#642)
- Do not mark the doclet for the module object as undocumented.
- Track variables (including aliases) within the parent scope, so the members are resolved against the alias instead of the name used in the code.
2014-09-19 09:01:14 -07:00
Jeff Williams
71de4acaf0 cleanup 2014-09-19 08:49:11 -07:00
Jeff Williams
d527f3e6b0 prevent crash when a returns tag does not have a value (#751) 2014-09-05 15:30:21 -07:00
Jeff Williams
e093716ebe handle sparse arrays correctly in nodeToString (#749) 2014-09-05 15:12:57 -07:00
Jeff Williams
6328336d1d cleanup 2014-08-19 16:27:19 -07:00
Jeff Williams
81d74b9b92 remove scope property from module doclets (#742) 2014-08-19 12:51:30 -07:00
Jeff Williams
55f40e1085 cleanup 2014-08-19 12:49:06 -07:00
Dominic Chambers
f2f8d74d22 Added failing test that should work (it works within the template) and
which otherwise explains how the class information is available for use
within module documentation pages.
2014-08-19 17:41:56 +01:00
Dominic Chambers
28cb42de33 Added missing coverage around modules that contain a default CommonJs
class being exported within the module -- this has actually shown that
the doclets produced are probably correct, and that the bug is likely to
be within the template.
2014-08-19 16:53:58 +01:00
Jeff Williams
2ed4a0320b if we can't find the scope for a virtual comment, set the doclet's scope to global (#684) 2014-08-18 17:32:21 -07:00
Jeff Williams
17fb5be064 for Closure, allow the type tag to have a description (#732) 2014-08-13 21:53:11 -07:00
Jeff Williams
180454c3a8 rename file for consistency 2014-08-13 21:45:30 -07:00
Jeff Williams
e8b692b334 allow the Closure version of the protected tag to specify a type (#731)
Also adds tests for the `protected` tag.
2014-08-13 17:04:47 -07:00
Jeff Williams
21e0dbad25 allow the Closure version of the private tag to specify a type (#730) 2014-08-13 15:32:51 -07:00
Jeff Williams
addee8ea7e split up the JSDoc and Closure Compiler tag definitions (#729)
A new `tags.dictionaries` config setting allows you to choose which definitions to enable.

If a tag is defined in more than one dictionary, JSDoc will use the definition from the first dictionary.
2014-08-13 13:39:14 -07:00
Jeff Williams
f9c593824f turn the dictionary module into an instantiable class 2014-08-12 16:21:37 -07:00
Jeff Williams
89237260c6 support virtual comments for overloaded symbols (#727) 2014-08-12 09:37:00 -07:00
Jeff Williams
2f87fb11dc improvements to interface and implements tags
- Change doclet property names
- Populate the list of property implementations in augment.js, not in the template
- Tone down the presentation of both tags in the default template
- Other related cleanup
2014-08-11 16:02:00 -07:00
Jeff Williams
7ef13bf40b prevent crash when a class claims to implement an interface but has no members 2014-08-11 16:01:59 -07:00
Jeff Williams
7c2a6d7438 cleanup 2014-08-11 16:01:59 -07:00
MinHyeong Kim
87c33e242b modify codes for generate describe interface's all properties. 2014-08-11 16:01:59 -07:00
MinHyeong Kim
c797b50c49 uncomment test code. 2014-08-11 16:01:59 -07:00
MinHyeong Kim
cc9ceb700b fix codes for patch. excepts 'implements not functions' issue. 2014-08-11 16:01:59 -07:00
MinHyeong Kim
52426cd3a7 add test codes for @interface, @implements annotations. 2014-08-11 16:01:59 -07:00
Jeff Williams
c2d3d0041b add getAncestors and getUniqueId helpers 2014-08-06 15:32:06 -07:00
Jeff Williams
1171593908 parsedType property improvements (#576)
- Make the parsedType property non-enumerable unless debug mode is enabled.
- Add a more appropriate test case.
- Remove the (incomplete) schema for parsed types.
2014-07-30 12:04:10 -07:00
Jeff Williams
2dec7bd4e0 expose parsed type in doclets (#576)
Author: Alexey Malutin (https://github.com/Alexey-Malutin)
2014-07-30 10:53:10 -07:00
Jeff Williams
c557cd0a8b use the correct type expression for type applications that contain type unions (#714) 2014-07-26 14:16:25 -07:00
Jeff Williams
cae3cce8c1 add longnamesToTree method 2014-07-03 13:53:46 -07:00
Jeff Williams
dcca9a4714 clean up constants exported by jsdoc/name 2014-07-03 12:35:56 -07:00
Jeff Williams
abfa24578c don't log an error when a comment only contains whitespace (#698) 2014-07-02 20:11:39 -07:00
Jeff Williams
254c05fbf6 set the appropriate longname for function declarations in AMD modules (#685)
This is a hack. See #693 for details.
2014-06-29 17:11:55 -07:00
Jeff Williams
dabcb5904f cleanup 2014-06-28 20:21:22 -07:00
Jeff Williams
873480a3ed improve filename creation (#677)
We now allow a much larger range of characters in filenames. We also URL-encode HTML links when necessary, so that everything still works when you upload the files to a web server.
2014-06-28 16:59:01 -07:00
Jeff Williams
873f3dac3d regression test for #683 2014-06-28 08:23:32 -07:00
Jeff Williams
ae0a03af5c if a module exports one symbol, do not treat it as a global, regardless of the symbol's kind (#667)
Plus some test cleanup.
2014-06-20 17:36:49 -07:00
Jeff Williams
8840f30a0b autodetect parameter names in function expressions (#674) 2014-06-20 16:51:36 -07:00
Jeff Williams
941b647d5b prevent type info from overwriting existing doclet properties (#676) 2014-06-19 16:44:38 -07:00
Jeff Williams
6672668b48 add the AST node to doclets as a non-enumerable property by default
This change prevents a lot of clutter when using the `--explain` flag to log doclets to the console.

If the `--debug` flag is enabled, AST nodes are added as enumerable properties.
2014-06-17 21:42:45 -07:00