var tokens = new TokenArray();
bool eof;
- while (true) {
+ while (!stream.lookEOF()) {
+
- stream.look(0, out eof)
- if (eof) {
- break;
- }
if (this.read_mlcomment(stream, tokens)) continue;
if (this.read_slcomment(stream, tokens)) continue;
if (this.read_dbquote(stream, tokens)) continue;
/**
@returns {Boolean} Was the token found?
*/
- read_word : function(/**JSDOC.TokenStream*/stream, tokens) {
+ public bool read_word (TokenStream stream, TokenArray tokens) {
var found = "";
while (!stream.look().eof && Lang.isWordChar(stream.look())) {
found += stream.next();