UNPKG

php-parser

Version:

Parse PHP code from JS and returns its AST

29 lines (26 loc) 700 B
/** * Copyright (C) 2018 Glayzzle (BSD3 License) * @authors https://github.com/glayzzle/php-parser/graphs/contributors * @url http://glayzzle.com */ "use strict"; const Expression = require("./expression"); const KIND = "assign"; /** * Assigns a value to the specified target * @constructor Assign * @memberOf module:php-parser * @extends {Expression} * @property {Expression} left * @property {Expression} right * @property {String} operator */ module.exports = Expression.extends( KIND, function Assign(left, right, operator, docs, location) { Expression.apply(this, [KIND, docs, location]); this.left = left; this.right = right; this.operator = operator; }, );