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) {
|
if (next.toktype == IDENTIFIER) {
|
||||||
parseTree << Class(next.toktext); ++i;
|
parseTree << Class(next.toktext); ++i;
|
||||||
} else {
|
} else {
|
||||||
const bool isNotBlank = not next.toktext.empty();
|
parsingError(next, hasNext ? " is not a valid class identifier" : "A class identifier is required", hasNext);
|
||||||
parsingError(next, isNotBlank ? " is not a valid class identifier" : "A class identifier is required", isNotBlank);
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
bool isFinalDefine = nextAre({TAG, DEFINE});
|
bool isFinalDefine = nextAre({TAG, DEFINE});
|
||||||
|
|
Loading…
Reference in New Issue