Home
last modified time | relevance | path

Searched refs:String_ (Results 1 – 25 of 37) sorted by relevance

12

/PHP-Parser/test/PhpParser/
H A DPrettyPrinterTest.php11 use PhpParser\Node\Scalar\String_; alias
84 new Node\ArrayItem(new String_('val'), new String_('key'))
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'"],
[all …]
H A DParserTestAbstract.php7 use PhpParser\Node\Scalar\String_; alias
144 ["'foo'", ['kind' => String_::KIND_SINGLE_QUOTED]],
145 ["b'foo'", ['kind' => String_::KIND_SINGLE_QUOTED]],
146 ["B'foo'", ['kind' => String_::KIND_SINGLE_QUOTED]],
147 ['"foo"', ['kind' => String_::KIND_DOUBLE_QUOTED]],
148 ['b"foo"', ['kind' => String_::KIND_DOUBLE_QUOTED]],
149 ['B"foo"', ['kind' => String_::KIND_DOUBLE_QUOTED]],
150 ['"foo$bar"', ['kind' => String_::KIND_DOUBLE_QUOTED]],
151 ['b"foo$bar"', ['kind' => String_::KIND_DOUBLE_QUOTED]],
152 ['B"foo$bar"', ['kind' => String_::KIND_DOUBLE_QUOTED]],
[all …]
H A DNodeTraverserTest.php7 use PhpParser\Node\Scalar\String_; alias
13 $str1Node = new String_('Foo');
14 $str2Node = new String_('Bar');
36 $str1Node = new String_('Foo');
37 $str2Node = new String_('Bar');
79 $str1Node = new String_('Foo');
80 $str2Node = new String_('Bar');
103 $str1Node = new String_('Foo');
104 $str2Node = new String_('Bar');
173 $strNode = new String_('Foo');
[all …]
H A DBuilderFactoryTest.php12 use PhpParser\Node\Scalar\String_; alias
50 new String_('bar'), false, false, [], new Identifier('foo')
61 new String_("foo"),
81 new Concat(new Concat(new String_("a"), $varB), new String_("c")),
104 new Arg(new String_('b')),
115 new Arg(new String_('foo')),
116 new Arg(new String_('baz'), false, false, [], new Identifier('bar')),
129 [new Arg(new String_('str'))]
192 [new Arg(new String_('bar'))]
H A DNodeDumperTest.php42 new Node\ArrayItem(new Node\Scalar\String_('Foo'))
H A DConstExprEvaluatorTest.php126 new Expr\BinaryOp\Plus(new Scalar\Int_(42), new Scalar\String_("1foo")),
/PHP-Parser/test/PhpParser/Node/Stmt/
H A DInterfaceTest.php6 use PhpParser\Node\Scalar\String_; alias
16 new Node\Stmt\ClassConst([new Node\Const_('C1', new Node\Scalar\String_('C1'))]),
18 new Node\Stmt\ClassConst([new Node\Const_('C2', new Node\Scalar\String_('C2'))]),
20 new Node\Stmt\ClassConst([new Node\Const_('C3', new Node\Scalar\String_('C3'))]),
29 new ClassConst([new \PhpParser\Node\Const_('foo', new String_('foo_value'))]),
30 new ClassConst([new \PhpParser\Node\Const_('bar', new String_('bar_value'))]),
H A DClassTest.php7 use PhpParser\Node\Scalar\String_; alias
64 new ClassConst([new \PhpParser\Node\Const_('foo', new String_('foo_value'))]),
65 new ClassConst([new \PhpParser\Node\Const_('bar', new String_('bar_value'))]),
/PHP-Parser/test/code/formatPreservation/
H A DarrayInsertionWithComments.test10 $node = new Expr\ArrayItem(new Scalar\String_('baz'), new Scalar\String_('c'));
38 $node = new Expr\ArrayItem(new Scalar\String_('baz'), new Scalar\String_('c'));
59 $node = new Expr\ArrayItem(new Scalar\String_('baz'), new Scalar\String_('c'));
79 $node = new Expr\ArrayItem(new Scalar\String_('bar'), new Scalar\String_('b'));
96 $node = new Expr\ArrayItem(new Scalar\String_('foo'), new Scalar\String_('a'));
H A Dmatch.test11 $stmts[0]->expr->expr->arms[] = new Node\MatchArm(null, new Scalar\String_('two'));
H A DinsertionOfNullable.test82 $stmts[2]->expr->items[0]->key = new Scalar\String_('X');
95 $stmts[12]->vars[0]->default = new Scalar\String_('abc');
H A Dfixup.test63 $stmts[9]->expr->class = new Scalar\String_('Foo');
64 $stmts[10]->expr->class = new Scalar\String_('Foo');
/PHP-Parser/test/PhpParser/Node/Scalar/
H A DStringTest.php18 $this->assertInstanceOf(String_::class, $string);
20 /** @var String_ $string */
31 String_::parseEscapeSequences($string, $quote)
41 String_::parse($string)
/PHP-Parser/test/PhpParser/Builder/
H A DMethodTest.php16 use PhpParser\Node\Scalar\String_; alias
100 $stmt1 = new Print_(new String_('test1'));
101 $stmt2 = new Print_(new String_('test2'));
102 $stmt3 = new Print_(new String_('test3'));
161 ->addStmt(new Print_(new String_('test')))
169 ->addStmt(new Print_(new String_('test')))
H A DClassConstTest.php192 new Scalar\String_('Hallo World')
206 new Scalar\String_('bar'),
207 new Scalar\String_('foo')
210 new Scalar\String_('foo'),
211 new Scalar\String_('bar')
H A DFunctionTest.php15 use PhpParser\Node\Scalar\String_; alias
57 $stmt1 = new Print_(new String_('test1'));
58 $stmt2 = new Print_(new String_('test2'));
59 $stmt3 = new Print_(new String_('test3'));
H A DPropertyTest.php202 new Scalar\String_('Hallo World')
216 new Scalar\String_('bar'),
217 new Scalar\String_('foo')
220 new Scalar\String_('foo'),
221 new Scalar\String_('bar')
H A DParamTest.php57 new Scalar\String_('Hallo World')
71 new Scalar\String_('bar'),
72 new Scalar\String_('foo')
75 new Scalar\String_('foo'),
76 new Scalar\String_('bar')
H A DEnumCaseTest.php79 new Scalar\String_('Hallo World')
H A DEnumTest.php57 new Node\Const_('TEST_CONST', new Node\Scalar\String_('ABC'))
/PHP-Parser/lib/PhpParser/Node/Expr/Cast/
H A DString_.php7 class String_ extends Cast { class
/PHP-Parser/lib/PhpParser/Node/Scalar/
H A DString_.php8 class String_ extends Scalar { class
51 ? Scalar\String_::KIND_SINGLE_QUOTED
52 : Scalar\String_::KIND_DOUBLE_QUOTED;
/PHP-Parser/lib/PhpParser/
H A DNodeDumper.php10 use PhpParser\Node\Scalar\String_; alias
120 if ($node instanceof String_ || $node instanceof InterpolatedString) {
242 String_::KIND_SINGLE_QUOTED => 'KIND_SINGLE_QUOTED',
243 String_::KIND_DOUBLE_QUOTED => 'KIND_DOUBLE_QUOTED',
244 String_::KIND_HEREDOC => 'KIND_HEREDOC',
245 String_::KIND_NOWDOC => 'KIND_NOWDOC',
H A DParserAbstract.php21 use PhpParser\Node\Scalar\String_; alias
754 * @return Int_|String_ Integer or string node.
758 return new String_($str, $attributes);
763 return new String_($str, $attributes);
812 ? String_::KIND_HEREDOC : String_::KIND_NOWDOC;
845 return new String_('', $attributes);
854 if ($kind === String_::KIND_HEREDOC) {
855 $contents = String_::parseEscapeSequences($contents, null, $parseUnicodeEscape);
858 return new String_($contents, $attributes);
880 … $part->value = String_::parseEscapeSequences($part->value, null, $parseUnicodeEscape);
H A DBuilderFactory.php10 use PhpParser\Node\Scalar\String_; alias
370 return new String_($expr);

Completed in 59 milliseconds

12