mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 03:17:34 +00:00
LibWeb: Expose token counts from CSS TokenStream
This commit is contained in:
parent
8ce38fddd9
commit
ae64cffd3a
1 changed files with 3 additions and 0 deletions
|
@ -107,6 +107,9 @@ public:
|
||||||
next_token();
|
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()
|
void dump_all_tokens()
|
||||||
{
|
{
|
||||||
dbgln("Dumping all tokens:");
|
dbgln("Dumping all tokens:");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue