Skip to content

Commit a60ca40

Browse files
committed
rebase
1 parent 2316791 commit a60ca40

16 files changed

+13
-132
lines changed

lib/PhpParser/Internal/PrintableNewAnonClassNode.php

-5
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,7 @@
1515
*
1616
* @internal
1717
*/
18-
<<<<<<< HEAD
1918
class PrintableNewAnonClassNode extends Expr {
20-
=======
21-
class PrintableNewAnonClassNode extends Expr implements Node\StmtsIterable
22-
{
23-
>>>>>>> 920aae4f (add StmtsIterable interface to mark nodes that contain iterable stmts to improve hooking in node visitors)
2419
/** @var Node\AttributeGroup[] PHP attribute groups */
2520
public $attrGroups;
2621
/** @var Node\Arg[] Arguments */

lib/PhpParser/Node/Expr/Closure.php

+1-6
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,7 @@
77
use PhpParser\Node\Expr;
88
use PhpParser\Node\FunctionLike;
99

10-
<<<<<<< HEAD
11-
class Closure extends Expr implements FunctionLike {
12-
=======
13-
class Closure extends Expr implements FunctionLike, Node\StmtsIterable
14-
{
15-
>>>>>>> 920aae4f (add StmtsIterable interface to mark nodes that contain iterable stmts to improve hooking in node visitors)
10+
class Closure extends Expr implements FunctionLike, Node\StmtsIterable {
1611
/** @var bool Whether the closure is static */
1712
public $static;
1813
/** @var bool Whether to return by reference */

lib/PhpParser/Node/Stmt/Case_.php

+1-10
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,7 @@
44

55
use PhpParser\Node;
66

7-
<<<<<<< HEAD
8-
class Case_ extends Node\Stmt {
9-
=======
10-
class Case_ extends Node\Stmt implements Node\StmtsIterable
11-
{
12-
>>>>>>> 920aae4f (add StmtsIterable interface to mark nodes that contain iterable stmts to improve hooking in node visitors)
7+
class Case_ extends Node\Stmt implements Node\StmtsIterable {
138
/** @var null|Node\Expr Condition (null for default) */
149
public $cond;
1510
/** @var Node\Stmt[] Statements */
@@ -32,11 +27,7 @@ public function getSubNodeNames(): array {
3227
return ['cond', 'stmts'];
3328
}
3429

35-
<<<<<<< HEAD
3630
public function getType(): string {
37-
=======
38-
public function getType() : string {
39-
>>>>>>> 920aae4f (add StmtsIterable interface to mark nodes that contain iterable stmts to improve hooking in node visitors)
4031
return 'Stmt_Case';
4132
}
4233
}

lib/PhpParser/Node/Stmt/Catch_.php

+1-6
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,7 @@
55
use PhpParser\Node;
66
use PhpParser\Node\Expr;
77

8-
<<<<<<< HEAD
9-
class Catch_ extends Node\Stmt {
10-
=======
11-
class Catch_ extends Node\Stmt implements Node\StmtsIterable
12-
{
13-
>>>>>>> 920aae4f (add StmtsIterable interface to mark nodes that contain iterable stmts to improve hooking in node visitors)
8+
class Catch_ extends Node\Stmt implements Node\StmtsIterable {
149
/** @var Node\Name[] Types of exceptions to catch */
1510
public $types;
1611
/** @var Expr\Variable|null Variable for exception */

lib/PhpParser/Node/Stmt/ClassMethod.php

+1-6
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,7 @@
66
use PhpParser\Node;
77
use PhpParser\Node\FunctionLike;
88

9-
<<<<<<< HEAD
109
class ClassMethod extends Node\Stmt implements FunctionLike {
11-
=======
12-
class ClassMethod extends Node\Stmt implements FunctionLike, Node\StmtsIterable
13-
{
14-
>>>>>>> 920aae4f (add StmtsIterable interface to mark nodes that contain iterable stmts to improve hooking in node visitors)
1510
/** @var int Flags */
1611
public $flags;
1712
/** @var bool Whether to return by reference */
@@ -22,7 +17,7 @@ class ClassMethod extends Node\Stmt implements FunctionLike, Node\StmtsIterable
2217
public $params;
2318
/** @var null|Node\Identifier|Node\Name|Node\ComplexType Return type */
2419
public $returnType;
25-
/** @var Node\Stmt[] Statements */
20+
/** @var Node\Stmt[]|null Statements */
2621
public $stmts;
2722
/** @var Node\AttributeGroup[] PHP attribute groups */
2823
public $attrGroups;

lib/PhpParser/Node/Stmt/Do_.php

+1-10
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,7 @@
44

55
use PhpParser\Node;
66

7-
<<<<<<< HEAD
8-
class Do_ extends Node\Stmt {
9-
=======
10-
class Do_ extends Node\Stmt implements Node\StmtsIterable
11-
{
12-
>>>>>>> 920aae4f (add StmtsIterable interface to mark nodes that contain iterable stmts to improve hooking in node visitors)
7+
class Do_ extends Node\Stmt implements Node\StmtsIterable {
138
/** @var Node\Stmt[] Statements */
149
public $stmts;
1510
/** @var Node\Expr Condition */
@@ -32,11 +27,7 @@ public function getSubNodeNames(): array {
3227
return ['stmts', 'cond'];
3328
}
3429

35-
<<<<<<< HEAD
3630
public function getType(): string {
37-
=======
38-
public function getType() : string {
39-
>>>>>>> 920aae4f (add StmtsIterable interface to mark nodes that contain iterable stmts to improve hooking in node visitors)
4031
return 'Stmt_Do';
4132
}
4233
}

lib/PhpParser/Node/Stmt/ElseIf_.php

+1-10
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,7 @@
44

55
use PhpParser\Node;
66

7-
<<<<<<< HEAD
8-
class ElseIf_ extends Node\Stmt {
9-
=======
10-
class ElseIf_ extends Node\Stmt implements Node\StmtsIterable
11-
{
12-
>>>>>>> 920aae4f (add StmtsIterable interface to mark nodes that contain iterable stmts to improve hooking in node visitors)
7+
class ElseIf_ extends Node\Stmt implements Node\StmtsIterable {
138
/** @var Node\Expr Condition */
149
public $cond;
1510
/** @var Node\Stmt[] Statements */
@@ -32,11 +27,7 @@ public function getSubNodeNames(): array {
3227
return ['cond', 'stmts'];
3328
}
3429

35-
<<<<<<< HEAD
3630
public function getType(): string {
37-
=======
38-
public function getType() : string {
39-
>>>>>>> 920aae4f (add StmtsIterable interface to mark nodes that contain iterable stmts to improve hooking in node visitors)
4031
return 'Stmt_ElseIf';
4132
}
4233
}

lib/PhpParser/Node/Stmt/Else_.php

+1-10
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,7 @@
44

55
use PhpParser\Node;
66

7-
<<<<<<< HEAD
8-
class Else_ extends Node\Stmt {
9-
=======
10-
class Else_ extends Node\Stmt implements Node\StmtsIterable
11-
{
12-
>>>>>>> 920aae4f (add StmtsIterable interface to mark nodes that contain iterable stmts to improve hooking in node visitors)
7+
class Else_ extends Node\Stmt implements Node\StmtsIterable {
138
/** @var Node\Stmt[] Statements */
149
public $stmts;
1510

@@ -28,11 +23,7 @@ public function getSubNodeNames(): array {
2823
return ['stmts'];
2924
}
3025

31-
<<<<<<< HEAD
3226
public function getType(): string {
33-
=======
34-
public function getType() : string {
35-
>>>>>>> 920aae4f (add StmtsIterable interface to mark nodes that contain iterable stmts to improve hooking in node visitors)
3627
return 'Stmt_Else';
3728
}
3829
}

lib/PhpParser/Node/Stmt/Finally_.php

+1-10
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,7 @@
44

55
use PhpParser\Node;
66

7-
<<<<<<< HEAD
8-
class Finally_ extends Node\Stmt {
9-
=======
10-
class Finally_ extends Node\Stmt implements Node\StmtsIterable
11-
{
12-
>>>>>>> 920aae4f (add StmtsIterable interface to mark nodes that contain iterable stmts to improve hooking in node visitors)
7+
class Finally_ extends Node\Stmt implements Node\StmtsIterable {
138
/** @var Node\Stmt[] Statements */
149
public $stmts;
1510

@@ -28,11 +23,7 @@ public function getSubNodeNames(): array {
2823
return ['stmts'];
2924
}
3025

31-
<<<<<<< HEAD
3226
public function getType(): string {
33-
=======
34-
public function getType() : string {
35-
>>>>>>> 920aae4f (add StmtsIterable interface to mark nodes that contain iterable stmts to improve hooking in node visitors)
3627
return 'Stmt_Finally';
3728
}
3829
}

lib/PhpParser/Node/Stmt/For_.php

+1-10
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,7 @@
44

55
use PhpParser\Node;
66

7-
<<<<<<< HEAD
8-
class For_ extends Node\Stmt {
9-
=======
10-
class For_ extends Node\Stmt implements Node\StmtsIterable
11-
{
12-
>>>>>>> 920aae4f (add StmtsIterable interface to mark nodes that contain iterable stmts to improve hooking in node visitors)
7+
class For_ extends Node\Stmt implements Node\StmtsIterable {
138
/** @var Node\Expr[] Init expressions */
149
public $init;
1510
/** @var Node\Expr[] Loop conditions */
@@ -41,11 +36,7 @@ public function getSubNodeNames(): array {
4136
return ['init', 'cond', 'loop', 'stmts'];
4237
}
4338

44-
<<<<<<< HEAD
4539
public function getType(): string {
46-
=======
47-
public function getType() : string {
48-
>>>>>>> 920aae4f (add StmtsIterable interface to mark nodes that contain iterable stmts to improve hooking in node visitors)
4940
return 'Stmt_For';
5041
}
5142
}

lib/PhpParser/Node/Stmt/Foreach_.php

-9
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,7 @@
44

55
use PhpParser\Node;
66

7-
<<<<<<< HEAD
87
class Foreach_ extends Node\Stmt {
9-
=======
10-
class Foreach_ extends Node\Stmt implements Node\StmtsIterable
11-
{
12-
>>>>>>> 920aae4f (add StmtsIterable interface to mark nodes that contain iterable stmts to improve hooking in node visitors)
138
/** @var Node\Expr Expression to iterate */
149
public $expr;
1510
/** @var null|Node\Expr Variable to assign key to */
@@ -45,11 +40,7 @@ public function getSubNodeNames(): array {
4540
return ['expr', 'keyVar', 'byRef', 'valueVar', 'stmts'];
4641
}
4742

48-
<<<<<<< HEAD
4943
public function getType(): string {
50-
=======
51-
public function getType() : string {
52-
>>>>>>> 920aae4f (add StmtsIterable interface to mark nodes that contain iterable stmts to improve hooking in node visitors)
5344
return 'Stmt_Foreach';
5445
}
5546
}

lib/PhpParser/Node/Stmt/Function_.php

-4
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,8 @@
55
use PhpParser\Node;
66
use PhpParser\Node\FunctionLike;
77

8-
<<<<<<< HEAD
98
class Function_ extends Node\Stmt implements FunctionLike {
10-
=======
11-
class Function_ extends Node\Stmt implements FunctionLike, Node\StmtsIterable
129
{
13-
>>>>>>> 920aae4f (add StmtsIterable interface to mark nodes that contain iterable stmts to improve hooking in node visitors)
1410
/** @var bool Whether function returns by reference */
1511
public $byRef;
1612
/** @var Node\Identifier Name */

lib/PhpParser/Node/Stmt/If_.php

+1-10
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,7 @@
44

55
use PhpParser\Node;
66

7-
<<<<<<< HEAD
8-
class If_ extends Node\Stmt {
9-
=======
10-
class If_ extends Node\Stmt implements Node\StmtsIterable
11-
{
12-
>>>>>>> 920aae4f (add StmtsIterable interface to mark nodes that contain iterable stmts to improve hooking in node visitors)
7+
class If_ extends Node\Stmt implements Node\StmtsIterable {
138
/** @var Node\Expr Condition expression */
149
public $cond;
1510
/** @var Node\Stmt[] Statements */
@@ -41,11 +36,7 @@ public function getSubNodeNames(): array {
4136
return ['cond', 'stmts', 'elseifs', 'else'];
4237
}
4338

44-
<<<<<<< HEAD
4539
public function getType(): string {
46-
=======
47-
public function getType() : string {
48-
>>>>>>> 920aae4f (add StmtsIterable interface to mark nodes that contain iterable stmts to improve hooking in node visitors)
4940
return 'Stmt_If';
5041
}
5142
}

lib/PhpParser/Node/Stmt/Namespace_.php

+1-10
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,7 @@
44

55
use PhpParser\Node;
66

7-
<<<<<<< HEAD
8-
class Namespace_ extends Node\Stmt {
9-
=======
10-
class Namespace_ extends Node\Stmt implements Node\StmtsIterable
11-
{
12-
>>>>>>> 920aae4f (add StmtsIterable interface to mark nodes that contain iterable stmts to improve hooking in node visitors)
7+
class Namespace_ extends Node\Stmt implements Node\StmtsIterable {
138
/* For use in the "kind" attribute */
149
public const KIND_SEMICOLON = 1;
1510
public const KIND_BRACED = 2;
@@ -36,11 +31,7 @@ public function getSubNodeNames(): array {
3631
return ['name', 'stmts'];
3732
}
3833

39-
<<<<<<< HEAD
4034
public function getType(): string {
41-
=======
42-
public function getType() : string {
43-
>>>>>>> 920aae4f (add StmtsIterable interface to mark nodes that contain iterable stmts to improve hooking in node visitors)
4435
return 'Stmt_Namespace';
4536
}
4637
}

lib/PhpParser/Node/Stmt/TryCatch.php

+1-6
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,7 @@
44

55
use PhpParser\Node;
66

7-
<<<<<<< HEAD
8-
class TryCatch extends Node\Stmt {
9-
=======
10-
class TryCatch extends Node\Stmt implements Node\StmtsIterable
11-
{
12-
>>>>>>> 920aae4f (add StmtsIterable interface to mark nodes that contain iterable stmts to improve hooking in node visitors)
7+
class TryCatch extends Node\Stmt implements Node\StmtsIterable {
138
/** @var Node\Stmt[] Statements */
149
public $stmts;
1510
/** @var Catch_[] Catches */

lib/PhpParser/Node/Stmt/While_.php

+1-10
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,7 @@
44

55
use PhpParser\Node;
66

7-
<<<<<<< HEAD
8-
class While_ extends Node\Stmt {
9-
=======
10-
class While_ extends Node\Stmt implements Node\StmtsIterable
11-
{
12-
>>>>>>> 920aae4f (add StmtsIterable interface to mark nodes that contain iterable stmts to improve hooking in node visitors)
7+
class While_ extends Node\Stmt implements Node\StmtsIterable {
138
/** @var Node\Expr Condition */
149
public $cond;
1510
/** @var Node\Stmt[] Statements */
@@ -32,11 +27,7 @@ public function getSubNodeNames(): array {
3227
return ['cond', 'stmts'];
3328
}
3429

35-
<<<<<<< HEAD
3630
public function getType(): string {
37-
=======
38-
public function getType() : string {
39-
>>>>>>> 920aae4f (add StmtsIterable interface to mark nodes that contain iterable stmts to improve hooking in node visitors)
4031
return 'Stmt_While';
4132
}
4233
}

0 commit comments

Comments
 (0)