UNPKG

php-parser

Version:

Parse PHP code from JS and returns its AST

27 lines (24 loc) 633 B
/** * Copyright (C) 2018 Glayzzle (BSD3 License) * @authors https://github.com/glayzzle/php-parser/graphs/contributors * @url http://glayzzle.com */ "use strict"; const Expr = require("./expression"); const KIND = "lookup"; /** * Lookup on an offset in the specified object * @constructor Lookup * @memberOf module:php-parser * @extends {Expression} * @property {Expression} what * @property {Expression} offset */ module.exports = Expr.extends( KIND, function Lookup(kind, what, offset, docs, location) { Expr.apply(this, [kind || KIND, docs, location]); this.what = what; this.offset = offset; }, );