UNPKG

php-parser

Version:

Parse PHP code from JS and returns its AST

22 lines (19 loc) 540 B
/** * Copyright (C) 2018 Glayzzle (BSD3 License) * @authors https://github.com/glayzzle/php-parser/graphs/contributors * @url http://glayzzle.com */ "use strict"; const Statement = require("./statement"); const KIND = "label"; /** * A label statement (referenced by goto) * @constructor Label * @memberOf module:php-parser * @extends {Statement} * @property {String} name */ module.exports = Statement.extends(KIND, function Label(name, docs, location) { Statement.apply(this, [KIND, docs, location]); this.name = name; });