UNPKG

php-parser

Version:

Parse PHP code from JS and returns its AST

25 lines (22 loc) 575 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 = "selfreference"; /** * Defines a class reference node * @constructor SelfReference * @memberOf module:php-parser * @extends {Reference} */ const SelfReference = Reference.extends( KIND, function SelfReference(raw, docs, location) { Reference.apply(this, [KIND, docs, location]); this.raw = raw; } ); module.exports = SelfReference;