php-parser
Version:
Parse PHP code from JS and returns its AST
25 lines (22 loc) • 566 B
JavaScript
/**
* Copyright (C) 2018 Glayzzle (BSD3 License)
* @authors https://github.com/glayzzle/php-parser/graphs/contributors
* @url http://glayzzle.com
*/
;
const Statement = require("./statement");
const KIND = "global";
/**
* Imports a variable from the global scope
* @constructor Global
* @memberOf module:php-parser
* @extends {Statement}
* @property {Variable[]} items
*/
module.exports = Statement.extends(
KIND,
function Global(items, docs, location) {
Statement.apply(this, [KIND, docs, location]);
this.items = items;
},
);