php-parser
Version:
Parse PHP code from JS and returns its AST
20 lines (17 loc) • 487 B
JavaScript
/**
* Copyright (C) 2018 Glayzzle (BSD3 License)
* @authors https://github.com/glayzzle/php-parser/graphs/contributors
* @url http://glayzzle.com
*/
;
const Expr = require("./expression");
const KIND = "operation";
/**
* Defines binary operations
* @constructor Operation
* @memberOf module:php-parser
* @extends {Expression}
*/
module.exports = Expr.extends(KIND, function Operation(kind, docs, location) {
Expr.apply(this, [kind || KIND, docs, location]);
});