logic: Refreshing reloads the source code and resets the Token ids to start from 1
This commit is contained in:
@@ -3,6 +3,11 @@
|
||||
#include "data/location/TokenLocation.h"
|
||||
#include "utility/logging/logging.h"
|
||||
|
||||
void Token::resetNextId()
|
||||
{
|
||||
s_nextId = 1;
|
||||
}
|
||||
|
||||
Token::Token()
|
||||
: m_id(s_nextId++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user