JSDOC/TokenReader.vala
authorAlan Knowles <alan@roojs.com>
Thu, 10 Sep 2015 10:24:06 +0000 (18:24 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 10 Sep 2015 10:24:06 +0000 (18:24 +0800)
JSDOC/TokenReader.vala

index ebc19b0..7c45861 100644 (file)
@@ -27,7 +27,7 @@ namespace JSDOC {
             }
             return null;
         }
-        public Token? lastSym = function() {
+        public Token? lastSym () {
             for (var i = this.tokens.length-1; i >= 0; i--) {
                 if (!(this.tokens.get(i).is("WHIT") || this.tokens.get(i).is("COMM")))  {
                     return this.tokens.get(i);
@@ -35,6 +35,9 @@ namespace JSDOC {
             }
             return null;
         }
+        public void push (Token t) {
+            this.tokens.add(t);
+        }
     }