Home
last modified time | relevance | path

Searched refs:Scalar (Results 1 – 25 of 68) sorted by relevance

123

/PHP-Parser/test/PhpParser/
H A DCompatibilityTest.php8 use PhpParser\Node\Scalar; alias
24 $node = new Scalar\Float_(1.0);
25 $this->assertTrue($node instanceof Scalar\DNumber);
26 $node = new Scalar\Int_(1);
27 $this->assertTrue($node instanceof Scalar\LNumber);
30 $node = new Scalar\InterpolatedString([$part]);
52 $node = new Node\Scalar\DNumber(1.0);
53 $this->assertTrue($node instanceof Scalar\Float_);
54 $node = new Node\Scalar\LNumber(1);
55 $this->assertTrue($node instanceof Scalar\Int_);
[all …]
H A DConstExprEvaluatorTest.php6 use PhpParser\Node\Scalar; alias
86 if ($expr instanceof Scalar\MagicConst\Line) {
92 new Scalar\Int_(8),
93 new Scalar\MagicConst\Line()
121 new Expr\BinaryOp\Mod(new Scalar\Int_(42), new Scalar\Int_(0)),
126 new Expr\BinaryOp\Plus(new Scalar\Int_(42), new Scalar\String_("1foo")),
H A DParserTestAbstract.php6 use PhpParser\Node\Scalar; alias
7 use PhpParser\Node\Scalar\String_;
133 ['0', ['kind' => Scalar\Int_::KIND_DEC]],
134 ['9', ['kind' => Scalar\Int_::KIND_DEC]],
135 ['07', ['kind' => Scalar\Int_::KIND_OCT]],
136 ['0xf', ['kind' => Scalar\Int_::KIND_HEX]],
137 ['0XF', ['kind' => Scalar\Int_::KIND_HEX]],
138 ['0b1', ['kind' => Scalar\Int_::KIND_BIN]],
139 ['0B1', ['kind' => Scalar\Int_::KIND_BIN]],
140 ['0o7', ['kind' => Scalar\Int_::KIND_OCT]],
[all …]
/PHP-Parser/test/PhpParser/Builder/
H A DClassConstTest.php14 use PhpParser\Node\Scalar; alias
15 use PhpParser\Node\Scalar\Int_;
184 new Scalar\Int_(31415)
188 new Scalar\Float_(3.1415)
192 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')
216 new Scalar\MagicConst\Dir(),
[all …]
H A DPropertyTest.php16 use PhpParser\Node\Scalar; alias
17 use PhpParser\Node\Scalar\Int_;
194 new Scalar\Int_(31415)
198 new Scalar\Float_(3.1415)
202 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')
226 new Scalar\MagicConst\Dir(),
[all …]
H A DParamTest.php13 use PhpParser\Node\Scalar; alias
14 use PhpParser\Node\Scalar\Int_;
49 new Scalar\Int_(31415)
53 new Scalar\Float_(3.1415)
57 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')
81 new Scalar\MagicConst\Dir(),
[all …]
H A DEnumCaseTest.php11 use PhpParser\Node\Scalar; alias
12 use PhpParser\Node\Scalar\Int_;
75 new Scalar\Int_(31415)
79 new Scalar\String_('Hallo World')
/PHP-Parser/lib/PhpParser/Node/Scalar/
H A DMagicConst.php3 namespace PhpParser\Node\Scalar;
5 use PhpParser\Node\Scalar; alias
7 abstract class MagicConst extends Scalar {
H A DInterpolatedString.php3 namespace PhpParser\Node\Scalar;
7 use PhpParser\Node\Scalar; alias
9 class InterpolatedString extends Scalar {
H A DFloat_.php3 namespace PhpParser\Node\Scalar;
5 use PhpParser\Node\Scalar; alias
7 class Float_ extends Scalar {
H A DString_.php3 namespace PhpParser\Node\Scalar;
6 use PhpParser\Node\Scalar; alias
8 class String_ extends Scalar {
51 ? Scalar\String_::KIND_SINGLE_QUOTED
52 : Scalar\String_::KIND_DOUBLE_QUOTED;
H A DInt_.php3 namespace PhpParser\Node\Scalar;
6 use PhpParser\Node\Scalar; alias
8 class Int_ extends Scalar {
/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 Dproperty_hooks.test11 $stmts[0]->stmts[0]->hooks[] = new Node\PropertyHook('set', new Scalar\Int_(123));
30 $stmts[0]->stmts[0]->params[0]->hooks[] = new Node\PropertyHook('set', new Scalar\Int_(123));
91 $stmts[0]->stmts[0]->hooks[0]->body = [new Stmt\Return_(new Scalar\Int_(24))];
114 $stmts[0]->stmts[0]->hooks[0]->body = new Scalar\Int_(24);
115 $stmts[0]->stmts[1]->hooks[0]->body = [new Stmt\Return_(new Scalar\Int_(24))];
H A Dmatch.test11 $stmts[0]->expr->expr->arms[] = new Node\MatchArm(null, new Scalar\String_('two'));
28 $stmts[0]->expr->expr->arms[0]->conds[] = new Scalar\LNumber(3);
69 $stmts[0]->expr->expr->arms[0]->conds = [new Scalar\LNumber(1)];
/PHP-Parser/test/PhpParser/Node/Stmt/
H A DInterfaceTest.php6 use PhpParser\Node\Scalar\String_;
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'))]),
/PHP-Parser/lib/PhpParser/Node/Scalar/MagicConst/
H A DMethod.php3 namespace PhpParser\Node\Scalar\MagicConst;
5 use PhpParser\Node\Scalar\MagicConst;
H A DNamespace_.php3 namespace PhpParser\Node\Scalar\MagicConst;
5 use PhpParser\Node\Scalar\MagicConst;
H A DClass_.php3 namespace PhpParser\Node\Scalar\MagicConst;
5 use PhpParser\Node\Scalar\MagicConst;
H A DDir.php3 namespace PhpParser\Node\Scalar\MagicConst;
5 use PhpParser\Node\Scalar\MagicConst;
H A DFile.php3 namespace PhpParser\Node\Scalar\MagicConst;
5 use PhpParser\Node\Scalar\MagicConst;
H A DFunction_.php3 namespace PhpParser\Node\Scalar\MagicConst;
5 use PhpParser\Node\Scalar\MagicConst;
H A DLine.php3 namespace PhpParser\Node\Scalar\MagicConst;
5 use PhpParser\Node\Scalar\MagicConst;
H A DTrait_.php3 namespace PhpParser\Node\Scalar\MagicConst;
5 use PhpParser\Node\Scalar\MagicConst;
H A DProperty.php3 namespace PhpParser\Node\Scalar\MagicConst;
5 use PhpParser\Node\Scalar\MagicConst;

Completed in 38 milliseconds

123