php-parser
Version:
Parse PHP code from JS and returns its AST
22 lines (18 loc) • 504 B
JavaScript
/**
* Copyright (C) 2018 Glayzzle (BSD3 License)
* @authors https://github.com/glayzzle/php-parser/graphs/contributors
* @url http://glayzzle.com
*/
;
const Node = require("./node");
const KIND = "reference";
/**
* Defines a reference node
* @constructor Reference
* @memberOf module:php-parser
* @extends {Node}
*/
const Reference = Node.extends(KIND, function Reference(kind, docs, location) {
Node.apply(this, [kind || KIND, docs, location]);
});
module.exports = Reference;