UNPKG

php-parser

Version:

Parse PHP code from JS and returns its AST

21 lines (18 loc) 589 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 = "expression"; /** * Any expression node. Since the left-hand side of an assignment may * be any expression in general, an expression can also be a pattern. * @constructor Expression * @memberOf module:php-parser * @extends {Node} */ module.exports = Node.extends(KIND, function Expression(kind, docs, location) { Node.apply(this, [kind || KIND, docs, location]); });