projects
/
gnome.introspection-doc-generator
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a0156a
)
JSDOC/TokenStream.js
author
Alan Knowles
<alan@akbkhome.com>
Wed, 14 Jul 2010 07:29:09 +0000
(15:29 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Wed, 14 Jul 2010 07:29:09 +0000
(15:29 +0800)
JSDOC/TokenStream.js
patch
|
blob
|
history
diff --git
a/JSDOC/TokenStream.js
b/JSDOC/TokenStream.js
index
32ce52f
..
d8f2dff
100644
(file)
--- a/
JSDOC/TokenStream.js
+++ b/
JSDOC/TokenStream.js
@@
-258,11
+258,14
@@
TokenStream = XObject.define(
})
return ret.join('');
},
- dump: function()
+ dump: function(
start, end
)
{
- this.tokens.forEach(function(t) {
- print(t.toString());
- });
+ start = Math.max(start || 0, 0);
+ end = Math.min(end || this.tokens.length, this.tokens.length);
+ for (var i =start;i < end; i++) {
+ out += this.tokens[i]..toString();
+ };
+ print(out);
}
});
\ No newline at end of file