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:
981e36e
)
JSDOC/TokenReader.vala
author
Alan Knowles
<alan@roojs.com>
Tue, 15 Sep 2015 09:11:13 +0000
(17:11 +0800)
committer
Alan Knowles
<alan@roojs.com>
Tue, 15 Sep 2015 09:11:13 +0000
(17:11 +0800)
JSDOC/TokenReader.vala
patch
|
blob
|
history
diff --git
a/JSDOC/TokenReader.vala
b/JSDOC/TokenReader.vala
index
631fe34
..
b4127d7
100644
(file)
--- a/
JSDOC/TokenReader.vala
+++ b/
JSDOC/TokenReader.vala
@@
-244,7
+244,7
@@
namespace JSDOC {
{
string found = "";
var name;
{
string found = "";
var name;
- while (!stream.look
().eof
&& Lang.punc(found + stream.look()).length > 0) {
+ while (!stream.look
EOF()
&& Lang.punc(found + stream.look()).length > 0) {
found += stream.next();
}
found += stream.next();
}
@@
-272,15
+272,16
@@
namespace JSDOC {
tokens.push(new Token(found, "PUNC", Lang.punc(found), this.line));
return true;
tokens.push(new Token(found, "PUNC", Lang.punc(found), this.line));
return true;
- }
,
+ }
/**
@returns {Boolean} Was the token found?
*/
/**
@returns {Boolean} Was the token found?
*/
- read_space : function(/**JSDOC.TokenStream*/stream, tokens) {
+ public bool read_space (TokenStream stream, TokenArray tokens)
+ {
var found = "";
var found = "";
- while (!stream.look
().eof
&& Lang.isSpace(stream.look()) && !Lang.isNewline(stream.look())) {
+ while (!stream.look
EOF()
&& Lang.isSpace(stream.look()) && !Lang.isNewline(stream.look())) {
found += stream.next();
}
found += stream.next();
}
@@
-288,7
+289,9
@@
namespace JSDOC {
return false;
}
//print("WHITE = " + JSON.stringify(found));
return false;
}
//print("WHITE = " + JSON.stringify(found));
- if (this.collapseWhite) found = " ";
+ if (this.collapseWhite) {
+ found = " ";
+ }
if (this.keepWhite) tokens.push(new Token(found, "WHIT", "SPACE", this.line));
return true;
if (this.keepWhite) tokens.push(new Token(found, "WHIT", "SPACE", this.line));
return true;
@@
-297,7
+300,7
@@
namespace JSDOC {
/**
@returns {Boolean} Was the token found?
*/
/**
@returns {Boolean} Was the token found?
*/
- read_newline : function(/**JSDOC.TokenStream*/stream, tokens) {
+ public bool read_newline (TokenStream stream, TokenArray tokens)
var found = "";
var line = this.line;
while (!stream.look().eof && Lang.isNewline(stream.look())) {
var found = "";
var line = this.line;
while (!stream.look().eof && Lang.isNewline(stream.look())) {