- Aug 17, 2012
-
-
Rene Saarsoo authored
Discard JsDuck::Class methods: - members - constructor_first - members_hash - local_members_hash - get_members - all_members - reset_members_lookup! The new #find_members replaces most of them. Moved sorting and ordering of constructor into FullExporter, so the #constructor_first method still exists, but is elsewhere. Also added tests for exporter, but the export format still remains the same. The code for warning about statics in singleton moved to Lint. Related to this there's one change in behavior - static members in singleton are no more cursed into instance members. That's because a singleton actually can contain static members, though it's silly and JSDuck warns about that, but you can even access those static members in a clumsy way: MySingleton.statics().staticMethod(); This is where statics: {} end up when you define them in Ext 4 way inside a singleton class. And I've seen some classes in Ext/Touch codebase even doing so... it's nevertheless silly. As for the bogus @static tag use in singleton classes for members that aren't really static - these just need to be fixed.
-
- Aug 16, 2012
-
-
Rene Saarsoo authored
Like with old #get_members the :static option can be true, false or nil. With :static=>false only non-static members are returned.
-
Rene Saarsoo authored
To go along with #find_members.
-
Rene Saarsoo authored
-
Rene Saarsoo authored
Instead of storing members in two hashes - :members & :statics - the members are now stored in simple :members array. Lots of refactoring, but in the end the unit tests are all passing and running JSDuck against ExtJS SDK works fine. More work is needed though as now JSDuck::Class contains several methods and algorithms that are inappropriate in the context of new data structure. Here I'm only changing the internals - export format is still the same and so is the data structure given to generated Docs app.
-
Rene Saarsoo authored
-
- Aug 15, 2012
-
-
Rene Saarsoo authored
-
Rene Saarsoo authored
This was an experiment, but turned out to be not very useful. Better to leave the statistics generation to external tools.
-
Rene Saarsoo authored
-
- Aug 09, 2012
-
-
Rene Saarsoo authored
-
Rene Saarsoo authored
-
Rene Saarsoo authored
-
Rene Saarsoo authored
-
Rene Saarsoo authored
-
Rene Saarsoo authored
-
Rene Saarsoo authored
-
Rene Saarsoo authored
-
Rene Saarsoo authored
- Aug 08, 2012
-
-
Rene Saarsoo authored
Use 4 sections instead of previous 3: - Main options - Customizing output - Tweaking - Debugging
-
Rene Saarsoo authored
The last empty line is now added by JsDuck::OptionParser, so no need to add it in every option description and inside Logger#doc_warnings. Additionally changed the default title to: "Documentation - JSDuck"
-
Rene Saarsoo authored
--help without arguments will now print a short list of all options. --help=--option-name prints a detailed description of the given option. Implemented with JsDuck::OptionParser class that extends builtin OptionParser with the ability to print out help in two formats: short list of all options & long description of specific option.
-
Rene Saarsoo authored
Treat this case as we do with other such comments in JavaScipt - by defaulting to property.
-
- Aug 07, 2012
-
-
Rene Saarsoo authored
The old Logger.fatal is now replaced with fatal_backtrace.
-
Rene Saarsoo authored
-
Rene Saarsoo authored
-
Rene Saarsoo authored
-
Rene Saarsoo authored
The actual patch is maintained in: https://github.com/nene/esprima/tree/linenr-in-range
-
Rene Saarsoo authored
Having the esprima source right inside JSDuck source tree is more convenient for other developers as there's no need to additionally clone esprima repository in addition to jsduck itself. Also the esprima.js needs to be modified only rarely.
-
Rene Saarsoo authored
-
Rene Saarsoo authored
This got broken by previous commit that added printing of filename.
-
Rene Saarsoo authored
Except for one case with @since tag where I can't access the context of input filename.
-
Rene Saarsoo authored
Only in UNIX.
-
Rene Saarsoo authored
Because a class can consist of several files, list all the files separated by spaces.
-
Rene Saarsoo authored
Using both Gemfile for bundler and a .gemspec for gem doesn't seem to work quite well together. Besides I'm not really making much use of bunder, so I feel I'm better off without this additional complexity. Though, this means I need to explicitly list the dependencies to be installed for development, but there are only a few, so it really shouldn't be much of an issue.
-
- Aug 06, 2012
-
-
Rene Saarsoo authored
Allows defining a different version as a starting point for generating @new tags.
-
Rene Saarsoo authored
Removed the old yellow "Private" sign from classes - they now have an orange "private" bubble just like members. All other meta tags now also show up in class header.
-
Rene Saarsoo authored
Without this the lookup table will report duplicates that aren't really there.
-
Rene Saarsoo authored
-