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:
d3e61c6
)
JSDOC/TokenStream.vala
author
Alan Knowles
<alan@roojs.com>
Wed, 30 Sep 2015 10:01:58 +0000
(18:01 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 30 Sep 2015 10:01:58 +0000
(18:01 +0800)
JSDOC/TokenStream.vala
patch
|
blob
|
history
diff --git
a/JSDOC/TokenStream.vala
b/JSDOC/TokenStream.vala
index
096e954
..
df4b946
100644
(file)
--- a/
JSDOC/TokenStream.vala
+++ b/
JSDOC/TokenStream.vala
@@
-161,7
+161,7
@@
namespace JSDOC {
public Gee.ArrayList<Token> nextM(uint howMany) {
//if (typeof howMany == "undefined") howMany = 1;
- if (howMany <
1
) {
+ if (howMany <
2
) {
throw new JSDOC.TokenStreamError("nextM called with wrong number : %d",howMany);
}
var got = new Gee.ArrayList<Token>();
@@
-173,11
+173,8
@@
namespace JSDOC {
got.add(this.tokens.get(this.cursor+i));
}
this.cursor += howMany;
-
- if (howMany == 1) {
- return got
- }
- else return got;
+
+ return got;
}