2895 Commits

Author SHA1 Message Date
Jeff Williams
254dda50b1 show more info for Closure Compiler type expressions (#618) 2014-04-18 16:46:34 -07:00
Jeff Williams
cd9d7f90a7 change 'virtual' to 'abstract' in the template helper (#618) 2014-04-18 16:46:24 -07:00
shakefu
b10de12c2d Fix markup so tests pass. 2014-04-15 16:42:44 -07:00
shakefu
810ab1d58f Allow prettify to work on inline markdown code samples. 2014-04-15 16:31:44 -07:00
Jeff Williams
3d1c36a325 keep all type info for return and type tags (#618)
For consistency with method parameters, this change extends our unfortunate practice of adding type properties to the parent of the `type` object, rather than the object itself.
2014-04-15 09:26:19 -07:00
Jeff Williams
02f14958b1 cleanup 2014-04-15 09:06:16 -07:00
Jeff Williams
bb42bed7c8 DRY out; remove unnecessary TODOs 2014-04-14 17:34:00 -07:00
Jeff Williams
48fa2fd320 Merge pull request #634 from rassilon/issue-631
Fix issue #631: Virtual comments inside modules
2014-04-14 08:05:27 -07:00
Jeff Williams
9f7acb3018 Merge pull request #633 from joerixaop/master
Faster dumping with and without Harmony
2014-04-14 08:03:38 -07:00
Jeff Williams
c0215d129f update copyright notice 2014-04-14 07:47:06 -07:00
Bill Tutt
821156c01c Fix issue #631: virtual comments inside of modules aren't members of modules. 2014-04-13 20:28:20 -04:00
Joeri Samson
9ee72ec588 Faster dumping with and without Harmony
Replace an O(n^2) algorithm (indexOf + insert) * n with a much faster
algorithm, depending on what is supported by the JS engine.

I prefer the Set version as it is similar in spirit to the original
code and does not need to change the walked tree, but the flag setting
approach has the advantage that it works with current Node versions
without needing commandline flags.
2014-04-13 21:47:02 +02:00
Jeff Williams
bac1ea00fa Merge pull request #602 from popham/add-missing-mixins
Add "Mixins" to module view
2014-04-13 09:06:32 -07:00
Jeff Williams
f64b2f1797 bump revision 2014-04-13 08:37:12 -07:00
Jeff Williams
597a09dd76 on Windows, don't discard the symlink error (#519) 2014-04-13 08:36:51 -07:00
Jeff Williams
6480b96e7e log a warning if the type tag has a description (#615)
adds a `mustNotHaveDescription` property for tag definitions
2014-04-13 08:12:09 -07:00
Jeff Williams
3b45503625 log a warning if a tag has an extraneous value (#632) 2014-04-13 07:26:11 -07:00
Jeff Williams
7dfefd7910 simplify logic 2014-04-12 20:13:57 -07:00
Jeff Williams
97dc742654 update tv4 files 2014-04-12 20:13:46 -07:00
jeffwi
abe3fe2429 show the help if there are no input files (#609) 2014-04-10 09:17:35 -07:00
Jeff Williams
b7782fc151 Merge pull request #617 from cdparks/fix-excludes
Fix for #616, making excluded-filepaths play nicely with -r
2014-04-09 16:52:32 -07:00
jeffwi
933db9f032 handle Esprima parse errors more gracefully (#625) 2014-04-09 16:50:47 -07:00
Christopher D. Parks
40d5a352bb Adding test for fix
Without the fix, we get the following when running ./jsdoc -T:
    Failures:

    jsdoc/src/filter Filter isIncluded

      1) should be able to exclude descendants of excluded subdirectories
      Message:
        Expected 4 to be 2.
      Stacktrace:
        undefined

      2) should be able to exclude descendants of excluded subdirectories
      Message:
        Expected 1 to be -1.
      Stacktrace:
        undefined

      3) should be able to exclude descendants of excluded subdirectories
      Message:
        Expected 3 to be -1.
      Stacktrace:
        undefined

    Finished in 6.696 seconds
    849 tests, 2050 assertions, 3 failures

This test passes with the fix.
2014-04-07 10:44:21 -07:00
Jeff Williams
cd639a5c18 bump revision 2014-04-07 08:48:53 -07:00
Jeff Williams
62406412b6 walk children of ES6 nodes (#555)
For now, the node visitor discards these and logs a warning.
2014-04-07 08:47:51 -07:00
Jeff Williams
f454e8ad35 log warnings by default 2014-04-07 08:44:02 -07:00
Jeff Williams
8a2ca0f37a update Esprima
includes fixes for:
- https://code.google.com/p/esprima/issues/detail?id=526
- https://code.google.com/p/esprima/issues/detail?id=527
2014-04-07 08:43:36 -07:00
Jeff Williams
a61cf5cc8a WIP for walking ES6 nodes (accidental commit) 2014-04-07 08:43:15 -07:00
Jeff Williams
c15f905ee4 remove an obsolete Esprima config setting 2014-04-06 09:02:52 -07:00
Jeff Williams
e72f1663b1 use Esprima's harmony branch (#555) 2014-04-06 08:57:27 -07:00
Jeff Williams
92602c82a1 fix type-expression parsing issue (#619)
In record types, we can now parse property names that start
with a keyword (for example, `undefinedHTML`).
2014-04-05 13:36:27 -07:00
Jeff Williams
a476aef10b correct title for "Attributes" column (#618) 2014-04-04 08:58:47 -07:00
Christopher D. Parks
c5a24af559 We should compare filepath with excluded path using "starts-with" because the filepath may be a child of the excluded path
This makes the excludes array work when using -r
2014-04-03 11:43:24 -07:00
Jeff Williams
003099a0a8 bump revision 2014-03-31 09:17:43 -07:00
Jeff Williams
50cd99fa2f handle lends tag without adding a dummy name (#611) 2014-03-31 09:09:04 -07:00
Jeff Williams
c5e5b04f94 bump revision 2014-03-30 22:08:14 -07:00
Jeff Williams
3e4e48accd attach inline type annotations to function params (#611)
includes a new Rhino jar: jsdoc3/rhino@bb2446ad
2014-03-30 22:01:04 -07:00
Jeff Williams
8df4472a2d set the correct longname when the doclet's name starts with the namespace's name (#608)
plus some cleanup
2014-03-27 15:12:24 -07:00
Jeff Williams
65b2fd6499 fix typo; cleanup 2014-03-27 14:42:54 -07:00
Jeff Williams
a2512832a7 remove obsolete text fixtures 2014-03-27 14:39:17 -07:00
Jeff Williams
3242a5de52 fancy new Travis CI badge 2014-03-27 08:26:04 -07:00
Jeff Williams
40733507a1 bump revision 2014-03-26 21:19:22 -07:00
Jeff Williams
778ea31bd6 DRY out 2014-03-26 21:19:08 -07:00
Jeff Williams
463065d996 clean up tests 2014-03-18 22:02:58 -07:00
Jeff Williams
8128dc5335 handle default values that are array literals (#604)
plus some test cleanup
2014-03-18 10:16:41 -07:00
Jeff Williams
cd6c89ec10 re-enable default values that are object literals (#607) 2014-03-18 10:00:16 -07:00
Jeff Williams
3ec52a3a35 bump revision 2014-03-16 20:01:40 -07:00
Jeff Williams
3b5db81d92 fix closures with multiple lends tags (#569)
There were three separate problems here:

1. The visitor called `trackVars` at the wrong time for `AssignmentExpression` and `VariableDeclarator` nodes, which prevented JSDoc from setting the `funcscope` property correctly.
2. The `funcscope` property was being added to `VariableDeclarator` nodes. It should only be added to `AssignmentExpression` nodes.
3. We were trying to resolve the variable name `____` in `AssignmentExpression` nodes. This is a special value we add to the source code so that the `lends` tag will work, and it should never be resolved against the enclosing scope.

The previous, buggy behavior looked reasonable in most cases, but it didn't work for closures that contain multiple `lends` tags.
2014-03-16 19:58:34 -07:00
Jeff Williams
c6fd086f4b comment 2014-03-16 19:38:03 -07:00
Tim Popham
c1617b8e1f Add "Mixins" to module view 2014-03-14 12:50:49 -07:00