119 Commits

Author SHA1 Message Date
Jeff Williams
44d9ec6831 new parser infrastructure
consumes ASTs that follow the Mozilla Parser API spec:
https://developer.mozilla.org/en-US/docs/SpiderMonkey/Parser_API

passes all tests on OS X; performance is comparable to previous
version. also includes some miscellaneous cleanup.

remaining issues:
- only Rhino AST builder is supported
- node visitors (old and new) may not be hooked up yet
- circular-reference issues in doclets
- docs are (mostly) missing
- various other TODO comments
2013-06-23 10:18:13 -07:00
Jeff Williams
8a6fe881e8 resolve relative paths before scanning/filtering (#405) 2013-05-02 22:00:21 -07:00
Jeff Williams
f97803ad69 use Object.keys instead of Object.hasOwnProperty where possible 2013-05-02 20:06:04 -07:00
Jeff Williams
e0ffe52411 just export the extras; don't attach them to the built-in fs module 2013-05-02 19:59:17 -07:00
Jeff Williams
d78b10a890 clean up redundant code 2013-05-02 19:46:36 -07:00
Jeff Williams
9433b863b0 undo some unnecessary (and possibly harmful) changes to method signatures 2013-04-29 09:23:17 -07:00
Jeff Williams
992827ce58 don't parse inline tags as type expressions (#372) 2013-04-29 08:42:55 -07:00
Jeff Williams
398595d796 use inline tag module in templateHelper; allow inline tag replacers to operate on the entire string
the latter change undoes part of
9de918ab942c3d9a5c2883130d5b9b1a965b2bb2
2013-04-29 07:47:44 -07:00
Jeff Williams
9de918ab94 rework type extraction and inline tag parsing
- brace-counting logic now lives in the type code, which is where it's
needed
- we now replace (and return) ALL instances of an inline tag, not just
the first one
2013-04-28 22:03:48 -07:00
Jeff Williams
d6f1eed8c0 refactor link-generating code
linkto and resolveLinks now rely on shared functions instead of
reimplementing one another
2013-04-28 10:03:02 -07:00
Jeff Williams
e887dadc82 refactor some tag-related code 2013-04-23 08:41:57 -07:00
Jeff Williams
070903fb88 link to individual line numbers in source files (#316) 2013-04-20 09:19:10 -07:00
Jeff Williams
655dfa0f5f fix test failures 2013-04-19 17:28:46 -07:00
Jeff Williams
b082de462b remove github-flavored-markdown; automatically use marked instead (#385) 2013-04-19 15:05:16 -07:00
François Frisch
b094885276 Add support for marked markdown parser
the dependency was added according to the instructions in gh-385
Conflicts:
	package.json
2013-04-19 14:59:06 -07:00
Jeff Williams
8c65d81e23 match Node.js' console.log/error/info/warn/trace; speed up -X option (#298) 2013-04-18 23:16:47 -07:00
Jeff Williams
5c69bbd289 cleanup 2013-04-18 16:13:34 -07:00
Jeff Williams
5b219ababb fix the name/scope of properties whose names include single quotes (#386) 2013-04-17 18:08:27 -07:00
Jeff Williams
a3286e38bc remove jsVersion config property (#390) 2013-04-17 17:45:46 -07:00
Jeff Williams
32b2ea5a1d recognize Closure Compiler-style typedefs (#391) 2013-04-16 03:21:30 -07:00
Jeff Williams
263e3ca2e4 remove variations before generating filenames (#179) 2013-04-15 06:50:27 -07:00
Jeff Williams
e592427fce prevent circular refs in doclets; misc. cleanup 2013-04-15 06:49:58 -07:00
Jeff Williams
883b181ac7 use the correct comment when creating doclets for overloaded methods (#179) 2013-04-14 17:50:25 -07:00
Jeff Williams
7ef78a434a fix spurious error when using JSHint 1.1.0 2013-04-12 07:44:07 -07:00
Jeff Williams
407a718543 Merge branch 'pr/365' 2013-04-07 07:14:57 -07:00
Jeff Williams
e5be860cc4 support modules that export a single non-constructor function (#384) 2013-04-06 16:53:20 -07:00
Jeff Williams
a9405a8d10 fix for "variable" (repeatable) params (#381) 2013-04-02 07:41:53 -07:00
mathematicalcoffee
66321a196f Merge branch 'master' into feature-listens 2013-03-25 10:30:24 +10:00
Jeff Williams
eb9d95fa60 add 'parseBegin' and 'parseComplete' events (#299) 2013-03-23 18:37:04 -07:00
Jeff Williams
d433b191e3 Merge branch 'tests-tag' of github.com:mathematicalcoffee/jsdoc into mathematicalcoffee-tests-tag
Conflicts:
	test/specs/jsdoc/tag/type.js
	test/specs/jsdoc/tag/type/closureCompilerType.js
2013-03-23 18:05:09 -07:00
Jeff Williams
d01442172f Merge pull request #359 from freejosh/master
Allow other whitespace between @link tags and content
2013-03-23 17:57:08 -07:00
Jeff Williams
450ea226fa allow jsdocCommentFound handlers to change the comment (#228) 2013-03-23 10:42:34 -07:00
Jeff Williams
016ee85362 might as well turn the URL into a link (#371) 2013-03-23 09:39:19 -07:00
Jeff Williams
306046ce0e allow see tag to contain URLs, like <http://example.org> or http://example.org (#371) 2013-03-23 08:17:13 -07:00
Jeff Williams
badff421bc for complex type expressions, use the expression as the link text
fixes test failure.
2013-03-21 12:50:03 -07:00
Jeff Williams
2ccd9c4f39 more improvements to error handling for type expressions 2013-03-21 09:25:52 -07:00
Jeff Williams
f4e814ba87 improve error reporting for type expressions that cannot be parsed 2013-03-21 08:35:58 -07:00
Jeff Williams
a0abba623b correct docs 2013-03-20 08:17:27 -07:00
Jeff Williams
05656a01df fix parsing issue with nested braces 2013-03-20 08:10:25 -07:00
Jeff Williams
edcd94eeba link to type applications correctly in template output (#152) 2013-03-19 22:43:27 -07:00
Jeff Williams
70bea4648e allow inline {@type} tag in description to override type expression (#152)
- create `jsdoc/tag/inline` module, a generalized parser for inline tags
- use the new module to look for an inline `{@type}` tag in tag text;
for tags that can have a type, the inline tag overrides the type
expression
- update submodule
2013-03-18 08:30:05 -07:00
mathematicalcoffee
36763a9fbb added function addEventListeners with tests to templateHelper 2013-03-18 14:32:35 +10:00
Jeff Williams
482c5aee83 partial support for Closure Compiler types (#152)
introduces a real parser for Closure Compiler types, and uses the
parser to interpret type expressions in JSDoc tags.

TODO:
- provide a way to override the type expression
- update templateHelper to generate the correct links in type
applications

future enhancement (to be filed as a new issue): create pseudo-tags for
members that are described in the type expression (e.g., if the type
expression for the parameter `foo` is `{bar: string}`, add a tag for
`foo.bar` with no description)
2013-03-15 08:51:59 -07:00
Jeff Williams
892de28312 hasOwnProperty hygiene 2013-03-15 08:29:42 -07:00
Josh Freeman
6b7125b33e Allow other whitespace between @link and content 2013-03-11 11:03:12 -03:00
mathematicalcoffee
19417afba3 first attempt at finding listeners for an event, need to test. 2013-02-26 17:04:00 +10:00
mathematicalcoffee
db3451be72 Merge branch 'master' into feature-listens 2013-02-26 14:19:14 +10:00
mathematicalcoffee
933615da86 Merge branch 'master' into tests-tag
Conflicts:
	test/specs/tags/paramtag.js
2013-02-26 13:54:35 +10:00
mathematicalcoffee
2a8166cf3b Revert "FEATURE/FIX: jsdoc/util/templateHelper.getAncestorLinks: direct parents punctuation should be part of the link text. <a href="">Parent~</a> vs <a href="">Parent</a>~"
This reverts commit dad08be08a3cc92df3a73f58959c8847b7733a6c.
2013-02-22 12:46:21 +10:00
mathematicalcoffee
32fe768ea7 minor cleanup, mainly console.log = function () {} --> spyOn(console, 'log') 2013-02-22 12:45:04 +10:00