php-parser
Version:
Parse PHP code from JS and returns its AST
26 lines (23 loc) • 646 B
JavaScript
/**
* Copyright (C) 2018 Glayzzle (BSD3 License)
* @authors https://github.com/glayzzle/php-parser/graphs/contributors
* @url http://glayzzle.com
*/
;
const Expression = require("./expression");
const KIND = "variadic";
/**
* Introduce a list of items into the arguments of the call
* @constructor Variadic
* @memberOf module:php-parser
* @extends {Expression}
* @property {Array|Expression} what
* @see https://wiki.php.net/rfc/argument_unpacking
*/
module.exports = Expression.extends(
KIND,
function variadic(what, docs, location) {
Expression.apply(this, [KIND, docs, location]);
this.what = what;
}
);