UNPKG

php-parser

Version:

Parse PHP code from JS and returns its AST

27 lines (23 loc) 563 B
/** * Copyright (C) 2018 Glayzzle (BSD3 License) * @authors https://github.com/glayzzle/php-parser/graphs/contributors * @url http://glayzzle.com */ "use strict"; const Node = require("./node"); const KIND = "identifier"; /** * Defines an identifier node * @constructor Identifier * @memberOf module:php-parser * @extends {Node} * @property {string} name */ const Identifier = Node.extends( KIND, function Identifier(name, docs, location) { Node.apply(this, [KIND, docs, location]); this.name = name; }, ); module.exports = Identifier;