Lines Matching refs:text
6 protected string $text; variable in PhpParser\\Comment
17 * @param string $text Comment text (including comment delimiters like /*)
23 string $text, argument
27 $this->text = $text;
42 return $this->text;
107 return $this->text;
121 $text = str_replace("\r\n", "\n", $this->text);
122 $newlinePos = strpos($text, "\n");
125 return $text;
127 if (preg_match('(^.*(?:\n\s+\*.*)+$)', $text)) {
136 return preg_replace('(^\s+\*)m', ' *', $text);
138 if (preg_match('(^/\*\*?\s*\n)', $text) && preg_match('(\n(\s*)\*/$)', $text, $matches)) {
149 return preg_replace('(^' . preg_quote($matches[1]) . ')m', '', $text);
151 if (preg_match('(^/\*\*?\s*(?!\s))', $text, $matches)) {
161 $prefixLen = $this->getShortestWhitespacePrefixLen(substr($text, $newlinePos + 1));
163 return preg_replace('(^\s{' . $removeLen . '})m', '', $text);
167 return $text;
199 'text' => $this->text,