Home
last modified time | relevance | path

Searched refs:class (Results 1 – 25 of 131) sorted by relevance

123456

/PHP-Parser/test/PhpParser/Node/Stmt/
H A DClassTest.php12 $this->assertTrue($class->isAbstract());
14 $class = new Class_('Foo');
20 $this->assertTrue($class->isFinal());
22 $class = new Class_('Foo');
23 $this->assertFalse($class->isFinal());
31 $class = new Class_('Foo', [
48 $class = new Class_('Foo', [
67 $class = new Class_('Foo', [
84 $class = new Class_('Foo', [
103 $class = new Class_('Foo', [
[all …]
/PHP-Parser/test/code/parser/expr/
H A DnewDeref.test13 new class {}->foo;
14 new class {}->foo();
15 new class {}::FOO;
16 new class {}::foo();
17 new class {}::$foo;
18 new class {}[0];
19 new class {}();
25 class: Name(
39 class: Name(
54 class: Expr_New(
[all …]
H A Dnew.test8 // class name variations
23 class: Name(
32 class: Name(
49 class: Expr_Variable(
56 0: // class name variations
61 class: Expr_ArrayDimFetch(
76 class: Name(
89 class: Expr_PropertyFetch(
106 class: Expr_PropertyFetch(
125 class: Expr_ArrayDimFetch(
[all …]
/PHP-Parser/test/code/prettyPrinter/expr/
H A DanonymousClass.test5 new class {};
6 new class extends A implements B, C {};
7 new class($a) extends A {
13 new readonly class {};
15 new class
18 new class extends A implements B, C
21 new class($a) extends A
29 new readonly class
/PHP-Parser/test/code/formatPreservation/
H A DanonClasses.test4 new class
10 $new->class->extends = null;
14 new class
19 new class
22 // Ignore name assigned to anon class
24 $new->class->name = new Node\Identifier('Anon1');
27 new class
H A DmodifierChange.test4 class Foo {}
5 abstract class Bar {
23 abstract class Foo {}
24 class Bar {
60 new class {};
61 new readonly class {};
63 $stmts[0]->expr->class->flags = Modifiers::READONLY;
64 $stmts[1]->expr->class->flags = 0;
67 readonly class {};
68 class {};
H A Dproperty_hooks.test4 class Test {
14 class Test {
23 class Test {
33 class Test {
42 class Test {
54 class Test {
65 class Test {
75 class Test {
84 class Test {
95 class Test {
[all …]
H A Dattributes.test5 class X {
27 new #[A] class {};
50 class X {
84 class X {
100 new class {};
127 class X {
150 new #[A] class {};
158 class X {};
163 class X {};
172 class X {};
[all …]
H A DaddingPropertyType.test5 class A
16 class A
25 class A
35 class A
H A DclassMethodNop.test4 class Foo {
14 class Foo {
23 class Foo {
33 class Foo {
42 class Foo {
52 class Foo {
61 class Foo {
71 class Foo {
/PHP-Parser/test/code/parser/expr/fetchAndCall/
H A DconstFetch.test7 A::class;
9 $a::class;
21 class: Name(
31 class: Name(
35 name: class
41 class: Expr_Variable(
51 class: Expr_Variable(
55 name: class
H A DstaticCall.test15 // class name variations
24 class: Name(
39 class: Name(
51 class: Name(
65 class: Name(
85 class: Name(
107 class: Name(
126 class: Name(
141 class: Expr_Variable(
153 class: Expr_Variable(
[all …]
H A DstaticPropertyFetch.test13 // class name variations can be found in staticCall.test
18 class: Name(
31 class: Name(
41 class: Name(
52 class: Name(
69 0: // class name variations can be found in staticCall.test
/PHP-Parser/lib/PhpParser/
H A DNodeFinder.php40 * @param class-string<TNode> $class Class name
44 public function findInstanceOf($nodes, string $class): array { argument
45 return $this->find($nodes, function ($node) use ($class) {
46 return $node instanceof $class;
81 * @param class-string<TNode> $class Class name
85 public function findFirstInstanceOf($nodes, string $class): ?Node { argument
86 return $this->findFirst($nodes, function ($node) use ($class) {
87 return $node instanceof $class;
/PHP-Parser/test/code/parser/expr/uvs/
H A Dnew.test14 class: Expr_Variable(
23 class: Expr_ArrayDimFetch(
37 class: Expr_PropertyFetch(
51 class: Expr_StaticPropertyFetch(
52 class: Name(
65 class: Expr_StaticPropertyFetch(
66 class: Expr_Variable(
79 class: Expr_StaticPropertyFetch(
80 class: Expr_PropertyFetch(
H A DstaticProperty.test16 class: Name(
26 class: Expr_Variable(
36 class: Scalar_String(
46 class: Expr_BinaryOp_Concat(
61 class: Expr_ArrayDimFetch(
76 class: Name(
87 class: Name(
101 class: Expr_StaticPropertyFetch(
102 class: Name(
/PHP-Parser/lib/PhpParser/Internal/
H A DPrintableNewAnonClassNode.php54 $class = $newNode->class;
55 assert($class instanceof Node\Stmt\Class_);
59 $class->attrGroups, $class->flags, $newNode->args, $class->extends, $class->implements,
60 $class->stmts, $newNode->getAttributes()
/PHP-Parser/test/code/prettyPrinter/
H A Dindent.test5 class Test {
17 class Test
32 class Test {
44 class Test
59 class Test {
71 class Test
/PHP-Parser/test/code/prettyPrinter/stmt/
H A Dreadonly_class.test1 Readonly class
5 readonly class Foo
9 readonly class Foo
/PHP-Parser/lib/PhpParser/Node/Expr/
H A DInstanceof_.php13 public Node $class; variable in PhpParser\\Node\\Expr\\Instanceof_
19 * @param Name|Expr $class Class name
22 public function __construct(Expr $expr, Node $class, array $attributes = []) { argument
25 $this->class = $class;
H A DStaticPropertyFetch.php12 public Node $class; variable in PhpParser\\Node\\Expr\\StaticPropertyFetch
19 * @param Name|Expr $class Class name
23 public function __construct(Node $class, $name, array $attributes = []) { argument
25 $this->class = $class;
H A DClassConstFetch.php12 public Node $class; variable in PhpParser\\Node\\Expr\\ClassConstFetch
19 * @param Name|Expr $class Class name
23 public function __construct(Node $class, $name, array $attributes = []) { argument
25 $this->class = $class;
/PHP-Parser/test/code/parser/stmt/class/
H A DreadonlyAnonyous.test1 Readonly anonymous class
5 new readonly class {};
10 class: Stmt_Class(
H A Danonymous.test5 new class {
8 new class extends A implements B, C {};
9 new class() {
12 new class($a, $b) extends A {
16 class A {
18 return new class($this) extends A {
27 class: Stmt_Class(
58 class: Stmt_Class(
83 class: Stmt_Class(
116 class: Stmt_Class(
[all …]
H A Dname.test1 Invalid class name
3 <?php class self {}
5 Cannot use 'self' as class name as it is reserved from 1:13 to 1:16
22 <?php class PARENT {}
41 <?php class static {}
51 <?php class A extends self {}
72 <?php class A extends PARENT {}
93 <?php class A extends static {}
114 <?php class A implements self {}
136 <?php class A implements PARENT {}
[all …]

Completed in 28 milliseconds

123456