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