Mark Parser2::empty as const

This commit is contained in:
2025-05-13 17:55:44 -04:00
parent c822d0ffaa
commit 36f8df4201

View File

@@ -599,7 +599,7 @@ private:
void *const data;
Symbol stack[kMaxStackSize];
Symbol *stackPtr = stack;
bool empty() { return stackPtr == stack; }
bool empty() const { return stackPtr == stack; }
void pop() {
assert(!empty());
--stackPtr;