UNPKG

php-parser

Version:

Parse PHP code from JS and returns its AST

20 lines (17 loc) 464 B
/** * Copyright (C) 2018 Glayzzle (BSD3 License) * @authors https://github.com/glayzzle/php-parser/graphs/contributors * @url http://glayzzle.com */ "use strict"; const Node = require("./node"); const KIND = "statement"; /** * Any statement. * @constructor Statement * @memberOf module:php-parser * @extends {Node} */ module.exports = Node.extends(KIND, function Statement(kind, docs, location) { Node.apply(this, [kind || KIND, docs, location]); });