Skip to content

Commit db0840e

Browse files
committed
Update test expectations, test readonly class
1 parent 2ba725b commit db0840e

File tree

69 files changed

+169
-15
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+169
-15
lines changed

tests/cases/parser/abstractMethodDeclaration1.php.tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"kind": "AbstractKeyword",
1919
"textLength": 8
2020
},
21+
"modifiers": [],
2122
"classKeyword": {
2223
"kind": "ClassKeyword",
2324
"textLength": 5

tests/cases/parser/abstractMethodDeclaration2.php.tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"ClassDeclaration": {
1616
"attributes": null,
1717
"abstractOrFinalModifier": null,
18+
"modifiers": [],
1819
"classKeyword": {
1920
"kind": "ClassKeyword",
2021
"textLength": 5

tests/cases/parser/abstractMethodDeclaration3.php.tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"kind": "AbstractKeyword",
1919
"textLength": 8
2020
},
21+
"modifiers": [],
2122
"classKeyword": {
2223
"kind": "ClassKeyword",
2324
"textLength": 5

tests/cases/parser/abstractMethodDeclaration5.php.tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"kind": "AbstractKeyword",
1919
"textLength": 8
2020
},
21+
"modifiers": [],
2122
"classKeyword": {
2223
"kind": "ClassKeyword",
2324
"textLength": 5

tests/cases/parser/abstractMethodDeclaration6.php.tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"kind": "AbstractKeyword",
2424
"textLength": 8
2525
},
26+
"modifiers": [],
2627
"classKeyword": {
2728
"kind": "ClassKeyword",
2829
"textLength": 5
Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1 @@
1-
[
2-
{
3-
"kind": 0,
4-
"message": "Unexpected 'abstract'",
5-
"start": 29,
6-
"length": 8
7-
}
8-
]
1+
[]

tests/cases/parser/abstractMethodDeclaration7.php.tree

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,19 @@
1111
}
1212
}
1313
},
14-
{
15-
"error": "SkippedToken",
16-
"kind": "AbstractKeyword",
17-
"textLength": 8
18-
},
1914
{
2015
"ClassDeclaration": {
2116
"attributes": null,
2217
"abstractOrFinalModifier": {
23-
"kind": "FinalKeyword",
24-
"textLength": 5
18+
"kind": "AbstractKeyword",
19+
"textLength": 8
2520
},
21+
"modifiers": [
22+
{
23+
"kind": "FinalKeyword",
24+
"textLength": 5
25+
}
26+
],
2627
"classKeyword": {
2728
"kind": "ClassKeyword",
2829
"textLength": 5

tests/cases/parser/classBaseClause1.php.tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"ClassDeclaration": {
1616
"attributes": null,
1717
"abstractOrFinalModifier": null,
18+
"modifiers": [],
1819
"classKeyword": {
1920
"kind": "ClassKeyword",
2021
"textLength": 5

tests/cases/parser/classBaseClause2.php.tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"ClassDeclaration": {
1616
"attributes": null,
1717
"abstractOrFinalModifier": null,
18+
"modifiers": [],
1819
"classKeyword": {
1920
"kind": "ClassKeyword",
2021
"textLength": 5

tests/cases/parser/classBaseClause6.php.tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"ClassDeclaration": {
1616
"attributes": null,
1717
"abstractOrFinalModifier": null,
18+
"modifiers": [],
1819
"classKeyword": {
1920
"kind": "ClassKeyword",
2021
"textLength": 5

0 commit comments

Comments
 (0)