private PreprocessorLexicalUnit scanKeyword(String suffix, PreprocessorLexicalUnit keyword) { bool isKeyword = true; for (int i = 0; i < suffix.length(); i++) { char c = suffix[i]; if (this.Next == -1 || (char)this.Next != c) { isKeyword = false; break; } advance(); } if (this.Next != -1 && ParserHelper.isIdentifierPartChar(this.Next)) { scanIdentifierPart(); return(PreprocessorLexicalUnit.Symbol); } return((isKeyword) ? keyword : PreprocessorLexicalUnit.Symbol); }
private PreprocessorLexicalUnit scanKeyword(String suffix, PreprocessorLexicalUnit keyword) { bool isKeyword = true; for (int i = 0; i < suffix.length(); i++) { char c = suffix[i]; if (this.Next == -1 || (char)this.Next != c) { isKeyword = false; break; } advance(); } if (this.Next != -1 && ParserHelper.isIdentifierPartChar(this.Next)) { scanIdentifierPart(); return PreprocessorLexicalUnit.Symbol; } return (isKeyword) ? keyword : PreprocessorLexicalUnit.Symbol; }