Lines Matching refs:text
22 public string $text; variable in PhpParser\\Internal\\TokenPolyfill
42 final public function __construct(int $id, string $text, int $line = -1, int $pos = -1) { argument
44 $this->text = $text;
74 return $this->text === $kind;
83 if ($this->text === $entry) {
110 return $this->text;
146 $text = $token[1];
149 if ($id === \T_COMMENT && \substr($text, 0, 2) !== '/*' &&
150 \preg_match('/(\r\n|\n|\r)$/D', $text, $matches)
153 $text = \substr($text, 0, -\strlen($trailingNewline));
154 $tokens[] = new static($id, $text, $line, $pos);
155 $pos += \strlen($text);
173 $newText = $text;
209 $tokens[] = new static($id, $text, $line, $pos);
210 $line += \substr_count($text, "\n");
211 $pos += \strlen($text);