Lines Matching refs:String_

11 use PhpParser\Node\Scalar\String_;  alias
68 'stmts' => [new Stmt\Return_(new String_("a\nb"))]
84 new Node\ArrayItem(new String_('val'), new String_('key'))
100 $nowdoc = ['kind' => String_::KIND_NOWDOC, 'docLabel' => 'STR'];
101 $heredoc = ['kind' => String_::KIND_HEREDOC, 'docLabel' => 'STR'];
104 [new String_('foo'), "'foo'"],
106 [new String_('foo', ['kind' => String_::KIND_SINGLE_QUOTED]), "'foo'"],
107 [new String_('foo', ['kind' => String_::KIND_DOUBLE_QUOTED]), '"foo"'],
109 [new String_('foo', ['kind' => String_::KIND_NOWDOC]), "'foo'"],
110 [new String_('foo', ['kind' => String_::KIND_HEREDOC]), '"foo"'],
112 … [new String_("A\nB\nC", ['kind' => String_::KIND_NOWDOC, 'docLabel' => 'A']), "'A\nB\nC'"],
113 … [new String_("A\nB\nC", ['kind' => String_::KIND_NOWDOC, 'docLabel' => 'B']), "'A\nB\nC'"],
114 … [new String_("A\nB\nC", ['kind' => String_::KIND_NOWDOC, 'docLabel' => 'C']), "'A\nB\nC'"],
115 [new String_("STR;", $nowdoc), "'STR;'"],
116 [new String_("STR,", $nowdoc), "'STR,'"],
117 [new String_(" STR", $nowdoc), "' STR'"],
118 [new String_("\tSTR", $nowdoc), "'\tSTR'"],
119 [new String_("STR\x80", $heredoc), '"STR\x80"'],
121 [new String_("foo", $nowdoc), "<<<'STR'\nfoo\nSTR"],
122 [new String_("foo", $heredoc), "<<<STR\nfoo\nSTR"],
123 [new String_("STRx", $nowdoc), "<<<'STR'\nSTRx\nSTR"],
124 [new String_("xSTR", $nowdoc), "<<<'STR'\nxSTR\nSTR"],
125 [new String_("STRä", $nowdoc), "<<<'STR'\nSTRä\nSTR"],
126 [new String_("STR\x80", $nowdoc), "<<<'STR'\nSTR\x80\nSTR"],
128 [new String_("", $nowdoc), "<<<'STR'\nSTR"],
129 [new String_("", $heredoc), "<<<STR\nSTR"],
132 [new String_("\r", $heredoc), "<<<STR\n\\r\nSTR"],
133 [new String_("\r", $nowdoc), "'\r'"],
134 [new String_("\rx", $nowdoc), "<<<'STR'\n\rx\nSTR"],
263 new Stmt\Echo_([new String_('Hello')]),
264 new Stmt\Echo_([new String_('World')]),
278 new Stmt\Expression(new String_('Test', [
279 'kind' => String_::KIND_NOWDOC,
282 new Stmt\Expression(new String_('Test 2', [
283 'kind' => String_::KIND_HEREDOC,
287 'kind' => String_::KIND_HEREDOC,