UNPKG

php-parser

Version:

Parse PHP code from JS and returns its AST

29 lines (26 loc) 662 B
/** * Copyright (C) 2018 Glayzzle (BSD3 License) * @authors https://github.com/glayzzle/php-parser/graphs/contributors * @url http://glayzzle.com */ "use strict"; const Expression = require("./expression"); const KIND = "clone"; /** * Defines a clone call * @constructor Clone * @memberOf module:php-parser * @extends {Expression} * @property {Expression} what * @property {Expression|null} properties */ module.exports = Expression.extends( KIND, function Clone(what, properties, docs, location) { Expression.apply(this, [KIND, docs, location]); this.what = what; if (properties) { this.properties = properties; } }, );