1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:17:44 +00:00

LibWeb: Expose token counts from CSS TokenStream

This commit is contained in:
Sam Atkins 2022-09-27 16:43:33 +01:00 committed by Andreas Kling
parent 8ce38fddd9
commit ae64cffd3a

View file

@ -107,6 +107,9 @@ public:
next_token();
}
size_t token_count() const { return m_tokens.size(); }
size_t remaining_token_count() const { return token_count() - m_iterator_offset - 1; }
void dump_all_tokens()
{
dbgln("Dumping all tokens:");