Commit 5c94286b authored by Mukund Sivaraman's avatar Mukund Sivaraman
Browse files

[2426] Add a comment on why the ungetToken() is necessary

parent 1233aa60
......@@ -247,6 +247,9 @@ Generic::constructFromLexer(MasterLexer& lexer) {
lexer.getNextToken(MasterToken::STRING, true);
if ((token.getType() == MasterToken::END_OF_FILE) ||
(token.getType() == MasterToken::END_OF_LINE)) {
// Unget the last read token as createRdata() expects us
// to leave it at the end-of-line or end-of-file when we
// return.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment