Lines Matching refs:contents
803 * @param string|(Expr|InterpolatedStringPart)[] $contents
808 string $startToken, $contents, string $endToken, argument
842 if (\is_string($contents)) {
843 if ($contents === '') {
844 $attributes['rawValue'] = $contents;
848 $contents = $this->stripIndentation(
849 $contents, $indentLen, $indentChar, true, true, $attributes
851 $contents = preg_replace('~(\r\n|\n|\r)\z~', '', $contents);
852 $attributes['rawValue'] = $contents;
855 $contents = String_::parseEscapeSequences($contents, null, $parseUnicodeEscape);
858 return new String_($contents, $attributes);
860 assert(count($contents) > 0);
861 if (!$contents[0] instanceof Node\InterpolatedStringPart) {
864 '', $indentLen, $indentChar, true, false, $contents[0]->getAttributes()
869 foreach ($contents as $i => $part) {
871 $isLast = $i === \count($contents) - 1;