php-parser
Advanced tools
Comparing version 3.1.0-beta.7 to 3.1.0-beta.8
@@ -5,3 +5,3 @@ /*! | ||
* Parse PHP code from JS and returns its AST | ||
* Build: f023e63055fa26291ffb - 5/23/2022 | ||
* Build: ad4444bf143d4b60fac4 - 5/25/2022 | ||
* Copyright (C) 2021 Glayzzle (BSD-3-Clause) | ||
@@ -8,0 +8,0 @@ * @authors https://github.com/glayzzle/php-parser/graphs/contributors |
{ | ||
"name": "php-parser", | ||
"version": "3.1.0-beta.7", | ||
"version": "3.1.0-beta.8", | ||
"description": "Parse PHP code from JS and returns its AST", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -583,2 +583,3 @@ /** | ||
require("./ast/variadic"), | ||
require("./ast/variadicplaceholder"), | ||
require("./ast/while"), | ||
@@ -585,0 +586,0 @@ require("./ast/yield"), |
@@ -368,3 +368,10 @@ /** | ||
this.expect("(") && this.next(); | ||
if (this.token !== ")") { | ||
if ( | ||
this.version >= 801 && | ||
this.token === this.tok.T_ELLIPSIS && | ||
this.peek() === ")" | ||
) { | ||
result.push(this.node("variadicplaceholder")()); | ||
this.next(); | ||
} else if (this.token !== ")") { | ||
result = this.read_non_empty_argument_list(); | ||
@@ -371,0 +378,0 @@ } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
802696
152
22304