UNPKG

php-parser

Version:

Parse PHP code from JS and returns its AST

25 lines (22 loc) 586 B
/** * Copyright (C) 2018 Glayzzle (BSD3 License) * @authors https://github.com/glayzzle/php-parser/graphs/contributors * @url http://glayzzle.com */ "use strict"; const Reference = require("./reference"); const KIND = "staticreference"; /** * Defines a class reference node * @constructor StaticReference * @memberOf module:php-parser * @extends {Reference} */ const StaticReference = Reference.extends( KIND, function StaticReference(raw, docs, location) { Reference.apply(this, [KIND, docs, location]); this.raw = raw; }, ); module.exports = StaticReference;