JSDOC/TokenReader.vala
authorAlan Knowles <alan@roojs.com>
Fri, 2 Oct 2015 08:52:17 +0000 (16:52 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 2 Oct 2015 08:52:17 +0000 (16:52 +0800)
JSDOC/TokenReader.vala

index e575ac5..5155895 100644 (file)
@@ -385,7 +385,7 @@ namespace JSDOC {
          {
             var found = "";
             if (
-                (stream.look() == "/" && stream.look(1) == "/" && (found=stream.next(2)))
+                (stream.look() == '/' && stream.look(1) == '/' && (found=stream.next(2)))
                 || 
                 (stream.look() == "<" && stream.look(1) == "!" && stream.look(2) == "-" && stream.look(3) == "-" && (found=stream.next(4)))
             ) {
@@ -408,7 +408,7 @@ namespace JSDOC {
         /**
             @returns {Boolean} Was the token found?
          */
-        public bool read_dbquote  (TokenStream stream, TokenArray tokens)
+        public bool read_dbquote  (TextStream stream, TokenArray tokens)
         {
             if (stream.look() != "\"") {
                 return false;
@@ -444,7 +444,7 @@ namespace JSDOC {
         /**
             @returns {Boolean} Was the token found?
          */
-        public bool read_snquote  (TokenStream stream, TokenArray tokens)
+        public bool read_snquote  (TextStream stream, TokenArray tokens)
         {
             if (stream.look() != "'") {
                 return false;
@@ -472,7 +472,7 @@ namespace JSDOC {
         /**
             @returns {Boolean} Was the token found?
          */
-        public bool read_numb  (TokenStream stream, TokenArray tokens)
+        public bool read_numb  (TextStream stream, TokenArray tokens)
         {
             if (stream.look() == "0" && stream.look(1) == "x") {
                 return this.read_hex(stream, tokens);
@@ -518,7 +518,7 @@ namespace JSDOC {
         /**
             @returns {Boolean} Was the token found?
          */
-        public bool read_regx (TokenStream stream, TokenArray tokens)
+        public bool read_regx (TextStream stream, TokenArray tokens)
         {
             Token last;
             if (stream.look() != "/") {