Fix errors by removing the isNotBlank boolean and using hasNext instead
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
This commit is contained in:
parent
33e29ccb8e
commit
9d7300ce89
|
@ -42,8 +42,7 @@ namespace Parser {
|
|||
if (next.toktype == IDENTIFIER) {
|
||||
parseTree << Class(next.toktext); ++i;
|
||||
} else {
|
||||
const bool isNotBlank = not next.toktext.empty();
|
||||
parsingError(next, isNotBlank ? " is not a valid class identifier" : "A class identifier is required", isNotBlank);
|
||||
parsingError(next, hasNext ? " is not a valid class identifier" : "A class identifier is required", hasNext);
|
||||
}
|
||||
} else {
|
||||
bool isFinalDefine = nextAre({TAG, DEFINE});
|
||||
|
|
Loading…
Reference in New Issue