Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3e3ed6b

Browse files
Add Cast_Array and Cast_Object nodes to parser
1 parent e4ab641 commit 3e3ed6b

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

‎PHP.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11103,6 +11103,24 @@ PHP.Parser.prototype.Node_Expr_Cast_Double = function() {
1110311103

1110411104
};
1110511105

11106+
PHP.Parser.prototype.Node_Expr_Cast_Array = function() {
11107+
return {
11108+
type: "Node_Expr_Cast_Array",
11109+
expr: arguments[ 0 ],
11110+
attributes: arguments[ 1 ]
11111+
};
11112+
11113+
};
11114+
11115+
PHP.Parser.prototype.Node_Expr_Cast_Object = function() {
11116+
return {
11117+
type: "Node_Expr_Cast_Object",
11118+
expr: arguments[ 0 ],
11119+
attributes: arguments[ 1 ]
11120+
};
11121+
11122+
};
11123+
1110611124

1110711125
PHP.Parser.prototype.Node_Expr_ErrorSuppress = function() {
1110811126
return {

‎src/parser/yyn_expr.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,24 @@ PHP.Parser.prototype.Node_Expr_Cast_Double = function() {
524524

525525
};
526526

527+
PHP.Parser.prototype.Node_Expr_Cast_Array = function() {
528+
return {
529+
type: "Node_Expr_Cast_Array",
530+
expr: arguments[ 0 ],
531+
attributes: arguments[ 1 ]
532+
};
533+
534+
};
535+
536+
PHP.Parser.prototype.Node_Expr_Cast_Object = function() {
537+
return {
538+
type: "Node_Expr_Cast_Object",
539+
expr: arguments[ 0 ],
540+
attributes: arguments[ 1 ]
541+
};
542+
543+
};
544+
527545

528546
PHP.Parser.prototype.Node_Expr_ErrorSuppress = function() {
529547
return {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /