JSDOC/TokenStream.vala
authorAlan Knowles <alan@roojs.com>
Wed, 30 Sep 2015 09:48:00 +0000 (17:48 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 30 Sep 2015 09:48:00 +0000 (17:48 +0800)
JSDOC/TokenStream.vala

index c934402..81838f8 100644 (file)
@@ -35,11 +35,12 @@ namespace JSDOC {
                    /**
                        @type JSDOC.Token
                    */
-                   Token? look (int n =0, bool considerWhitespace=true) 
+                   Token? look (int n, bool considerWhitespace) 
                    {
-                       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");
                            }