We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d899ece commit ae04eddCopy full SHA for ae04edd
src/Neon/Lexer.php
@@ -72,7 +72,7 @@ public function tokenize(string $input): TokenStream
72
}
73
74
75
- $token = new Token($token[0], $offset, $type);
+ $token = new Token($token[0], $type);
76
$offset += strlen($token->value);
77
78
src/Neon/Token.php
@@ -23,17 +23,13 @@ final class Token
23
/** @var string */
24
public $value;
25
26
- /** @var int */
27
- public $offset;
28
-
29
/** @var int|string */
30
public $type;
31
32
33
- public function __construct(string $value, int $offset, $type)
+ public function __construct(string $value, $type)
34
{
35
$this->value = $value;
36
- $this->offset = $offset;
37
$this->type = $type;
38
39
0 commit comments