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:
78bcef8
)
JSDOC/TokenStream.vala
author
Alan Knowles
<alan@roojs.com>
Wed, 30 Sep 2015 09:48:00 +0000
(17:48 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 30 Sep 2015 09:48:00 +0000
(17:48 +0800)
JSDOC/TokenStream.vala
patch
|
blob
|
history
diff --git
a/JSDOC/TokenStream.vala
b/JSDOC/TokenStream.vala
index
c934402
..
81838f8
100644
(file)
--- a/
JSDOC/TokenStream.vala
+++ b/
JSDOC/TokenStream.vala
@@
-35,11
+35,12
@@
namespace JSDOC {
/**
@type JSDOC.Token
*/
- Token? look (int n
=0, bool considerWhitespace=tru
e)
+ Token? look (int n
, bool considerWhitespac
e)
{
- if (typeof n == "undefined") n = 0;
+
if (considerWhitespace == true) {
+
if (this.cursor+n < 0 || this.cursor+n > (this.tokens.length -1)) {
return new Token("", "VOID", "START_OF_STREAM");
}