2
0
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:
Nikolay Kostyurin
2018-10-07 22:20:49 +02:00
parent d610630801
commit 1c3bebef22
2 changed files with 30 additions and 5 deletions
+6
View File
@@ -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);