Lines Matching refs:contents
804 * @param string|(Expr|InterpolatedStringPart)[] $contents
809 string $startToken, $contents, string $endToken, argument
843 if (\is_string($contents)) {
844 if ($contents === '') {
845 $attributes['rawValue'] = $contents;
849 $contents = $this->stripIndentation(
850 $contents, $indentLen, $indentChar, true, true, $attributes
852 $contents = preg_replace('~(\r\n|\n|\r)\z~', '', $contents);
853 $attributes['rawValue'] = $contents;
856 $contents = String_::parseEscapeSequences($contents, null, $parseUnicodeEscape);
859 return new String_($contents, $attributes);
861 assert(count($contents) > 0);
862 if (!$contents[0] instanceof Node\InterpolatedStringPart) {
865 '', $indentLen, $indentChar, true, false, $contents[0]->getAttributes()
870 foreach ($contents as $i => $part) {
872 $isLast = $i === \count($contents) - 1;