php-parser
Version:
Parse PHP code from JS and returns its AST
24 lines (21 loc) • 518 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 = "print";
/**
* Outputs
* @constructor Print
* @memberOf module:php-parser
* @extends {Expression}
*/
module.exports = Expression.extends(
KIND,
function Print(expression, docs, location) {
Expression.apply(this, [KIND, docs, location]);
this.expression = expression;
},
);