private JSToken ScanKeyword(JSKeyword keyword){ for(;;){ char c = GetChar(this.currentPos); if ('a' <= c && c <= 'z'){ this.currentPos++; continue; }else{ if (IsIdentifierPartChar(c)){ ScanIdentifier(); return JSToken.Identifier; } break; } } return keyword.GetKeyword(this.currentToken, this.currentPos - this.currentToken.startPos); }
private JSToken ScanKeyword(JSKeyword keyword) { char ch; while (true) { ch = this.GetChar(this.currentPos); if (('a' > ch) || (ch > 'z')) { break; } this.currentPos++; } if (this.IsIdentifierPartChar(ch)) { this.ScanIdentifier(); return JSToken.Identifier; } return keyword.GetKeyword(this.currentToken, this.currentPos - this.currentToken.startPos); }