/PHP-Parser/test/PhpParser/ |
H A D | CompatibilityTest.php | 8 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 D | ConstExprEvaluatorTest.php | 6 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 D | ParserTestAbstract.php | 6 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 D | ClassConstTest.php | 14 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 D | PropertyTest.php | 16 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 D | ParamTest.php | 13 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 D | EnumCaseTest.php | 11 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 D | MagicConst.php | 3 namespace PhpParser\Node\Scalar; 5 use PhpParser\Node\Scalar; alias 7 abstract class MagicConst extends Scalar {
|
H A D | InterpolatedString.php | 3 namespace PhpParser\Node\Scalar; 7 use PhpParser\Node\Scalar; alias 9 class InterpolatedString extends Scalar {
|
H A D | Float_.php | 3 namespace PhpParser\Node\Scalar; 5 use PhpParser\Node\Scalar; alias 7 class Float_ extends Scalar {
|
H A D | String_.php | 3 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 D | Int_.php | 3 namespace PhpParser\Node\Scalar; 6 use PhpParser\Node\Scalar; alias 8 class Int_ extends Scalar {
|
/PHP-Parser/test/code/formatPreservation/ |
H A D | arrayInsertionWithComments.test | 10 $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 D | property_hooks.test | 11 $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 D | match.test | 11 $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 D | InterfaceTest.php | 6 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 D | Method.php | 3 namespace PhpParser\Node\Scalar\MagicConst; 5 use PhpParser\Node\Scalar\MagicConst;
|
H A D | Namespace_.php | 3 namespace PhpParser\Node\Scalar\MagicConst; 5 use PhpParser\Node\Scalar\MagicConst;
|
H A D | Class_.php | 3 namespace PhpParser\Node\Scalar\MagicConst; 5 use PhpParser\Node\Scalar\MagicConst;
|
H A D | Dir.php | 3 namespace PhpParser\Node\Scalar\MagicConst; 5 use PhpParser\Node\Scalar\MagicConst;
|
H A D | File.php | 3 namespace PhpParser\Node\Scalar\MagicConst; 5 use PhpParser\Node\Scalar\MagicConst;
|
H A D | Function_.php | 3 namespace PhpParser\Node\Scalar\MagicConst; 5 use PhpParser\Node\Scalar\MagicConst;
|
H A D | Line.php | 3 namespace PhpParser\Node\Scalar\MagicConst; 5 use PhpParser\Node\Scalar\MagicConst;
|
H A D | Trait_.php | 3 namespace PhpParser\Node\Scalar\MagicConst; 5 use PhpParser\Node\Scalar\MagicConst;
|
H A D | Property.php | 3 namespace PhpParser\Node\Scalar\MagicConst; 5 use PhpParser\Node\Scalar\MagicConst;
|