168 Commits

Author SHA1 Message Date
Jeff Williams
99abd07308 refactoring
- move a few functions to the prototype
- call bind() on the function that's used as a NodeVisitor
- for clarity, replace `currentParser` with `this` (made possible by
the previous changes)
- for consistency, move currentSourceName to the prototype
2012-11-01 13:58:50 -07:00
Jeff Williams
09ffe2ec78 DRY out visitNode() 2012-11-01 13:31:12 -07:00
Jeff Williams
35ac56fdd0 replace events and MD5 modules with equivalent Node.js shims
one notable change as a result: you now call emitter.emit() instead of
emitter.fire().
2012-10-30 22:49:04 -07:00
Jeff Williams
ddbe0315d4 if a member name is the same as its namespace's name, set the member's longname correctly (#214) 2012-10-29 20:10:35 -07:00
Jeff Williams
44b2c364a0 whitespace 2012-10-29 20:01:09 -07:00
Jeff Williams
c0d9b37cf5 set type name correctly for Closure Compiler types (#226) 2012-10-28 20:07:04 -07:00
Jeff Williams
589eb300c8 add plugin to dump parser events to the console (#242) 2012-10-28 17:17:13 -07:00
Jeff Williams
993d0fe49c create a fake async file I/O method (fs.readFile); use it in a test as a proof of concept 2012-10-23 22:06:33 -07:00
Jeff Williams
0e63f27113 remove unnecessary comment that caused the JSHint test to fail 2012-10-20 15:10:46 -07:00
Matthew Kastor
5ea5f62fc0 template.js - cache, settings now instance fields
`cache` and `settings` are no longer private fields.
This was done so
that plugins could use this class without messing up
the final output
when template name collisions occur. i.e. each instance
has it's own
template cache. The `settings` were made specific to each
instance so
that users of this class could redefine the underscore
template
settings if they want to.
2012-10-20 17:56:35 -04:00
Jeff Williams
d0c702a313 provide EOL constant (#219) 2012-10-20 11:09:56 -07:00
Jeff Williams
cab6e29ebd Merge branch 'markdown-refactor'
Conflicts:
	plugins/markdown.js
	rhino_modules/jsdoc/readme.js
	rhino_modules/jsdoc/tutorial.js
2012-10-19 21:34:44 -07:00
Matthew Kastor
818e26c5bc Add escape tag for templates
The new underscore template includes a tag sequence for escaping. I
added an override for that tag that is consistent with our overrides for
evaluation and interpolation.
2012-10-19 20:20:17 -04:00
Matthew Kastor
e36cb0f96b Markdown Input EOL Filtering
Added filters for input end of line character where evilstreak/markdown
was called because it chokes on `\r\n`. We'll have to do this to any
input to this markdown parser unless/until they accept my pull request
and we update the upstream source.

https://github.com/evilstreak/markdown-js/pull/64
2012-10-19 17:11:45 -04:00
Jeff Williams
97d289c65f refactor markdown-related code (#220) 2012-10-19 03:45:43 -07:00
Jeff Williams
487ce7a8b9 move common files from nodejs_modules to rhino_modules; remove unused files; de-lint 2012-10-17 08:20:53 -07:00
Jeff Williams
508e4776cb replace MD5 hash code 2012-10-16 07:54:19 -07:00
Jeff Williams
3b937e557f use underscore.js for templates instead of a customized subset 2012-10-16 05:34:50 -07:00
Jeff Williams
a095001157 add path.relative() function 2012-10-15 05:59:41 -07:00
Jeff Williams
157d5c89ad update TaffyDB; move to node_modules 2012-10-15 05:22:13 -07:00
Jeff Williams
929e60dd99 update evilstreak markdown plugin; move to node_modules 2012-10-14 09:13:53 -07:00
Jeff Williams
c1c15e8156 Merge branch 'master' into timers 2012-10-07 07:41:14 -07:00
Jeff Williams
e17601feb1 remove Envjs from test harness; remove broken --coffee option; add --nocolor option 2012-10-07 07:39:47 -07:00
Jeff Williams
10a54620fc use consistent path separators on windows (#207) 2012-10-04 09:20:44 -07:00
Michael Mathews
570a585f4e Fix bug that caused failing tests when no conf.json file is present. Closes #206 2012-10-01 17:42:48 +01:00
Jeff Williams
46959b53a1 use Java's File/URI classes to convert between paths and URIs (#203) 2012-09-29 21:07:58 -07:00
Jeff Williams
d2ffcb9563 don't blow up on windows when we require() publish.js (#200) 2012-09-27 08:32:40 -07:00
Jeff Williams
ec47356ee6 make templates work from relative and absolute paths (#196, #197, #198) 2012-09-23 21:06:36 -07:00
Jeff Williams
48cd77e77c remove unused variable 2012-09-20 16:00:55 -07:00
Michael Mathews
20f8709463 Fix for property tag being malformed. 2012-09-20 01:21:13 +01:00
Jeff Williams
3463a472a6 add FunctionNode reference to parser 2012-09-18 22:31:39 -07:00
Jeff Williams
4e0af2967a refactor default template and templateHelper.js (#186) 2012-09-17 21:50:26 -07:00
Jeff Williams
f1a104eb06 add helper function for debugging parse events 2012-09-16 11:37:56 -07:00
Bob Kerns
dc2ec62e70 Use the java facilities to handle path manipulations portably.
This was causing it to mis-calculate the paths, and end up losing the
output directory entirely, and overwrite the template static files
with themselves, resulting in truncation to zero-length. Of course,
they were also missing in the output.

It was expecting to be able to split paths on
System.getProperty("path.separator"), but that describes how to put a
path together, not how to take one apart, which is more complicated.

In particular, in windows, / is as valid a separator as \ in all but a
few UI contexts.

And since we need to pass / in paths that may get turned into URI's,
it's important to handle this correctly.

Java already provides a File facility to handle these sorts of operations.
This patch makes use of java.io.File to:

1) Find the parent of a File for dirname.
2) Find the name of a File for basename.

It also now makes use of substring for removing the ext for basename,
rather than Array.prototype.slice + join(""). I'm not sure what that
was all about...  It does have the effect of ensuring it's a Javascript
String, but calling String() has the same benefit and is much more clear.

You can put that back if there was a reason for it, but it looks just
confused to me.
2012-09-11 22:57:50 -07:00
Jeff Williams
735bbd9182 make the tests pass again. note to self: run tests, THEN commit… 2012-09-09 21:15:58 -07:00
Jeff Williams
c8ce159342 use 'defaultvalue' property, not 'default', to hold the default value (closes #180) 2012-09-09 21:12:35 -07:00
Jeff Williams
e9a9dc988e if a child overrides an ancestor member, don't document the ancestor member (closes #158) 2012-09-09 20:06:49 -07:00
Jeff Williams
d6fedc82aa put the optional/nullable/variable/default properties in the right place 2012-09-09 07:58:27 -07:00
Jeff Williams
8622efd2ba Merge remote-tracking branch 'upstream/master' into type-refactor 2012-09-09 07:41:41 -07:00
Allan Jardine
358dceac2c Fix jsdoc issue #172: Remove second call to unwrap. 2012-09-03 10:23:55 +01:00
Jeff Williams
75071e9875 allow @augments to point at an undocumented dependency 2012-08-19 19:14:54 -07:00
Jeff Williams
d091675cfa make 'fs' and 'path' modules more consistent with Node.js 2012-08-19 15:25:02 -07:00
Jeff Williams
c643a6a1b9 Merge branch 'master' into type-refactor 2012-08-18 09:03:55 -07:00
Jeff Williams
33a41878b0 support lends tags in multiline doclets (fixed by @kpozin) 2012-08-18 07:58:01 -07:00
Jeff Williams
d04ed34612 in lenient mode, suppress as many exceptions as possible, logging errors to the console. closes #159. 2012-08-18 07:34:37 -07:00
Jeff Williams
39cb076e1a Merge remote-tracking branch 'upstream/master' into type-refactor 2012-08-17 14:21:01 -07:00
Jeff Williams
45b24cc04c refactor type parsing; add tests 2012-07-15 15:40:40 -07:00
Konstantin Pozin
cf1e65e162 Added doclet parsing for object literal getters and setters (#150) 2012-07-11 09:30:18 -04:00
Konstantin Pozin
73ed12733d Added doclet parsing for object literal getters and setters (#100) 2012-07-11 09:26:50 -04:00
Konstantin Pozin
9196f730de Added doclet parsing for object literal getters and setters (#100) 2012-07-11 09:20:04 -04:00