621 Commits

Author SHA1 Message Date
Tom MacWright
8886ac6157 Switch from babylon to babel-core. Fixes #201 2015-10-30 12:37:56 -04:00
Tom MacWright
63c0ca633f Fix type applications creating accidental elements in Markdown 2015-10-28 17:12:54 -04:00
Tom MacWright
eb1089e594 Stop inferring parameters if fn is within a call.
Fixes #191

This a specific exception for the case identified in 191: we could,
instead, include only cases of clear proximity, like var foo = function,
or function foo.
2015-10-27 17:52:28 -04:00
Tom MacWright
8ca0e0844f Support ES7 class properties 2015-10-27 11:55:55 -04:00
Tom MacWright
1eee5a8f93 Infer class kind from es6 class 2015-10-27 11:15:12 -04:00
Tom MacWright
d53a9de1f2 Mention --lint in changelog 2015-10-25 20:48:35 -04:00
Tom MacWright
844f4b73bb Use vfile-reporter to format error output 2015-10-25 20:39:28 -04:00
Tom MacWright
85ff395bab Add gitter badge 2015-10-19 09:03:43 -04:00
Tom MacWright
cefe68908b Infer destructured params. Fixes #170
Waiting on an answer in https://github.com/babel/babel/issues/2543
because tests will currently fail.
2015-10-18 18:52:17 -04:00
John Firebaugh
cabef43e37 Access inheritance (fixes #78) 2015-10-15 18:46:43 -07:00
John Firebaugh
bac4c5b434 Remove unnecessary @returns 2015-10-15 18:23:20 -07:00
John Firebaugh
dc94a656cb Remove unnecessary returns 2015-10-15 18:18:54 -07:00
Tom MacWright
b95b5877cd Modernize eslint configuration, customize eslint for tests
Fixes #179
2015-10-15 16:55:54 -04:00
John Firebaugh
f1c82b2d55 Update CHANGELOG 2015-10-15 09:52:49 -07:00
John Firebaugh
ae13664021 Nested hierarchy support 2015-10-13 17:36:37 -07:00
John Firebaugh
9dcf926669 Events are not a special scope 2015-10-13 16:37:19 -07:00
John Firebaugh
12be53c236 @memberof scope defaults to static 2015-10-13 16:30:50 -07:00
John Firebaugh
e67b5d2f55 Use walk where appropriate 2015-10-13 16:15:44 -07:00
John Firebaugh
a5b94acf72 Test nested array param (fixes #98) 2015-10-12 20:33:40 -07:00
John Firebaugh
39efefb2b7 Update to doctrine-0.7.0 2015-10-12 20:28:16 -07:00
John Firebaugh
efd5b4ccb4 Correctly name comments attached to module.exports (fixes #178) 2015-10-12 15:57:56 -07:00
John Firebaugh
4c2cc4d8b2 Infer module names 2015-10-12 15:29:30 -07:00
John Firebaugh
5449757782 More test cases and fixes for exports inference 2015-10-12 14:06:14 -07:00
John Firebaugh
9822f75b47 Fix output documentation 2015-10-12 11:08:25 -07:00
John Firebaugh
9dcfa84d1b Drop @lends tags during membership inference (fixes #161) 2015-10-12 10:10:42 -07:00
John Firebaugh
268fcce66a Infer module membership for [module.]exports (fixes #113) 2015-10-11 14:20:42 -07:00
John Firebaugh
341ab4a075 Use module pattern for infers
Some inferencing will require state.
2015-10-11 14:20:42 -07:00
John Firebaugh
452ffc00ab Remove duplicate concat-stream dependency 2015-10-11 14:20:15 -07:00
John Firebaugh
7327e0093c Make hierarchy tests 100% self-covering; fix bugs 2015-10-11 14:20:14 -07:00
John Firebaugh
ea9a9132bb Eliminate hierarchy test dependencies 2015-10-11 14:20:14 -07:00
Tom MacWright
171b7d707a Improve internal documentation 2015-10-11 16:16:43 -04:00
Tom MacWright
2ea79c0870 Combine highlight and html. Fixes #173 2015-10-11 16:06:21 -04:00
Anand Thakker
cea83efc84 Fix broken build. No one saw that, right? 2015-10-09 09:21:22 -04:00
Anand Thakker
eb6892192b Safely reset yargs 2015-10-09 09:05:14 -04:00
Tom MacWright
b3c990db1f Simpler and stricter eslint 2015-10-06 20:31:50 -04:00
Tom MacWright
d7f06fa5c4 Store commentLineNumber on errors. Fixes #159
cc @jfirebaugh for the review
2015-10-06 16:23:22 -04:00
Tom MacWright
a65801a6d4 Add and test default parameter parsing.
cc @killercup this implements default parameter parsing for both
flow-annotated and unannotated methods
2015-10-06 15:51:46 -04:00
Tom MacWright
0aa42d294f Enable and fix no-unused-vars rule 2015-10-06 15:28:32 -04:00
Tom MacWright
5e7597239d Expand on changelog 2015-10-06 10:56:31 -04:00
Tom MacWright
11826ad98c Add return type inference as well 2015-10-06 10:44:08 -04:00
Tom MacWright
7730af7603 Implement flow type inference
cc @thejameskyle

`lib/flow_doctrine.js` is where we convert Babel-parsed
Flow annotations into doctrine-style objects so they
can be formatted with all of the existing helpers.
2015-10-06 10:31:54 -04:00
Anand Thakker
6545f3e5bf Reset yargs to play nicely with documentation-readme 2015-10-05 22:17:47 -04:00
Anand Thakker
83517abd89 Fix: default to index.js if package.json doesn't specify 2015-10-05 21:43:16 -04:00
Tom MacWright
b173cf14a5 Fix parameter sorting, nest properties in Markdown 2015-10-05 15:02:33 -04:00
Tom MacWright
cbff1d3396 Cover es6 imports as well as exports 2015-10-05 14:26:44 -04:00
Tom MacWright
c38b91b4e3 Reparse transformed source 2015-10-05 14:19:48 -04:00
Tom MacWright
c50cb7e430 Specify babylon options 2015-10-05 09:45:52 -04:00
Tom MacWright
1e9e1dbe35 Update infer example 2015-10-04 22:01:18 -04:00
Tom MacWright
7b156d8769 Babel! 🙌
cc @jfirebaugh for the review

This was easier than expected.
2015-10-04 21:55:54 -04:00
Tom MacWright
472e7ffef9 Merge pull request #157 from documentationjs/infer-params
Infer parameters. Fixes #51
2015-10-04 21:55:33 -04:00