mirror of
https://github.com/tenrok/BBob.git
synced 2026-06-08 17:22:26 +03:00
feat(parser): better line and column counting support in tokens
This commit is contained in:
@@ -52,6 +52,12 @@ const convertTagToText = (token) => {
|
||||
};
|
||||
|
||||
class Token {
|
||||
/**
|
||||
* @param {String} type
|
||||
* @param {String} value
|
||||
* @param line
|
||||
* @param row
|
||||
*/
|
||||
constructor(type, value, line, row) {
|
||||
this[TOKEN_TYPE_ID] = String(type);
|
||||
this[TOKEN_VALUE_ID] = String(value);
|
||||
|
||||
Reference in New Issue
Block a user