Lines Matching +defs:text +defs:line
26 protected $line = 0;
60 * text is explicitly set in the constructor or via {@see CommonToken::setText()}.
66 protected $text;
116 $this->line = $tokenSource->getLine();
136 * token will share a reference to the {@see CommonToken::text()} field and
138 * {@see CommonToken::text()} will be assigned the result of calling
148 $token->line = $this->line;
151 $token->setText($this->text);
168 return $this->line;
171 public function setLine(int $line) : void
173 $this->line = $line;
178 if ($this->text !== null) {
179 return $this->text;
198 * Explicitly set the text for this token. If `text` is not `null`, then
200 * extracting the text from the input.
202 * @param string $text The explicit text of the token, or `null`
203 * if the text should be obtained from the input
206 public function setText(?string $text) : void
208 $this->text = $text;
298 $this->line,